qt android library,Android native use Qt library

I am using a static library which is developed by using QT(necessitas). Some issues block my work, so I am writing to ask for some advice from you. The strange issue I met is the static library and libQtCore.so is linked successfully with my Android native

shared library (which compiled by using ndk-r8b), but crashes at libQtCore.so.

The trace indicates that libQtCore.so crashes in some STL operation.

I have noticed that necessitas have its own ndk, so should I compile all of my android

native library by using the ndk of necessitas? The libc++/libstdc++ of necessitas and android libc++/libstdc++ are ABI compatible ?

Here is the crash trace. Thank you very much.

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000`enter code here`0000

/data/app-lib/com.balabala-1/libQtCore.so (std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, int)+468)

/data/app-lib/com.balabala-1/libQtCore.so (std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, int)+28)

02-18 10:53:50.779: I/DEBUG(159): stack:

02-18 10:53:50.779: I/DEBUG(159): 780664d0 7806656c [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 780664d4 78066510 [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 780664d8 78066510 [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 780664dc 7806656c [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 780664e0 72e37488

02-18 10:53:50.779: I/DEBUG(159): 780664e4 761fcbcb /data/app-lib/com.balabala-1/libmsess.so

02-18 10:53:50.779: I/DEBUG(159): 780664e8 c0000000

02-18 10:53:50.779: I/DEBUG(159): 780664ec 0000004c

02-18 10:53:50.779: I/DEBUG(159): 780664f0 0000004c

02-18 10:53:50.779: I/DEBUG(159): 780664f4 00000000

02-18 10:53:50.779: I/DEBUG(159): 780664f8 72e37480

02-18 10:53:50.779: I/DEBUG(159): 780664fc 4021a3c3 /system/lib/libc.so (dlmalloc+5170)

02-18 10:53:50.779: I/DEBUG(159): 78066500 76317d28

02-18 10:53:50.779: I/DEBUG(159): 78066504 762d2b0c /data/app-lib/com.balabala-1/libmsess.so

02-18 10:53:50.779: I/DEBUG(159): 78066508 df0027ad

02-18 10:53:50.779: I/DEBUG(159): 7806650c 00000000

02-18 10:53:50.779: I/DEBUG(159): #00 78066510 00000001

02-18 10:53:50.779: I/DEBUG(159): ........ ........

02-18 10:53:50.779: I/DEBUG(159): #01 78066510 00000001

02-18 10:53:50.779: I/DEBUG(159): 78066514 76317d28

02-18 10:53:50.779: I/DEBUG(159): 78066518 78066594 [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 7806651c 76317d28

02-18 10:53:50.779: I/DEBUG(159): 78066520 762d2b0c /data/app-lib/com.balabala-1/libmsess.so

02-18 10:53:50.779: I/DEBUG(159): 78066524 725e2fc8

02-18 10:53:50.779: I/DEBUG(159): 78066528 78066594 [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 7806652c 72e37488

02-18 10:53:50.779: I/DEBUG(159): 78066530 00100000

02-18 10:53:50.779: I/DEBUG(159): 78066534 72e37488

02-18 10:53:50.779: I/DEBUG(159): 78066538 00000000

02-18 10:53:50.779: I/DEBUG(159): 7806653c 75c7c4e0 /data/app-lib/com.balabala-1/libQtCore.so (std::basic_ostream >& std::operator<< <:char_traits> >(std::basic_ostream >&, char const*)+40)

02-18 10:53:50.779: I/DEBUG(159): 78066540 00000001

02-18 10:53:50.779: I/DEBUG(159): 78066544 78066594 [stack:24549]

02-18 10:53:50.779: I/DEBUG(159): 78066548 725e2fc8

02-18 10:53:50.779: I/DEBUG(159): 7806654c 762026d5 /data/app-lib/com.balabala-1/libmsess.so

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值