<div dir="ltr"><div><div><div><div><div><div>Hello, <br><br></div>my first post to a mailing list, so hope I got it right....<br><br><br></div>I&#39;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&#39;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...<br>
<br></div>the cmake toolchain file i used: <br><br>SET(CMAKE_SYSTEM_NAME android)<br><br>SET(CMAKE_C_COMPILER arm-linux-androideabi-gcc)<br>SET(CMAKE_CXX_COMPILER arm-linux-androideabi-g++)<br><br>SET(CMAKE_FIND_ROOT_PATH /usr/arm-linux-androideabi-4.8)<br>

<br>SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)<br><br>SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)<br><br>SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)<br><br><br>and it seems to work as should just need to make a platform/android.cmake<br>

<br></div>but i cant find anywhere on the net how a minimal platform/xxxx.cmake is supposed to look like...<br><br></div>anyone care to help out?<br><br>thanks in advance <br></div>/Björn Strömberg</div>