Solved Linker Fehler mit Qt 5.12.11
-
Hallo zusammen,
ich habe ein neues cmake Projekt mit dem Aktuellen Qt Creator 6 auf Basis von Qt 5.12.11 erstellt. Wenn ich diese Projekt jetzt compilieren will bekomme ich folgende Fehlermeldungen:
FAILED: qt_perfo : && /usr/local/bin/x86_64-pc-linux-gnu-g++ -g -Wl,-rpath -Wl,/usr/lib/x86_64-linux-gnu/ CMakeFiles/qt_perfo.dir/qt_perfo_autogen/mocs_compilation.cpp.o CMakeFiles/qt_perfo.dir/source/main.cpp.o -o qt_perfo -Wl,-rpath,/opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib -lm /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11 && : /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `stat64@GLIBC_2.33' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `typeinfo for __cxxabiv1::__forced_unwind@CXXABI_1.3.2' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_guard_acquire@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_end_catch@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator delete(void*)@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `fstat64@GLIBC_2.33' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libicuuc.so.56: undefined reference to `std::bad_alloc::~bad_alloc()@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `dlsym@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `fcntl64@GLIBC_2.28' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_begin_catch@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `dlerror@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_demangle@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__gxx_personality_v0@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::__exception_ptr::operator==(std::__exception_ptr::exception_ptr const&, std::__exception_ptr::exception_ptr const&)@CXXABI_1.3.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator new(unsigned long, std::nothrow_t const&)@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_mutexattr_init@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_allocate_exception@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_key_create@GLIBC_2.2.5' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_key_create@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_key_delete@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator delete[](void*)@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator delete(void*, std::nothrow_t const&)@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_unlock@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_guard_abort@CXXABI_1.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_detach@GLIBC_2.34' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_setspecific@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::__exception_ptr::exception_ptr::exception_ptr(std::__exception_ptr::exception_ptr const&)@CXXABI_1.3.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_trywrlock@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::ctype<char> const& std::use_facet<std::ctype<char> >(std::locale const&)@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_rethrow@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_attr_setstacksize@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_testcancel@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator new(unsigned long)@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libicuuc.so.56: undefined reference to `__cxa_call_unexpected@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_setspecific@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::__throw_future_error(int)@GLIBCXX_3.4.14' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_sigmask@GLIBC_2.32' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_condattr_setclock@GLIBC_2.3.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_join@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::bad_alloc::~bad_alloc()@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator new[](unsigned long, std::nothrow_t const&)@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `dlclose@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::terminate()@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_setname_np@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_pure_virtual@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_once@GLIBC_2.2.5' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_destroy@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::nothrow@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_mutex_trylock@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::__exception_ptr::exception_ptr::~exception_ptr()@CXXABI_1.3.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::exception::what() const@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_cancel@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `dlopen@GLIBC_2.2.5' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `lstat64@GLIBC_2.33' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `vtable for std::bad_alloc@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::exception::~exception()@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_tryrdlock@GLIBC_2.34' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `close_range@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libicui18n.so.56: undefined reference to `__dynamic_cast@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `typeinfo for std::exception@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_getspecific@GLIBC_2.34' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_attr_setstacksize@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::locale::classic()@GLIBCXX_3.4' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `std::rethrow_exception(std::__exception_ptr::exception_ptr)@CXXABI_1.3.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_key_delete@GLIBC_2.34' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_init@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `pthread_create@GLIBC_2.2.5' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_throw@CXXABI_1.3' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `operator new[](unsigned long)@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_mutexattr_settype@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `typeinfo for std::bad_alloc@GLIBCXX_3.4' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.34' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_create@GLIBC_2.34' /opt/Extern/Entwicklung/Qt/5.12.11/gcc_64/lib/libQt5Core.so.5.12.11: undefined reference to `__cxa_guard_release@CXXABI_1.3' /usr/lib/x86_64-linux-gnu//libglib-2.0.so.0: undefined reference to `pthread_mutexattr_destroy@GLIBC_2.34' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
Hat einer von Euch eine Idee wo das Problem liegt? Hat das was mit meinem verwendeten Xubuntu zu tun?
Danke für Eure Hilfe.
gruss
martin -
@msauer75 purge alle gcc und gcc neu installieren.
-
@msauer75 said in Linker Fehler mit Qt 5.12.11:
undefined reference to `__cxa_begin_catch@CXXABI_1.3'
-
In meinem System war anscheinend noch ein alter GCC 4.9.3, keine Ahnung wo der herkam. Nachdem ich die Kit Config in QtCreator angepasst hatte, funktioniert es.
martin
-
@msauer75 Dann markiere den Thread bitte als Solved/Erledigt.
-
@msauer75 purge alle gcc und gcc neu installieren.