Forgive me because I've sent an email and then open an issue here. The commands are: cmake -DCMAKE_INSTALL_PREFIX=/tmp/qca -DBUILD_SHARED_LIBS=OFF .. make Then, the error messages showed. Linking CXX executable ../../bin/base64unittest CMakeFiles/base64unittest.dir/base64unittest.cpp.o: In function `Staticqca_botanPluginInstance::Staticqca_botanPluginInstance()': base64unittest.cpp:(.text._ZN29Staticqca_botanPluginInstanceC2Ev[_ZN29Staticqca_botanPluginInstanceC5Ev]+0xe): undefined reference to `qt_static_plugin_qca_botan()' CMakeFiles/base64unittest.dir/base64unittest.cpp.o: In function `Staticqca_gcryptPluginInstance::Staticqca_gcryptPluginInstance()': base64unittest.cpp:(.text._ZN30Staticqca_gcryptPluginInstanceC2Ev[_ZN30Staticqca_gcryptPluginInstanceC5Ev]+0xe): undefined reference to `qt_static_plugin_qca_gcrypt()' CMakeFiles/base64unittest.dir/base64unittest.cpp.o: In function `Staticqca_gnupgPluginInstance::Staticqca_gnupgPluginInstance()': base64unittest.cpp:(.text._ZN29Staticqca_gnupgPluginInstanceC2Ev[_ZN29Staticqca_gnupgPluginInstanceC5Ev]+0xe): undefined reference to `qt_static_plugin_qca_gnupg()' CMakeFiles/base64unittest.dir/base64unittest.cpp.o: In function `Staticqca_loggerPluginInstance::Staticqca_loggerPluginInstance()': base64unittest.cpp:(.text._ZN30Staticqca_loggerPluginInstanceC2Ev[_ZN30Staticqca_loggerPluginInstanceC5Ev]+0xe): undefined reference to `qt_static_plugin_qca_logger()' CMakeFiles/base64unittest.dir/base64unittest.cpp.o: In function `Staticqca_osslPluginInstance::Staticqca_osslPluginInstance()': base64unittest.cpp:(.text._ZN28Staticqca_osslPluginInstanceC2Ev[_ZN28Staticqca_osslPluginInstanceC5Ev]+0xe): undefined reference to `qt_static_plugin_qca_ossl()' CMakeFiles/base64unittest.dir/base64unittest.cpp.o: In function `Staticqca_softstorePluginInstance::Staticqca_softstorePluginInstance()': base64unittest.cpp:(.text._ZN33Staticqca_softstorePluginInstanceC2Ev[_ZN33Staticqca_softstorePluginInstanceC5Ev]+0xe): undefined reference to `qt_static_plugin_qca_softstore()' collect2: error: ld returned 1 exit status make[2]: *** [bin/base64unittest] Error 1 make[1]: *** [unittest/base64unittest/CMakeFiles/base64unittest.dir/all] Error 2 make: *** [all] Error 2 Any ideas would be grateful. I have to note that this error is reproducible on Windows as well. Using the QCA-2.1.0 source.
Try to build without tests and examples, use -DBUILD_TESTS=OFF
Which version of Qt do you use?
Qt 5.3.2 both on Windows and Linux. I tried with -DBUILD_TESTS=OFF but end up with same error. It seems the error would definitely happen if you link the library to any executable that import the static library.
Is this still a problem?
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!