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

cannot find -lQt5 #42

Closed
fortunto2 opened this issue Aug 4, 2016 · 9 comments
Closed

cannot find -lQt5 #42

fortunto2 opened this issue Aug 4, 2016 · 9 comments

Comments

@fortunto2
Copy link

fortunto2 commented Aug 4, 2016

Hi, i install in AWS GPU with CUDA
https://gist.github.com/fortunto2/530a2b096d497f01dedabd4789fb84ce

and final error in make

[ 94%] Built target FaceAnalyser
Linking CXX executable ../../bin/FaceLandmarkImg
/usr/bin/ld: cannot find -lQt5::Core
/usr/bin/ld: cannot find -lQt5::Gui
/usr/bin/ld: cannot find -lQt5::Widgets
/usr/bin/ld: cannot find -lQt5::Test
/usr/bin/ld: cannot find -lQt5::Concurrent
/usr/bin/ld: cannot find -lQt5::OpenGL
collect2: error: ld returned 1 exit status
make[2]: *** [bin/FaceLandmarkImg] Error 1
make[1]: *** [exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/all] Error 2

but Qt in system

ubuntu@ip-172-31-1-31:~/OpenFace/build$ apt-file search Qt5CoreConfig.cmake
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake
ubuntu@ip-172-31-1-31:~/OpenFace/build$ qmake --version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu

qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"


@TadasBaltrusaitis
Copy link
Owner

I have not tried to build it on AWS. I'm surprised it needs to link to Qt at all (unless it's an OpenCV dependency) as I don't use it internally as such. Is FaceLandmarkImg the only binary that has this issue?

@fortunto2
Copy link
Author

fortunto2 commented Aug 6, 2016

there are other applications like also asked from /bin/...
I check in the evening, as now stoped instance on aws

on aws - Ubuntu 14

@Temigo
Copy link
Contributor

Temigo commented Aug 16, 2016

I think OpenCV GUI highgui needs Qt. Which version of CMake are you using ?

@fortunto2
Copy link
Author

@Temigo GCC 4.9

@PianoCat
Copy link

PianoCat commented Dec 9, 2016

@fortunto2 Have u already fix this problem? I just find the same problem in my own project, it makes me crazy...

@PianoCat
Copy link

I got it fixed last night, thank u all the same.

@PapaMadeleine2022
Copy link

@PianoCat @fortunto2 getting the same problem. how do you solve it?
looking forward for your reply.

@dshahrokhian
Copy link
Contributor

@PianoCat please share your solution so other people searching over the issue page can find it.

@PapaMadeleine2022
Copy link

@dshahrokhian @TadasBaltrusaitis I set the true path of libQt5Core.so.5, libQt5Gui.so.5, etc, in CMakeLists and cmake again. But it still shows error:

[ 96%] Linking CXX executable ../../bin/FaceLandmarkVid
/usr/bin/ld: cannot find -lQt5::Core
/usr/bin/ld: cannot find -lQt5::Gui
/usr/bin/ld: cannot find -lQt5::Widgets
/usr/bin/ld: cannot find -lQt5::Test
/usr/bin/ld: cannot find -lQt5::Concurrent
/usr/bin/ld: cannot find -lQt5::OpenGL
collect2: error: ld returned 1 exit status
exe/FaceLandmarkVid/CMakeFiles/FaceLandmarkVid.dir/build.make:154: recipe for target 'bin/FaceLandmarkVid' failed
make[2]: *** [bin/FaceLandmarkVid] Error 1
CMakeFiles/Makefile2:309: recipe for target 'exe/FaceLandmarkVid/CMakeFiles/FaceLandmarkVid.dir/all' failed
make[1]: *** [exe/FaceLandmarkVid/CMakeFiles/FaceLandmarkVid.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Linking CXX executable ../../bin/FaceLandmarkVidMulti
/usr/bin/ld: cannot find -lQt5::Core
/usr/bin/ld: cannot find -lQt5::Gui
/usr/bin/ld: cannot find -lQt5::Widgets
/usr/bin/ld: cannot find -lQt5::Test
/usr/bin/ld: cannot find -lQt5::Concurrent
/usr/bin/ld: cannot find -lQt5::OpenGL
collect2: error: ld returned 1 exit status
exe/FaceLandmarkVidMulti/CMakeFiles/FaceLandmarkVidMulti.dir/build.make:153: recipe for target 'bin/FaceLandmarkVidMulti' failed
make[2]: *** [bin/FaceLandmarkVidMulti] Error 1
CMakeFiles/Makefile2:365: recipe for target 'exe/FaceLandmarkVidMulti/CMakeFiles/FaceLandmarkVidMulti.dir/all' failed
make[1]: *** [exe/FaceLandmarkVidMulti/CMakeFiles/FaceLandmarkVidMulti.dir/all] Error 2
[ 98%] Linking CXX executable ../../bin/FeatureExtraction
/usr/bin/ld: cannot find -lQt5::Core
/usr/bin/ld: cannot find -lQt5::Gui
/usr/bin/ld: cannot find -lQt5::Widgets
/usr/bin/ld: cannot find -lQt5::Test
/usr/bin/ld: cannot find -lQt5::Concurrent
/usr/bin/ld: cannot find -lQt5::OpenGL
collect2: error: ld returned 1 exit status
exe/FeatureExtraction/CMakeFiles/FeatureExtraction.dir/build.make:154: recipe for target 'bin/FeatureExtraction' failed
make[2]: *** [bin/FeatureExtraction] Error 1
CMakeFiles/Makefile2:422: recipe for target 'exe/FeatureExtraction/CMakeFiles/FeatureExtraction.dir/all' failed
make[1]: *** [exe/FeatureExtraction/CMakeFiles/FeatureExtraction.dir/all] Error 2
[100%] Linking CXX executable ../../bin/FaceLandmarkImg
/usr/bin/ld: cannot find -lQt5::Core
/usr/bin/ld: cannot find -lQt5::Gui
/usr/bin/ld: cannot find -lQt5::Widgets
/usr/bin/ld: cannot find -lQt5::Test
/usr/bin/ld: cannot find -lQt5::Concurrent
/usr/bin/ld: cannot find -lQt5::OpenGL
collect2: error: ld returned 1 exit status
exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/build.make:154: recipe for target 'bin/FaceLandmarkImg' failed
make[2]: *** [bin/FaceLandmarkImg] Error 1
CMakeFiles/Makefile2:252: recipe for target 'exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/all' failed
make[1]: *** [exe/FaceLandmarkImg/CMakeFiles/FaceLandmarkImg.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

however, it seems like it can compile 100% rather than 92% this time.

@fortunto2 how do you solve it?

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

6 participants