Date: Thu, 14 Jan 2021 08:31:26 +0100 Subject: [PATCH] The "cmake install" command does not install the sonames(symbolic link) without version for the libraries in the "/usr/lib/qtcreator/" folder, because in the function "add_qtc_library" the default value of NAMELINK_OPTION is set to NAMELINK_SKIP. Therefore, qt-creator plugins on Linux/Unix platforms cannot find the libraries and throw an error during linking. Change the default from NAMELINK_SKIP to NAMELINK_COMPONENT fix the problem. Before the cmake build system was used, those symbolic links were install. This change restore the behavior of qmake. The following symbolic links are missing: - /usr/lib/qtcreator/libAdvancedDockingSystem.so -> libAdvancedDockingSystem.so.4 - /usr/lib/qtcreator/libAggregation.so -> libAggregation.so.4 - /usr/lib/qtcreator/libClangSupport.so -> libClangSupport.so.4 - /usr/lib/qtcreator/libCPlusPlus.so -> libCPlusPlus.so.4 - /usr/lib/qtcreator/libExtensionSystem.so -> libExtensionSystem.so.4 - /usr/lib/qtcreator/libGLSL.so -> libGLSL.so.4 - /usr/lib/qtcreator/libLanguageServerProtocol.so.4 -> libLanguageServerProtocol.so.4 - /usr/lib/qtcreator/libLanguageUtils.so.4 -> libLanguageUtils.so.4 - /usr/lib/qtcreator/libModeling.so -> libModeling.so.4 - /usr/lib/qtcreator/libProParser.so -> libProParser.so.4 - /usr/lib/qtcreator/libqlitehtml.so -> libqlitehtml.so.4 - /usr/lib/qtcreator/libQmlDebug.so -> libQmlDebug.so.4 - /usr/lib/qtcreator/libQmlEditorWidgets.so -> libQmlEditorWidgets.so.4 - /usr/lib/qtcreator/libQmlJS.so -> libQmlJS.so.4 - /usr/lib/qtcreator/libQtcSsh.so -> libQtcSsh.so.4 - /usr/lib/qtcreator/libSqlite.so -> libSqlite.so.4 - /usr/lib/qtcreator/libTracing.so -> libTracing.so.4 - /usr/lib/qtcreator/libUtils.so -> libUtils.so.4 --- cmake/QtCreatorAPI.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 45ff4d0696..5ecc66f915 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -240,7 +240,7 @@ function(add_qtc_library name) unset(NAMELINK_OPTION) if (library_type STREQUAL "SHARED") - set(NAMELINK_OPTION NAMELINK_SKIP) + set(NAMELINK_OPTION NAMELINK_COMPONENT) endif() unset(COMPONENT_OPTION) -- 2.30.0