Can not build ogre android successful

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
yisky
Gnoblar
Posts: 7
Joined: Tue Sep 17, 2013 12:06 pm

Can not build ogre android successful

Postby yisky » Tue Jul 21, 2015 7:38 am

I try to bulid ogre android follow the "CMake Quick Start Guide". I have met a error when call "nmake" after executing the cmake script.

Error
arm-linux-androideabi-g++.exe: error: unrecognized command line option '-msse'
NMAKE : fatal error U1077: “D:\android\ndk\android-ndk-r9d\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\bin\arm-linux-androideabi-g++.exe”: return code“0x1”

Stop.

NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"”: return“0x2”

Stop.

Anyone who knows how to solve it ? And, my ndk is rd9.
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
Contact:

Re: Can not build ogre android successful

Postby Wolfmanfx » Tue Jul 21, 2015 9:06 am

Which branch are you using? Also use the latest NDK.
0 x

yisky
Gnoblar
Posts: 7
Joined: Tue Sep 17, 2013 12:06 pm

Re: Can not build ogre android successful

Postby yisky » Tue Jul 21, 2015 10:56 am

Wolfmanfx wrote:Which branch are you using? Also use the latest NDK.

batch v2-1 need this use the latest NDK?
0 x

User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
Contact:

Re: Can not build ogre android successful

Postby Wolfmanfx » Tue Jul 21, 2015 10:57 am

Use 1.10 and the latest NDK
0 x

yisky
Gnoblar
Posts: 7
Joined: Tue Sep 17, 2013 12:06 pm

Re: Can not build ogre android successful

Postby yisky » Tue Jul 21, 2015 11:05 am

Wolfmanfx wrote:Use 1.10 and the latest NDK

OK,I'll try.
0 x

yisky
Gnoblar
Posts: 7
Joined: Tue Sep 17, 2013 12:06 pm

Re: Can not build ogre android successful

Postby yisky » Thu Jul 23, 2015 2:33 am

Wolfmanfx wrote:Use 1.10 and the latest NDK

Sorry to trouble again. I had to do as you say, Use 1.10 and the latest NDK(r10e). But i still have the same error.
0 x

yisky
Gnoblar
Posts: 7
Joined: Tue Sep 17, 2013 12:06 pm

Re: Can not build ogre android successful

Postby yisky » Thu Jul 23, 2015 8:18 am

yisky wrote:
Wolfmanfx wrote:Use 1.10 and the latest NDK

Sorry to trouble again. I had to do as you say, Use 1.10 and the latest NDK(r10e). But i still have the same error.


This is all the warning & error I have met during the whole building. Hope you can help me. Thanks.

Cmake warning
CMake Warning (dev) at CMake/toolchain/android.toolchain.cmake:1745 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "LIBRARY_OUTPUT_PATH_ROOT" will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
Call Stack (most recent call first):
CMakeFiles/3.3.0-rc4/CMakeSystem.cmake:6 (include)
CMakeLists.txt:52 (project)
This warning is for project developers. Use -Wno-dev to suppress it.

warning during the nmake:
In file included from src\OgreMemoryNedPooling.cpp:42:0:
src\nedmalloc/nedmalloc.c: In function 'malloc_state* nedalloc::FindMSpace(nedal
loc::nedpool*, nedalloc::threadcache*, int*, size_t)':
src\nedmalloc/nedmalloc.c:606:54: warning: cast from type 'malloc_state**' to ty
pe 'volatile malloc_state**' casts away qualifiers [-Wcast-qual]
*((volatile struct malloc_state **) &p->m[end])=p->m[end]=temp;
^
src\nedmalloc/nedmalloc.c:606:71: warning: operation on 'p->nedalloc::nedpool_t:
:m[end]' may be undefined [-Wsequence-point]
*((volatile struct malloc_state **) &p->m[end])=p->m[end]=temp;
^

src\OgreResource.cpp: In member function 'virtual void Ogre::Resource::_fireLoad
ingComplete(bool)':
src\OgreResource.cpp:380:53: warning: 'virtual void Ogre::Resource::Listener::ba
ckgroundLoadingComplete(Ogre::Resource*)' is deprecated (declared at include/Ogr
eResource.h:91) [-Wdeprecated-declarations]
(*i)->backgroundLoadingComplete(this);

src\OgreResource.cpp: In member function 'virtual void Ogre::Resource::_firePrep
aringComplete(bool)':
src\OgreResource.cpp:395:55: warning: 'virtual void Ogre::Resource::Listener::ba
ckgroundPreparingComplete(Ogre::Resource*)' is deprecated (declared at include/O
greResource.h:97) [-Wdeprecated-declarations]
(*i)->backgroundPreparingComplete(this);

Error during the nmake
[ 38%] Linking CXX static library ..\lib\libOgreMainStatic.a
System cannot find the specified path.
NMAKE : fatal error U1077: “cd”: return code “0x1”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 10.
0\VC\BIN\nmake.exe"”: return code “0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 10.
0\VC\BIN\nmake.exe"”: return code“0x2”
Stop.
0 x


Return to “Mobile Devices”

Who is online

Users browsing this forum: No registered users and 2 guests