roboticslab-uc3m / installation-guides

Centralized administration of dependency installation guides.
https://robots.uc3m.es/installation-guides/
70 stars 35 forks source link

Problems intalling YARP ubuntu 14.04 (Trusty) #1

Closed RaulFdzbis closed 7 years ago

RaulFdzbis commented 7 years ago

Hi all!

Right now im working in a clean computer with ubuntu 14.04. This means that i have to reinstall all the beautiful repos we have in roboticslab :D.

I open this issue because following the YARP installation guide, i had to solve some issues. Maybe i did something wrong, or maybe the guide needs to be updated.

In addition to the steps in the installation guide. I had to do the following steps:

sudo apt-get install libeigen3-dev
cmake .. -DCREATE_LIB_MATH=ON -DCREATE_GUIS=ON -DCREATE_OPTIONAL_CARRIERS=ON -DENABLE_yarpcar_mjpeg_carrier=ON -DYARP_USE_QT5=OFF -DCREATE_GUIS=OFF # YARP_USE_QT5 can induce errors as of 02/2016
PeterBowman commented 7 years ago

YARP underwent some noticeable changes in its latest releases, one of such is having dropped default GSL linkage in favour of Eigen (see description of commit asrob-uc3m/robotDevastation@0fcd210). Apart from that, carrier option names had their suffix trimmed (e.g. ENABLE_yarpcar_mjpeg_carrier has been replaced by ENABLE_yarpcar_mjpeg).

jgvictores commented 7 years ago

I think it's safe to include: sudo apt-get install libeigen3-dev

Regarding GUIs, the idea is to activate GUIs but deactivate QT5 to force QT4. Could you copy+paste the error log?

PS: Maybe a Ubuntu 14.04 section would be reasonable.

RaulFdzbis commented 7 years ago

Sure!

-- YARP Version: 2.3.68 (2.3.68+139-20170110.8+gita95e7ca) -- Detecting required libraries -- CMake modules directory: /home/raul/repos/yarp/cmake;/home/raul/repos/yarp/cmake/ycm-0.2/find-modules;/home/raul/repos/yarp/cmake/ycm-0.2/modules;/home/raul/repos/yarp/cmake/ycm-0.2/3rdparty;/home/raul/repos/yarp/cmake/ycm-0.2/cmake-next;/home/raul/repos/yarp/cmake/ycm-0.2/cmake-3.1/Modules CMake Warning at cmake/YarpFindDependencies.cmake:95 (message): Qt5 (required to build QCustomPlot) not found. Call Stack (most recent call first): cmake/YarpFindDependencies.cmake:354 (checkbuildandset_dependency) CMakeLists.txt:62 (include)

-- Checking GNUCXX version 3/4 to determine OpenCV /opt/net/ path -- - DBG OPENCV_INCLUDE_DIR_CVCAM=OPENCV_INCLUDE_DIR_CVCAM-NOTFOUND -- - DBG OPENCV_INCLUDE_DIR_CVCAM=OPENCV_INCLUDE_DIR_CVCAM-NOTFOUND -- OPENCV_LIBRARY not found turning off OPENCV_FOUND -- OPENCV_CVAUX_LIBRARY not found turning off OPENCV_FOUND -- OPENCV library or headers not found. Please search manually or set env. variable OPENCV_ROOT to guide search. -- I have found the following libraries: -- --- YCM: not found -- +++ ACE: found (/usr/lib/libACE.so) -- +++ SQLite: compiling (not found) -- +++ Eigen3: found (/usr/include/eigen3) -- --- GSL: disabled -- +++ TinyXML (>= 2.6): compiling (not found) -- +++ xmlrpcpp: compiling (not found) -- --- Qt5: not found -- --- QCustomPlot: not found -- --- Libedit: not found -- --- SWIG: disabled -- --- OpenCV: not found -- --- Lua: not found -- --- LibOVR: not found -- --- GLFW3: not found -- --- GLEW: not found -- --- Libdc1394 (>= 2.0): not found -- +++ JPEG: found (/usr/lib/x86_64-linux-gnu/libjpeg.so) -- +++ MPI: found (/usr/lib/libmpi_cxx.so) -- --- FTDI: not found -- --- CUDA: not found -- --- FFMPEG: not found -- --- wxWidgets: not found -- --- SDL: not found -- --- PortAudio: not found -- --- NVIDIACg: not found -- --- Libusb1: not found -- --- Stage: not found CMake Error at cmake/YarpFindDependencies.cmake:161 (message): Optional package Qt5 not found. Please install it or disable the option "CREATE_GUIS" to build yarp. Call Stack (most recent call first): cmake/YarpFindDependencies.cmake:468 (check_optional_dependency) CMakeLists.txt:62 (include)

-- Configuring incomplete, errors occurred!

jgvictores commented 7 years ago

I'm checking my install on Ubuntu 14.04.03 Trusty and I'm actually using Qt5. In fact, I haven't updated YARP very recently, but I can't even find YARP_USE_QT5. So I'd just go on considering YARP+Qt5 is stable enough. Actions to be taken (in a new branch, for trying it out):

RaulFdzbis commented 7 years ago

Finally get this thing working thanks to @jgvictores.

What i had to do was to install the needed package as explained in the Yarp homepage. This means:

sudo apt-get install qtbase5-dev qtdeclarative5-dev qtmultimedia5-dev \
  qml-module-qtquick2 qml-module-qtquick-window2 \
  qml-module-qtmultimedia qml-module-qtquick-dialogs \
  qml-module-qtquick-controls libqt5svg5

Note: In my case some of the packages were not found.

I also have had installed Qtcreator app from the official web page. However i dont think this had any influence.

jgvictores commented 7 years ago

Everything pretty decent as of e83d03f4a59e88009b0ce40d6c8e373f83c8c579, closing issue!