"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++
.../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
- by MaintenanceTool
- Android GCC (C++, i686-49)
You're cross-compiling for Android ?
If so, which NDK did you install ?
I also have Android Studio installed
r18did 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.
Changing to r10e didn't fix the problem, errors are the same.
Did you nuke the build folder after changing the NDK ?
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.
No, I didn't. So, how to repair this?
Check your Qt for Android Kit to see what compiler is selected and change to gcc