c++ - Android cmake cannot find -lpthread -


i'm trying compile shared library using cmake. followed instruction on this tutorial change toolchain android ndk. however, i'm getting following output error:

/home/usr/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread collect2: error: ld returned 1 exit status make[2]: *** [../libs/armeabi-v7a/libutils.so] error 1 make[1]: *** [src/cmakefiles/utils.dir/all] error 2 make: *** [all] error 2 

a bit of googling around , stumble upon this stackoverflow post. modified cmakelists.txt add:

set(cmake_cxx_flags"-dhave_pthreads") 

but seems still doesn't work. going wrong way?

thanks!


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -