ros-industrial / ros_qtc_plugin

ROS Qt Creator Plug-in (https://ros-qtc-plugin.readthedocs.io)
396 stars 213 forks source link

Plugin cannot be loaded #475

Closed HowardWhile closed 1 year ago

HowardWhile commented 1 year ago

Hi there, When I import the plugin and restart qt creator, I got an error message like this...

image

/home/user/.local/share/data/QtProject/qtcreator/plugins/9.0.1/lib/qtcreator/plugins/libROSProjectManager.so: Cannot load library /home/user/.local/share/data/QtProject/qtcreator/plugins/9.0.1/lib/qtcreator/plugins/libROSProjectManager.so: (/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/user/.local/share/data/QtProject/qtcreator/plugins/9.0.1/lib/qtcreator/plugins/libROSProjectManager.so))

This is my system infomation Ubuntu 20.04 Qt Creator 9.0.1 ros_qtc_plugin 9.0

I have tried below versions and only ros_qtc_plugin 9.0 have problem.

Maybe I have to make & install GLIBC or update my ubuntu?

christian-rauch commented 1 year ago

I assume you use the "official" binary distribution of Qt Creator installed by the Qt installer and the plugin from the binary release artefacts?

The problem is here version `GLIBC_2.32' not found, which is probably caused by the different systems where Qt Creator and the plugin are compiled. The binary distribution of the plugin is compiled on ubuntu-latest, which is Ubuntu 22.04 at the moment.

I have to look into how to resolve this problem. This is possible since the official binary Qt Creator distribution also works on different Linux distributions.

In the meantime, I suggest you use the Qt Creator snap package which contains Qt Creator and a compatible plugin.

HowardWhile commented 1 year ago

Thanks for your advice.

Now I use the following environment: Ubuntu 22.04 Qt Creator 9.0.1 ros_qtc_plugin 9.0

Can be used normally~

christian-rauch commented 1 year ago

I downgraded the Ubuntu version in the CI pipeline (https://github.com/ros-industrial/ros_qtc_plugin/pull/477). If you still want to use the latest version from the online installer you can try the Linux build artefact from that PR.

There will be a new release once this is merged and you will be able to use the official installation instructions again.