"Library not loaded: @rpath/libQt5Core.5.dylib"
FrankDMartinez opened this issue · comments
Building with CMake 3.14.4 and then running nocode
gives this result
dyld: Library not loaded: @rpath/libQt5Core.5.dylib
Referenced from: /usr/local/bin/nocode
Reason: image not found
zsh: abort nocode --help
I am confused how Qt 5 is relevant for the command line program.
Qt is not only a GUI framework.
nocode uses QString, I/O streams, maybe something else from it.
Unfortunately, I do not have a macOS machine/experience with building Snowman for Mac, so, I cannot help you much with why the library is not found.
Maybe you could post the whole sequence of building steps, with the outputs of all commands, and I or somebody else will have a look and get an idea.
Assuming you have Qt Frameworks installed to /usr/local/opt/qt
(Homebrew) and Snowman installation prefix at /usr/local
:
install_name_tool -change @rpath/libQt5Widgets.5.dylib \
/usr/local/opt/qt/lib/QtWidgets.framework/QtWidgets /usr/local/bin/snowman
install_name_tool -change @rpath/libQt5Core.5.dylib \
/usr/local/opt/qt/lib/QtCore.framework/QtCore /usr/local/bin/snowman
install_name_tool -change @rpath/libQt5Gui.5.dylib \
/usr/local/opt/qt/lib/QtGui.framework/QtGui /usr/local/bin/snowman
For nocode
it's exactly the same.
Enjoy.