New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dyld library not loaded (QtWidgets); Reason: Image not found [macOS] [question] #1107
Comments
If you can identify and fix the issue, we're happy to review a patch for it. But given that it isn't one of the supported platforms, we won't likely be spending any time on it ourselves. |
Hi @AniPadmanabhan, I had this problem too and found this thread helpful: First I would make sure you have qt5 installed using The installed packages should be located in Using I had 3 errors when running this myself (QtWidgets, QtGUI, and QtCore) I hope this helps! |
Yes, exactly @Spicedwater. It works for me. I just changed this path |
What is the path to the executable? is it the Qt5 exec? |
Certainly I am not understanding some fundamentals, but what is
But, I get:
|
Hi, the executable in this case is the ros2 executable. In my example that is the turtlesim_node exe. Change this for the executable that you are trying to run and hope for the best! what this command is doing is changing where the executable is looking for it’s dependencies. The error arises when the executable looks where it has been told to look, but cannot find what it has been told to look for. We are just telling the executable to look in a new place. If this doesn’t work, I will be back at my work computer in a few days and can look into it good luck! |
Hi Wgrand, I would see the above answer and make sure you are putting the executable in your command. The command as you have put it doesn’t make any sense as the command doesn’t know what executable to change. |
Thank you @Spicedwater! Here is what I did:
And repeated the same command by replacing |
This work for me.
|
@wuyue92tree it works for me, thanks |
Bug report
Required Info:
Operating System:
Installation type:
Steps to reproduce issue
Executing "ros2 run turtlesim turtlesim_node" results in the following error:
dyld: Library not loaded: /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets
Referenced from: /Path/to/directory/ros2_foxy/install/turtlesim/lib/turtlesim/turtlesim_node
Reason: image not found
Additional information
The same workspace and installation worked perfectly in the previous version of the OS (11.2.2) without any glitches. There was no update/changes, either to the ros2 or Qt directories, between the two versions. I understand Big Sur is not officially supported for Foxy, but since it worked well on one version (Rviz, Gazebo and all in 11.2.2) I'm just a little hopeful.
The text was updated successfully, but these errors were encountered: