Qt5.4 в Linux
Підписуйтеся на Telegram-канал «DOU #tech», щоб не пропустити нові технічні статті
Всем привет. Я больше работаю в Windows, но понадобилось с Qt в Linux:
Я взял вот эту версию
qt-opensource-linux-x86-5.4.0.run (поставил птичку только на Qt5.4 и Creator)
Поставил в
/home/Qt5 (предлагается по дефолту)
Версия Cmake 2.8.12
и получаю
viktor@virt-mint64 ~/Work/xxx/build $ cmake ..
CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by “Qt5SerialPort”
with any of the following names:
Qt5SerialPortConfig.cmake
qt5serialport-config.cmake
...
viktor@virt-mint64 ~/Work/xxx/build $ cmake .. -DCMAKE_PREFIX_PATH=/home/Qt5
CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by “Qt5SerialPort”
with any of the following names:
Qt5SerialPortConfig.cmake
qt5serialport-config.cmake
Add the installation prefix of “Qt5SerialPort” to CMAKE_PREFIX_PATH or set
“Qt5SerialPort_DIR” to a directory containing one of the above files. If
“Qt5SerialPort” provides a separate development package or SDK, be sure it
has been installed.
...
В Cmake подключаю так:
SET(QT_MODULES Widgets Core SerialPort)
find_package(Qt5 COMPONENTS ${QT_MODULES})
Как подключить и поставить Qt5 правильно в Linux.
35 коментарів
Додати коментар Підписатись на коментаріВідписатись від коментарів