Wednesday, 15 February 2012

eclipse - CMake android NDK project in Windows with toolchain file -



eclipse - CMake android NDK project in Windows with toolchain file -

i´m trying run cmake windows machine generate android ndk project specific toolchain file. there tutorial on how generate android projects cmake google. anyway need project eclipse project because way import adt bundle. on cmake ui there more alternative that:

eclipse cdt4 - mingw eclipse cdt4 - nmake eclipse cdt4 - unix eclipse cdt4 - ninja

the 2nd 1 (eclipse cdt - nmake) right selection configuration, when start cmake fail generating throwing next error:

cmake warning @ cmakelists.txt:3 (project): utilize nmake generator, cmake must run shell can utilize compiler cl command line. environment not contain include, lib, or libpath, , these must set cl compiler work.

any ideas?

you need initialize environment vcsvarsall.bat(shipped visual studio).

e.g. microsoft visual studio 2010 - run "c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall.bat" in same console instance intend execute cmake command:

...>"c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall.bat" setting environment using microsoft visual studio 2010 x86 tools.

or find in start menu "visual studio command prompt (2010)" ("developer command prompt vs20xx" recent versions of vs) initialization , run cmake there.

eclipse android-ndk cmake

No comments:

Post a Comment