Building on Windows for Android

Help
ibrahim
2012-06-11
2013-06-03
  • ibrahim
    ibrahim
    2012-06-11

    Hi,

    I was able to successfully build NavIt on Windows for Android, but with one caveat. App crashes upon start while loading libnavit.so. I traced the failure down to dynamic linking with libz.so. For some reason libz.so is being searched in

    stat64("/system/lib/C:\\Android\\android-ndk\\toolchains\\arm-linux-androideabi-4.4.3\\prebuilt\\windows\\bin\\..\\..\\..\\..\\..\\platforms\\android-8\\arch-arm\\usr\\lib\\libz.so", 0xbeebb388) = -1 ENOENT (No such file or directory)

    It seems cmake finds the library in C:\Android\android-ndk\platforms\android-8\arch-arm\usr\lib\libz.so and hard-codes this path.

    Has anybody ran into something similar before?
    Thanks,
    -ibrahim

     
  • ibrahim
    ibrahim
    2012-06-11

    I guess I should also mention my build commands. They are simply
    cmake -DCMAKE_TOOLCHAIN_FILE=../src/Toolchain/arm-eabi.cmake -DCACHE_SIZE="(20*1024*1024)" -DAVOID_FLOAT=1 -DANDROID_PERMISSIONS="CAMERA" -G "MinGW Makefiles"../src
    mingw32-make
    mingw32-make apkg