Hello,

my first post to a mailing list, so hope I got it right....


I've got a nice error when im trying to cross compile mysql-connector-c,
and it uses cmake, so this is my first visit to cmake and to compile it on
the build system, isn't a problem, that is if i would like a native
mysql-connector-c, but now i want to cross compile it to use with android,
and here comes the errors...

the cmake toolchain file i used:

SET(CMAKE_SYSTEM_NAME android)

SET(CMAKE_C_COMPILER arm-linux-androideabi-gcc)
SET(CMAKE_CXX_COMPILER arm-linux-androideabi-g++)

SET(CMAKE_FIND_ROOT_PATH /usr/arm-linux-androideabi-4.8)

SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)

SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)


and it seems to work as should just need to make a platform/android.cmake

but i cant find anywhere on the net how a minimal platform/xxxx.cmake is
supposed to look like...

anyone care to help out?

thanks in advance
/Björn Strömberg
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to