"Qt Quick Application - Empty" compile error
-
When I try to compile and run blank "Qt Quick Application - Empty", I have got 2 errors:
:-1: error: error: cannot find -lc++
and
.../main.cpp:-1: error: error: undefined reference to '__gxx_personality_v0'
I am working on linux. I am totally beginner in Qt. Tell me, what information do you need to help me.
--
Thanks a lot,
And sorry for my English. -
Hi and welcome to devnet,
You need to provide:
- The version of Qt you are using
- How you installed it
- The Linux distribution you are running
- The compiler you are using
-
You're cross-compiling for Android ?
If so, which NDK did you install ?
-
r18
did come with a lot of modification that made 3dparty fail to build. Either use the version recommend by the documentation (i.e. r10e) or version 17 at this time which seems to be usable. -
r18
did come with a lot of modification that made 3dparty fail to build. Either use the version recommend by the documentation (i.e. r10e) or version 17 at this time which seems to be usable. -
Did you nuke the build folder after changing the NDK ?
-
@SGaist
New error:Project ERROR: Cannot run target compiler '.../android-ndk-r10e/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++'. Output: =================== /bin/sh: 1: .../android-ndk-r10e/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++: not found =================== Maybe you forgot to setup the environment? Error while parsing file .../someProject.pro. Giving up.
This is toolchains directory:
-
Did you fiddle with the settings ? You should be using gcc.
-
Check your Qt for Android Kit to see what compiler is selected and change to gcc