Trying to build QMsgPack lib for Android 6.2.0 Clang arm64-v8a
-
Did you do a full rebuild ? Meaning, nuking the build folder completely.
-
Put back the tests.
TEMPLATE = subdirs SUBDIRS += \ src \ tests tests.depends = srcAnd select a test as build target.
-
Put back the tests.
TEMPLATE = subdirs SUBDIRS += \ src \ tests tests.depends = srcAnd select a test as build target.
-
On the left of Qt Creator, the target selection part.
-
Did you check the content of the build folder ?
-
There are several folders, what's in them ?
Do you have any library ?
If memory serves well, there should be a bin folder somewhere. -
There are several folders, what's in them ?
Do you have any library ?
If memory serves well, there should be a bin folder somewhere. -
On the contrary, you have two libraries !
They have their architecture as part of their name, hence the linker does not find them to link to the test.
If your rename them both without the arm64_v8a part, it should work.
-
On the contrary, you have two libraries !
They have their architecture as part of their name, hence the linker does not find them to link to the test.
If your rename them both without the arm64_v8a part, it should work.
-
In the absolute, you can ignore that as the libraries were built so you can use them in your main application.
Otherwise, you can add a dummy application in a separate subdirs project to "finalize" things.
-
In the absolute, you can ignore that as the libraries were built so you can use them in your main application.
Otherwise, you can add a dummy application in a separate subdirs project to "finalize" things.
-
You do the same as in the tests.
So you should get automatic selection of the debug or release build of the library.
-
You do the same as in the tests.
So you should get automatic selection of the debug or release build of the library.
@SGaist hmm so my app just keeps crashing with
E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread E AndroidRuntime: Process: org.qtproject.example.MythicalNeonController2022, PID: 26459 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libqmsgpack_arm64-v8a.so" not found: needed by /data/app/~~LJNNcupsrVLUgmF_dlRnOQ==/org.qtproject.example.MythicalNeonController2022-wsptj5r7HC3hbU6jwxMthw==/lib/arm64/libMythicalNeonController2022_arm64-v8a.so in namespace classloader-namespace E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:939) E AndroidRuntime: at java.lang.System.load(System.java:1628) E AndroidRuntime: at org.qtproject.qt.android.QtNative$4.run(QtNative.java:511) E AndroidRuntime: at org.qtproject.qt.android.QtThread$2.run(QtThread.java:87) E AndroidRuntime: at org.qtproject.qt.android.QtThread$1.run(QtThread.java:61) E AndroidRuntime: at java.lang.Thread.run(Thread.java:923) -
You need to deploy it as well. See here for more information about that matter.






