Skip to content
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

Fails to find Qt and Qwt libraries #68

Open
yurivict opened this issue Jul 7, 2022 · 5 comments
Open

Fails to find Qt and Qwt libraries #68

yurivict opened this issue Jul 7, 2022 · 5 comments

Comments

@yurivict
Copy link

yurivict commented Jul 7, 2022

ld: error: unable to find library -lqwt6
ld: error: unable to find library -lQt5Concurrent
ld: error: unable to find library -lQt5PrintSupport
ld: error: unable to find library -lQt5Svg
ld: error: unable to find library -lQt5OpenGL
ld: error: unable to find library -lQt5Widgets
ld: error: unable to find library -lQt5Gui
ld: error: unable to find library -lQt5Core
@yurivict
Copy link
Author

yurivict commented Jul 7, 2022

And the same problem with quazip1-qt5

@johnvelab
Copy link

johnvelab commented Jul 7, 2022 via email

@yurivict
Copy link
Author

yurivict commented Jul 7, 2022

Does it contain the missing libraries?

No, it doesn't.
I had to add these extra link flags to work around the problem:

LDFLAGS+=      `pkg-config --libs Qt5Concurrent Qt5PrintSupport Qt5Svg Qt5OpenGL Qt5Widgets Qt5Gui Qt5Core Qt5Qwt6`

You probably forgot to add Qt target to some of the binaries you build.

@yurivict
Copy link
Author

yurivict commented Jul 7, 2022

FAILED: Desktop/wb_view 
: && /usr/bin/c++ -fopenmp=libomp -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -I/usr/local/include/QuaZip-Qt5-1.3/quazip -DGL_GLEXT_PROTOTYPES -isystem /usr/local/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer  -I/usr/local/include/QuaZip-Qt5-1.3/quazip -DGL_GLEXT_PROTOTYPES -isystem /usr/local/include -lexecinfo -lquazip1-qt5 -fstack-protector-strong -L/usr/local/lib Desktop/CMakeFiles/wb_view.dir/desktop.cxx.o Desktop/CMakeFiles/wb_view.dir/qrc_general_resources.cpp.o Desktop/CMakeFiles/wb_view.dir/qrc_gui_resources.cpp.o Desktop/CMakeFiles/wb_view.dir/qrc_help_resources.cpp.o -o Desktop/wb_view  -Wl,-rpath,/usr/local/lib:/usr/local/lib/qt5:  GuiQt/libGuiQt.a  Commands/libCommands.a  Operations/libOperations.a  Algorithms/libAlgorithms.a  OperationsBase/libOperationsBase.a  -lqwt6  -lQt5Concurrent  -lQt5PrintSupport  -lQt5Svg  -lQt5OpenGL  -lQt5Widgets  -lQt5Gui  -lQt5Core  OSMesaDummy/libOSMesaDummy.a  Brain/libBrain.a  Files/libFiles.a  Graphics/libGraphics.a  -lftgl  Annotations/libAnnotations.a  Charting/libCharting.a  Palette/libPalette.a  Cifti/libCifti.a  Gifti/libGifti.a  Nifti/libNifti.a  QxtCore/libQxtCore.a  FilesBase/libFilesBase.a  Scenes/libScenes.a  Xml/libXml.a  CZIlib/CZICmd/libCZICmd.a  CZIlib/CZI/libCZI.a  CZIlib/CZIJxrDecode/libCZIJxrDecode.a  Common/libCommon.a  /usr/local/lib/libGLEW.so  /usr/local/lib/libfreetype.so  /usr/local/lib/qt5/libQt5Concurrent.so.5.15.2  /usr/local/lib/qt5/libQt5Network.so.5.15.2  /usr/local/lib/qt5/libQt5PrintSupport.so.5.15.2  /usr/local/lib/qt5/libQt5Test.so.5.15.2  /usr/local/lib/qt5/libQt5Widgets.so.5.15.2  /usr/local/lib/qt5/libQt5Xml.so.5.15.2  -lz  /usr/local/lib/libGL.so  /usr/local/lib/libGLU.so  -lgobject-2.0  /usr/local/lib/qt5/libQt5Gui.so.5.15.2  /usr/local/lib/qt5/libQt5Core.so.5.15.2  -Wl,-rpath-link,/usr/local/lib && :
ld: error: unable to find library -lqwt6
ld: error: unable to find library -lQt5Concurrent
ld: error: unable to find library -lQt5PrintSupport
ld: error: unable to find library -lQt5Svg
ld: error: unable to find library -lQt5OpenGL
ld: error: unable to find library -lQt5Widgets
ld: error: unable to find library -lQt5Gui
ld: error: unable to find library -lQt5Core

@johnvelab
Copy link

johnvelab commented Jul 7, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants