Page 1 of 1

Can not build ogre android successful

Posted: Tue Jul 21, 2015 7:01 am
by yisky
Hi
I try to build ogre android as "CMake Quick Start Guide" written.Unfortunately,i have met some warnings and error that i don't know how to solve.Hope someone can help me.

The warnings
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):
D:/Program Files (x86)/CMake/share/cmake-3.3/Modules/CMakeDetermineSystem.cmak
e:95 (include)
CMakeLists.txt:52 (project)
This warning is for project developers. Use -Wno-dev to suppress it.

The errors
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.

Errors from CMakeError.log
error: unrecognized command line option '-msse'

My configuration:
Windows 8.1, MSVC10 "2010"
Android NDK r9d
CMake 3.3.0

Re: Can not build ogre android successful

Posted: Sat Sep 05, 2015 2:11 pm
by easttrue
I had same problem. and solved it.
just "nmake /I" instead of "nmake"
this occurs when cmake tries to remove previous lib file.

I hope this helps you, If you didn't get it yet.