Linking CXX executables returns an error mentioning cannot find..

asked 2017-03-23 12:34:03 -0600

picaso gravatar image

updated 2017-03-23 13:05:25 -0600

berak gravatar image
  [ 50%] Linking CXX executable
----------
 milestone2 /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
 CMakeFiles/milestone2.dir/build.make:125:
 recipe for target 'milestone2' failed
 make[2]: *** [milestone2] Error 1
 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/milestone2.dir/all' failed make[1]: ***
 [CMakeFiles/milestone2.dir/all] Error
 2 Makefile:83: recipe for target 'all'
 failed make: *** [all] Error 2
edit retag flag offensive close merge delete

Comments

next time, please use the 10101 button to format it, not the " one.

berak gravatar imageberak ( 2017-03-23 12:39:32 -0600 )edit
1

@berak thank you...sorry for the inconvenient formatting..hope for a solution...first time here

picaso gravatar imagepicaso ( 2017-03-23 12:58:00 -0600 )edit

^^ no problem, you're also trying to help other folks, which is awesome !

berak gravatar imageberak ( 2017-03-23 13:03:12 -0600 )edit

@picaso, to me this looks as your cmake is not able to find your Qt5 installation. So you should make sure your environment is aware of that.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-03-24 08:11:12 -0600 )edit