pps
unread,Aug 10, 2012, 8:06:15 PM8/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to andro...@googlegroups.com
I tried to build with latest r8b and it doesn't not link my app in debug build anymore.
I've been building it since r4, currently using r7 (some r7x version had bugs that prevented my so from loading because it would import some gcc specific symbols that aren't present on devices)
r8 works fine (didn't actually try to load, but it builds everything). r8b fails to link debug builds. After trying different settings it appears that NDK_DEBUG=1 makes the problem (NDK_DEBUG=0 is fine);
I get these link errors:
SharedLibrary : libXXX.so
`.LTHUNK6' referenced in section `.text._ZN3DeviceTupleImplD1Ev[DeviceTupleImpl::~DeviceTupleImpl()]' of ./obj
/local/armeabi/libYYY.a(DeviceTuple.o): defined in discarded section `.text._ZN3DeviceTupleImplD2Ev[_ZN3D
eviceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(DeviceTuple.o)
`.LTHUNK5' referenced in section `.text._ZN3ServiceTupleImplD1Ev[ServiceTupleImpl::~ServiceTupleImpl()]' of ./
obj/local/armeabi/libYYY.a(ServiceTuple.o): defined in discarded section `.text._ZN3ServiceTupleImplD2Ev[_ZN3S
IP16ServiceTupleImplD5Ev]' of ./obj/local/armeabi/libYYY.a(ServiceTuple.o)
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libXXX.so] Error 1
Basically, the project compiles many static libs (libYYY for example), then uses all of them to create final shared libXXX.so
I'm building on windows using regular cmd.exe, I have no warnings at compile time.