Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69601 - [qtcreator] Qt Creator plugin Hunspell can not be used due to missing soname links

Attached to Project: Arch Linux
Opened by Olav Strehl (Olav) - Tuesday, 09 February 2021, 19:55 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 18 February 2021, 17:04 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The hunspell plugin can not be loaded due to missing sonames.

(Error message is displayed during Qt Creator start up)

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 installed.

See: https://bugreports.qt.io/browse/QTCREATORBUG-25334
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 18 February 2021, 17:04 GMT
Reason for closing:  Won't fix
Comment by Antonio Rojas (arojas) - Tuesday, 09 February 2021, 20:53 GMT
I don't see any hunspell plugin in qtcreator, can you please describe in detail what the issue is and post the exact error messages you get?
Comment by Olav Strehl (Olav) - Tuesday, 09 February 2021, 22:01 GMT
Thanks for the fast reply.

Sorry for being to imprecise. The issue occurs during loading of the SpellChecker plugin. (qtcreator-spellchecker-plugin-git)
Error message:

Could not resolve dependency 'Core(4.4.1)'
Could not resolve dependency 'TextEditor(4.4.1)'
Could not resolve dependency 'ProjectExplorer(4.4.1)'
Could not resolve dependency 'CppEditor(4.4.1)'
Could not resolve dependency 'CppTools(4.4.1)'

But seems to be caused by the options that qtcreator is build with and not by the plugin itself.

The 'new' "cmake install" command does not install the sonames(symbolic link) without version for the libraries in the "/usr/lib/qtcreator/" folder. Therefore, qt-creator plugins on Linux/Unix platforms cannot find the libraries and throw an error during linking. The links were set before the build system were changed to cmake.

A suggested patch can be found attached to the Qt Bug report.
Comment by Antonio Rojas (arojas) - Thursday, 18 February 2021, 17:04 GMT
As per the upstream report, qmake-based plugins are not compatible with a cmake-built qtcreator. Use the binary version for now, or change the qtcreator-src package to also install the so links

Loading...