Open sunyuzhe2017 opened 6 years ago
You'll need to dig deeper into /opt/qt59
to find the path to the cmake modules, not the root of qt5. e.g. I have /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
on my system, so probably setting CMAKE_PREFIX_PATH
to /usr/lib/x86_64-linux-gnu/cmake/
or /usr/lib/x86_64-linux-gnu/cmake/Qt5
would work.
I'm sorry for reply you so late,I have tried ,it still doesn't work.I think I need to rebuild qt59 in my computer,or it can not find the qt59's cmake file.Thanks.
Ubuntu 16.04,ros kinetic,I installed qt59 at /opt/qt59 I created a project with 'catkin_create_qt_pkg'command ,then the CMakeLists file is build with QT4,which from "/usr/include/qt4",I change the CMakeLists file to qt5,like follow sentences:
then I find that the Qt modules path changed to "/usr/lib/x86_64-linux-gnu/qt5",still it wasn't from qt59 (/opt/qt59),how could I change the CMakeLists file to make cmake find qt modules from /opt/qt59? I have searched for several days ,tried like change
set(CMAKE_PREFIX_PATH /opt/qt59)
and so on,but all that doesn't work,so I 'm here looking for help from you. I do appreciate if you could give me some advices about how to change the CMakeLists file to make it find Qt modules from the set path "/opt/qt59".