Hi,
Trying to target android from OS X I get the following error:
scons SYS_VERSION=10.11 VERBOSE=true TARGET_OS=android
ANDROID_HOME=/Users/gar/android/sdk
...
/Users/gar/iotivity/iotivity/extlibs/android/ndk/android-ndk-r10d/toolchains/x86-4.8/prebuilt/darwin-x86_64/bin/i686-linux-android-g++
-o out/android/x86/release/resource/src/liboc.so -Wl,--gc-sections
-Wl,-z,nocopyreloc
--sysroot=/Users/gar/iotivity/iotivity/extlibs/android/ndk/android-ndk-r10d/platforms/android-21/arch-x86
-no-canonical-prefixes -Wl,-z,noexecstack -Wl,--no-undefined -Wl,-z,relro
-Wl,-z,now -s -Wl,-soname,liboc.so -shared
out/android/x86/release/resource/src/OCPlatform.os
out/android/x86/release/resource/src/OCPlatform_impl.os
out/android/x86/release/resource/src/OCResource.os
out/android/x86/release/resource/src/OCUtilities.os
out/android/x86/release/resource/src/OCException.os
out/android/x86/release/resource/src/OCRepresentation.os
out/android/x86/release/resource/src/InProcServerWrapper.os
out/android/x86/release/resource/src/InProcClientWrapper.os
out/android/x86/release/resource/src/OCResourceRequest.os
out/android/x86/release/resource/src/CAManager.os -Ldeps/android/lib/x86
-Lextlibs/android/ndk/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/x86
-Ldep/android/x86/usr/lib -Lout/android/x86/release -L.
-Lresource/csdk/connectivity/lib/android
-Lout/android/x86/release/resource/csdk/logger -Lresource/csdk/logger
-Lout/android/x86/release/resource/c_common -Lresource/c_common
-Lout/android/x86/release/resource/csdk/routing -Lresource/csdk/routing
-lc_common -llogger -llog -lcoap -lc_compat -landroid_cpp11_compat
-lroutingmanager -loctbstack -loc_logger -lconnectivity_abstraction
-lboost_thread -lgnustl_shared
/Users/gar/iotivity/iotivity/extlibs/android/ndk/android-ndk-r10d/toolchains/x86-4.8/prebuilt/darwin-x86_64/bin/../lib/gcc/i686-linux-android/4.8/../../../../i686-linux-android/bin/ld:
error: boost_thread: no archive symbol table (run ranlib)
Based on some stuff I found googling I thought setting env var $AR to the
ndk's i686-linux-android-ar might do the trick but it seemed to have no
effect.
Or maybe it's my boost build. I just download boost to extlibs/boost and
unzipped it. Then at build time I see:
bootstrapping using [extlibs/boost/boost_1_58_0.zip] ...
building boost from [extlibs/boost/boost_1_58_0/b2] for ...
Performing configuration checks
- 32-bit : no (cached)
- 64-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
- lockfree boost::atomic_flag : yes (cached)
Component configuration:
- atomic : not building
- chrono : not building
- container : not building
- context : not building
- coroutine : not building
- date_time : building
- exception : not building
- filesystem : not building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : not building
- math : not building
- mpi : not building
- program_options : building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : building
- test : not building
- thread : building
- timer : not building
- wave : not building
...patience...
...patience...
...found 23636 targets...
...updating 5 targets...
common.copy
/Users/gar/iotivity/iotivity/dep/android/x86/usr/include/boost/config.hpp
common.copy
/Users/gar/iotivity/iotivity/dep/android/x86/usr/include/boost/date_time.hpp
common.copy
/Users/gar/iotivity/iotivity/dep/android/x86/usr/include/boost/program_options.hpp
common.copy
/Users/gar/iotivity/iotivity/dep/android/x86/usr/include/boost/thread.hpp
common.copy
/Users/gar/iotivity/iotivity/dep/android/x86/usr/include/boost/variant.hpp
...updated 5 targets...
Does that look right? Anybody know what I need to do here to get unstuck?
Thanks,
Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160531/86713ec3/attachment.html>