android - How to make mutexes work in NDK on Ubuntu? -
gradle experimental plugin v.0.7.0 used work ndk in android project.
for app module native code ndk configuration used:
ndk { modulename = 'engine' toolchain = 'clang' cppflags.addall(["-i${file(project.mpathincocv)}".tostring(), '-o3', '-std=c++11', '-frtti', '-fexceptions']) ldlibs.addall(['android', 'log', 'opencv_java3']) stl = 'gnustl_static' }
everything works great such configuration. std includes work.
but. when try use mutexes (from std) in c++ code, works in os x, encounters next error in ubuntu makes compilation impossible:
'mutex' in namespace 'std' not name type
looked corresponding questions. tried change stl on c++ , stlport, use (gcc) toolchain, without success.
is reasonable keep trying configure mutexes compilation in ubuntu, or it's better workaround (e.g. using mutexes library)?
Comments
Post a Comment