dji-sdk / Guidance-SDK-ROS

The official ROS package of Guidance SDK for 32/64 bit Ubuntu and XU3
80 stars 87 forks source link

Qt5 dependency issues with Kinetic #46

Open seanavery opened 6 years ago

seanavery commented 6 years ago

The first issue I was running into was that kinetic comes with opencv3 while the sdk requires opencv 2.4.*

What is the recommended ros version to use with this sdk?

I installed opencv 2.4.11 from source and I am not receiving the following error log:

...

[ 37%] Linking CXX executable /opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNode
/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/guidanceNode.dir/build.make:160: recipe for target '/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNode' failed
make[2]: *** [/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNode] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/guidanceNode.dir/all' failed
make[1]: *** [CMakeFiles/guidanceNode.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/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/guidanceNodeCalibration.dir/build.make:160: recipe for target '/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNodeCalibration' failed
make[2]: *** [/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNodeCalibration] Error 1
/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/Makefile2:67: recipe for target 'CMakeFiles/guidanceNodeCalibration.dir/all' failed
make[1]: *** [CMakeFiles/guidanceNodeCalibration.dir/all] Error 2
CMakeFiles/guidanceNodeTest.dir/build.make:134: recipe for target '/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNodeTest' failed
make[2]: *** [/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel/lib/guidance/guidanceNodeTest] Error 1
CMakeFiles/Makefile2:461: recipe for target 'CMakeFiles/guidanceNodeTest.dir/all' failed
make[1]: *** [CMakeFiles/guidanceNodeTest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
jimcha21 commented 6 years ago

Can you add the following command in CMakeLists.txt,

message( FATAL_ERROR ${OpenCV_DIR})

after find_package(OpenCV 2 REQUIRED core highgui) command.

Build again and share here the error log. @SeanAvery

seanavery commented 6 years ago

@jimcha21 Thanks for your response. Here is the new error log with the inserted command:

Base path: /opt/ros/kinetic/share/catkin/dji-guidance-ws
Source space: /opt/ros/kinetic/share/catkin/dji-guidance-ws/src
Build space: /opt/ros/kinetic/share/catkin/dji-guidance-ws/build
Devel space: /opt/ros/kinetic/share/catkin/dji-guidance-ws/devel
Install space: /opt/ros/kinetic/share/catkin/dji-guidance-ws/install
####
#### Running command: "cmake /opt/ros/kinetic/share/catkin/dji-guidance-ws/src -DCATKIN_DEVEL_PREFIX=/opt/ros/kinetic/share/catkin/dji-guidance-ws/devel -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic/share/catkin/dji-guidance-ws/install -G Unix Makefiles" in "/opt/ros/kinetic/share/catkin/dji-guidance-ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /opt/ros/kinetic/share/catkin/dji-guidance-ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /opt/ros/kinetic/share/catkin/dji-guidance-ws/src/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.11
CMake Error at CMakeLists.txt:12 (message):
  $(OpenCV_DIR)

-- Configuring incomplete, errors occurred!
See also "/opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeOutput.log".
See also "/opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
seanavery commented 6 years ago

here is my CMkeError.log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_9ae67/fast"
/usr/bin/make -f CMakeFiles/cmTC_9ae67.dir/build.make CMakeFiles/cmTC_9ae67.dir/build
make[1]: Entering directory '/opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9ae67.dir/CheckSymbolExists.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_9ae67.dir/CheckSymbolExists.c.o   -c /opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_9ae67
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9ae67.dir/link.txt --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_9ae67.dir/CheckSymbolExists.c.o  -o cmTC_9ae67 -rdynamic 
CMakeFiles/cmTC_9ae67.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_9ae67.dir/build.make:97: recipe for target 'cmTC_9ae67' failed
make[1]: *** [cmTC_9ae67] Error 1
make[1]: Leaving directory '/opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_9ae67/fast' failed
make: *** [cmTC_9ae67/fast] Error 2

File /opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_9914c/fast"
/usr/bin/make -f CMakeFiles/cmTC_9914c.dir/build.make CMakeFiles/cmTC_9914c.dir/build
make[1]: Entering directory '/opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_9914c.dir/CheckFunctionExists.c.o
/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_9914c.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_9914c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9914c.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_9914c.dir/CheckFunctionExists.c.o  -o cmTC_9914c -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_9914c.dir/build.make:97: recipe for target 'cmTC_9914c' failed
make[1]: *** [cmTC_9914c] Error 1
make[1]: Leaving directory '/opt/ros/kinetic/share/catkin/dji-guidance-ws/src/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_9914c/fast' failed
make: *** [cmTC_9914c/fast] Error 2
jimcha21 commented 6 years ago

Okey.. remove the message() command and add before the find_package(OpenCV 2 REQUIRED core highgui) command, the following,

set(OpenCV_DIR "/directory/to/opencv/build/")

catkin_make again and let me know your results..

seanavery commented 6 years ago

nice, the set opencv dir command worked.

I am now getting the following error:

-- Generating done
-- Build files have been written to: /opt/ros/kinetic/share/catkin/dji-guidance-ws/src
####
#### Running command: "make -j1 -l1" in "/opt/ros/kinetic/share/catkin/dji-guidance-ws/build"
####
make: *** No targets specified and no makefile found.  Stop.
Invoking "make -j1 -l1" failed
seanavery commented 6 years ago

I think it is just dropping the build files off in the wrong dir /opt/ros/kinetic/share/catkin/dji-guidance-ws/src

my build folder is pretty much empty and no cmake files

ls -la in /opt/ros/kinetic/share/catkin/dji-guidance-ws/src

-rw-rw-r-- 1 sean sean   11 Apr 16 11:02 .built_by
-rw-rw-r-- 1 sean sean  170 Apr 16 11:02 catkin_make.cache
jimcha21 commented 6 years ago

Have you initialized a catkin workspace in the /home/sean/ directory , like /home/sean/catkin_ws/ ?

seanavery commented 6 years ago

Just tried in home/sean/__ but same problem.

You think it is an issue with permissions in build folder?

jimcha21 commented 6 years ago

Yep probably.. You must create a catkin workspace in your home directory ( /home/sean/ ), as follows,

$ mkdir -p ~/catkin_ws/src/ $ cd ~/catkin_ws/ $ catkin_make

and then git clone this repo in ~/catkin_ws/src/ directory and execute cd ~/catkin_ws/ && catkin_make.

seanavery commented 6 years ago

I am getting this error now:

sean@sean:~/dji-guidance-ws$ catkin_make
Base path: /home/sean/dji-guidance-ws
Source space: /home/sean/dji-guidance-ws/src
Build space: /home/sean/dji-guidance-ws/build
Devel space: /home/sean/dji-guidance-ws/devel
Install space: /home/sean/dji-guidance-ws/install
####
#### Running command: "cmake /home/sean/dji-guidance-ws/src -DCATKIN_DEVEL_PREFIX=/home/sean/dji-guidance-ws/devel -DCMAKE_INSTALL_PREFIX=/home/sean/dji-guidance-ws/install -G Unix Makefiles" in "/home/sean/dji-guidance-ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/sean/dji-guidance-ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/sean/dji-guidance-ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.11
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - guidance
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'guidance'
-- ==> add_subdirectory(.)
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkin_workspace.cmake:116 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory "/home/sean/dji-guidance-ws/src" is not a subdirectory of
  "/home/sean/dji-guidance-ws/src".  When specifying an out-of-tree source a
  binary directory must be explicitly specified.
Call Stack (most recent call first):
  CMakeLists.txt:63 (catkin_workspace)

-- Configuring incomplete, errors occurred!
See also "/home/sean/dji-guidance-ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/sean/dji-guidance-ws/build/CMakeFiles/CMakeError.log".
seanavery commented 6 years ago

Confused why it it wants /home/sean/dji-guidance-ws/src to be subdirectory of the source dir path.

I am thinking my Base, Source, Devel, and Install paths look correct.

jimcha21 commented 6 years ago

In which directory have you cloned this repo ? Is it /home/sean/dji-guidance-ws/ or you cloned it in /home/sean/dji-guidance-ws/src/ ?

seanavery commented 6 years ago

I cloned into /home/sean/dji-guidance-ws/src/ .

But if I first catkin_make like above (with an empty /home/sean/dji-guidance-ws/src) before the cloning step --> it creates a CMakeLists.txt in thedji-guidance-ws/src folder. Should I keep this file?

jimcha21 commented 6 years ago

Yes that's correct, don't delete that. The catkin_make works ok before cloning ? no errors ?

seanavery commented 6 years ago

yes no erors before cloning. Then cloning into ~/ws/src and mv CMakeLists.txt back into src. Then catkin_make once again from project root.

Using a similar process with catkin build I am getting the following error on second catkin build.

Errors     << guidance:make /home/sean/dji-guidance-ws/logs/guidance/build.make.000.log
/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]: *** [/home/sean/dji-guidance-ws/devel/.private/guidance/lib/guidance/guidanceNodeCalibration] Error 1
make[1]: *** [CMakeFiles/guidanceNodeCalibration.dir/all] Error 2
make: *** [all] Error 2
cd /home/sean/dji-guidance-w
jimcha21 commented 6 years ago

Oh, so you use catkin build command.. you should have mention that. Unfortunately, I haven't worked with catkin build command on Manifold's system, because catkin_make worked just fine from the first time.

If you use the catkin_make , the following commands should work just fine, to make the guidance node work correctly.

(to create a catkin workspace) $ mkdir -p ~/catkin_ws/src/ $ cd ~/catkin_ws/ $ catkin_make

(to build the node) $ cd ~/catkin_ws/src $ git clone https://github.com/dji-sdk/Guidance-SDK-ROS.git ~/catkin_ws/src/guidance $ cd ../ && catkin_make $ rosrun guidance ...

seanavery commented 6 years ago

I was using catkin_make just tried out catkin build to see.

Ah, I followed your commands exactly but am getting the same error. Do you have any tips for investigating? I ma trying to figure out why it does not recognize those libraries.


-- Generating done
-- Build files have been written to: /home/sean/catkin_ws/build
####
#### Running command: "make -j1 -l1" in "/home/sean/catkin_ws/build"
####
Scanning dependencies of target guidanceNodeCalibration
[ 12%] Building CXX object guidance/CMakeFiles/guidanceNodeCalibration.dir/src/GuidanceNodeCalibration.cpp.o
[ 25%] Building CXX object guidance/CMakeFiles/guidanceNodeCalibration.dir/src/DJI_utility.cpp.o
[ 37%] Linking CXX executable /home/sean/catkin_ws/devel/lib/guidance/guidanceNodeCalibration
/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
guidance/CMakeFiles/guidanceNodeCalibration.dir/build.make:160: recipe for target '/home/sean/catkin_ws/devel/lib/guidance/guidanceNodeCalibration' failed
make[2]: *** [/home/sean/catkin_ws/devel/lib/guidance/guidanceNodeCalibration] Error 1
CMakeFiles/Makefile2:441: recipe for target 'guidance/CMakeFiles/guidanceNodeCalibration.dir/all' failed
make[1]: *** [guidance/CMakeFiles/guidanceNodeCalibration.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed
jimcha21 commented 6 years ago

Okey.. execute $ sudo find / -name "*qt5*" , and post here the log..

seanavery commented 6 years ago
/usr/include/x86_64-linux-gnu/qt5
/usr/lib/x86_64-linux-gnu/libsignon-qt5.so.1.0.0
/usr/lib/x86_64-linux-gnu/libaccounts-qt5.so.1
/usr/lib/x86_64-linux-gnu/libdbusmenu-qt5.so.2
/usr/lib/x86_64-linux-gnu/libsignon-qt5.so.1.0
/usr/lib/x86_64-linux-gnu/libaccounts-qt5.so.1.2.0
/usr/lib/x86_64-linux-gnu/qtchooser/qt5.conf
/usr/lib/x86_64-linux-gnu/qt5
/usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/libappmenu-qt5.so
/usr/lib/x86_64-linux-gnu/libaccounts-qt5.so.1.2
/usr/lib/x86_64-linux-gnu/libsignon-qt5.so.1
/usr/lib/x86_64-linux-gnu/libdbusmenu-qt5.so.2.6.0
/usr/lib/python2.7/dist-packages/matplotlib/tests/test_backend_qt5.pyc
/usr/lib/python2.7/dist-packages/matplotlib/tests/test_backend_qt5.py
/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py
/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py
/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.pyc
/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.pyc
/usr/share/app-install/desktop/libu1db-qt5-examples:u1db-qt-gallery.desktop
/usr/share/qtchooser/qt5-x86_64-linux-gnu.conf
/usr/share/man/man1/moc-qt5.1.gz
/usr/share/man/man1/qmake-qt5.1.gz
/usr/share/qt5
/usr/share/boost-build/src/tools/qt5.jam
/usr/share/lintian/overrides/libqt5concurrent5
/usr/share/lintian/overrides/libqt5network5
/usr/share/lintian/overrides/libqt5dbus5
/usr/share/lintian/overrides/libqt5quicktest5
/usr/share/lintian/overrides/libqt5quick5
/usr/share/lintian/overrides/libqt5core5a
/usr/share/lintian/overrides/libqt5test5
/usr/share/lintian/overrides/libqt5script5
/usr/share/lintian/overrides/libqt5quickparticles5
/usr/share/lintian/overrides/libqt5printsupport5
/usr/share/lintian/overrides/libqt5opengl5
/usr/share/lintian/overrides/libqt5scripttools5
/usr/share/lintian/overrides/libqt5sql5
/usr/share/lintian/overrides/libqt5gui5
/usr/share/lintian/overrides/libqt5xml5
/usr/share/lintian/overrides/libqt5quickwidgets5
/usr/share/lintian/overrides/libqt5widgets5
/usr/share/doc/libqt5concurrent5
/usr/share/doc/libqt5webkit5
/usr/share/doc/libqt5designer5
/usr/share/doc/libqt5network5
/usr/share/doc/qt5-qmake
/usr/share/doc/libqt5sql5-sqlite
/usr/share/doc/libqt5dbus5
/usr/share/doc/python-pyqt5.qtwebkit
/usr/share/doc/libqt5svg5-dev
/usr/share/doc/libqt5multimediaquick-p5
/usr/share/doc/libqt5quicktest5
/usr/share/doc/libqt5designercomponents5
/usr/share/doc/libqt5feedback5
/usr/share/doc/libqt5quick5
/usr/share/doc/python-pyqt5.qtsvg
/usr/share/doc/python-pyqt5.qtopengl
/usr/share/doc/libqt5core5a
/usr/share/doc/libqt5test5
/usr/share/doc/libqt5script5
/usr/share/doc/appmenu-qt5
/usr/share/doc/libqt5xmlpatterns5-private-dev
/usr/share/doc/libqt5multimedia5
/usr/share/doc/libqt5quickparticles5
/usr/share/doc/libqt5printsupport5
/usr/share/doc/libqt5x11extras5-dev
/usr/share/doc/libqt5webkit5-dev
/usr/share/doc/libqt5clucene5
/usr/share/doc/libqt5opengl5
/usr/share/doc/libqt5help5
/usr/share/doc/libqt5x11extras5
/usr/share/doc/pyqt5-dev
/usr/share/doc/libqt5qml5
/usr/share/doc/libqt5scripttools5
/usr/share/doc/libqt5organizer5
/usr/share/doc/libqt5xmlpatterns5
/usr/share/doc/libqt5svg5
/usr/share/doc/python-pyqt5
/usr/share/doc/libaccounts-qt5-1
/usr/share/doc/libqt5sql5
/usr/share/doc/libqt5xmlpatterns5-dev
/usr/share/doc/libqt5positioning5
/usr/share/doc/libsignon-qt5-1
/usr/share/doc/libqt5gui5
/usr/share/doc/libqt5xml5
/usr/share/doc/libqt5quickwidgets5
/usr/share/doc/libqt5widgets5
/usr/share/doc/libqt5opengl5-dev
/usr/share/doc/libdbusmenu-qt5
/usr/share/doc/libqt5multimediawidgets5
/etc/profile.d/appmenu-qt5.sh
/var/lib/dpkg/info/libqt5webkit5-dev:amd64.list
/var/lib/dpkg/info/libqt5widgets5:amd64.shlibs
/var/lib/dpkg/info/libqt5core5a:amd64.md5sums
/var/lib/dpkg/info/libqt5core5a:amd64.list
/var/lib/dpkg/info/libaccounts-qt5-1:amd64.list
/var/lib/dpkg/info/libqt5xml5:amd64.list
/var/lib/dpkg/info/libqt5positioning5:amd64.triggers
/var/lib/dpkg/info/qt5-qmake:amd64.list
/var/lib/dpkg/info/libqt5printsupport5:amd64.symbols
/var/lib/dpkg/info/libqt5multimediawidgets5:amd64.md5sums
/var/lib/dpkg/info/libqt5multimedia5:amd64.md5sums
/var/lib/dpkg/info/libqt5quickparticles5:amd64.symbols
/var/lib/dpkg/info/appmenu-qt5.list
/var/lib/dpkg/info/libqt5widgets5:amd64.list
/var/lib/dpkg/info/libqt5quickwidgets5:amd64.shlibs
/var/lib/dpkg/info/libqt5quick5:amd64.triggers
/var/lib/dpkg/info/libqt5clucene5:amd64.list
/var/lib/dpkg/info/libqt5quickparticles5:amd64.triggers
/var/lib/dpkg/info/libqt5widgets5:amd64.triggers
/var/lib/dpkg/info/libqt5concurrent5:amd64.list
/var/lib/dpkg/info/python-pyqt5.qtopengl.md5sums
/var/lib/dpkg/info/libqt5svg5-dev:amd64.list
/var/lib/dpkg/info/libqt5webkit5:amd64.symbols
/var/lib/dpkg/info/libqt5positioning5:amd64.md5sums
/var/lib/dpkg/info/libqt5network5:amd64.triggers
/var/lib/dpkg/info/libqt5xml5:amd64.triggers
/var/lib/dpkg/info/libqt5help5:amd64.md5sums
/var/lib/dpkg/info/pyqt5-dev.list
/var/lib/dpkg/info/libqt5scripttools5:amd64.md5sums
/var/lib/dpkg/info/libqt5quicktest5:amd64.symbols
/var/lib/dpkg/info/libqt5x11extras5:amd64.shlibs
/var/lib/dpkg/info/libqt5multimediawidgets5:amd64.list
/var/lib/dpkg/info/appmenu-qt5.conffiles
/var/lib/dpkg/info/libqt5organizer5:amd64.md5sums
/var/lib/dpkg/info/libqt5concurrent5:amd64.triggers
/var/lib/dpkg/info/libqt5gui5:amd64.list
/var/lib/dpkg/info/libqt5test5:amd64.list
/var/lib/dpkg/info/libqt5designercomponents5:amd64.list
/var/lib/dpkg/info/libqt5printsupport5:amd64.list
/var/lib/dpkg/info/libqt5concurrent5:amd64.symbols
/var/lib/dpkg/info/libqt5x11extras5:amd64.symbols
/var/lib/dpkg/info/libqt5feedback5:amd64.list
/var/lib/dpkg/info/libqt5script5:amd64.symbols
/var/lib/dpkg/info/libqt5designer5:amd64.md5sums
/var/lib/dpkg/info/libqt5xmlpatterns5-dev:amd64.list
/var/lib/dpkg/info/libqt5feedback5:amd64.shlibs
/var/lib/dpkg/info/libqt5quick5:amd64.list
/var/lib/dpkg/info/libdbusmenu-qt5:amd64.shlibs
/var/lib/dpkg/info/libqt5clucene5:amd64.md5sums
/var/lib/dpkg/info/libqt5xmlpatterns5:amd64.triggers
/var/lib/dpkg/info/libqt5qml5:amd64.symbols
/var/lib/dpkg/info/libqt5designer5:amd64.shlibs
/var/lib/dpkg/info/libqt5scripttools5:amd64.list
/var/lib/dpkg/info/libqt5quickwidgets5:amd64.md5sums
/var/lib/dpkg/info/python-pyqt5.qtsvg.md5sums
/var/lib/dpkg/info/libqt5gui5:amd64.triggers
/var/lib/dpkg/info/libqt5xmlpatterns5:amd64.list
/var/lib/dpkg/info/libqt5network5:amd64.symbols
/var/lib/dpkg/info/libqt5scripttools5:amd64.shlibs
/var/lib/dpkg/info/libqt5multimediaquick-p5:amd64.symbols
/var/lib/dpkg/info/libqt5dbus5:amd64.triggers
/var/lib/dpkg/info/libqt5quicktest5:amd64.triggers
/var/lib/dpkg/info/python-pyqt5.prerm
/var/lib/dpkg/info/libqt5qml5:amd64.shlibs
/var/lib/dpkg/info/libqt5widgets5:amd64.symbols
/var/lib/dpkg/info/libsignon-qt5-1:amd64.triggers
/var/lib/dpkg/info/libqt5test5:amd64.triggers
/var/lib/dpkg/info/python-pyqt5.list
/var/lib/dpkg/info/libqt5dbus5:amd64.list
/var/lib/dpkg/info/libqt5quickwidgets5:amd64.triggers
/var/lib/dpkg/info/libqt5dbus5:amd64.symbols
/var/lib/dpkg/info/libsignon-qt5-1:amd64.md5sums
/var/lib/dpkg/info/libqt5network5:amd64.md5sums
/var/lib/dpkg/info/libaccounts-qt5-1:amd64.triggers
/var/lib/dpkg/info/libqt5printsupport5:amd64.shlibs
/var/lib/dpkg/info/libqt5gui5:amd64.md5sums
/var/lib/dpkg/info/libqt5xmlpatterns5-private-dev:amd64.md5sums
/var/lib/dpkg/info/libqt5xmlpatterns5:amd64.shlibs
/var/lib/dpkg/info/libqt5webkit5:amd64.triggers
/var/lib/dpkg/info/libqt5quick5:amd64.symbols
/var/lib/dpkg/info/libqt5sql5:amd64.symbols
/var/lib/dpkg/info/libqt5designer5:amd64.list
/var/lib/dpkg/info/libaccounts-qt5-1:amd64.shlibs
/var/lib/dpkg/info/python-pyqt5.qtwebkit.md5sums
/var/lib/dpkg/info/libsignon-qt5-1:amd64.shlibs
/var/lib/dpkg/info/libqt5designer5:amd64.symbols
/var/lib/dpkg/info/libqt5quickparticles5:amd64.shlibs
/var/lib/dpkg/info/libqt5svg5:amd64.shlibs
/var/lib/dpkg/info/libqt5test5:amd64.shlibs
/var/lib/dpkg/info/libqt5network5:amd64.shlibs
/var/lib/dpkg/info/libqt5scripttools5:amd64.symbols
/var/lib/dpkg/info/libqt5multimedia5:amd64.list
/var/lib/dpkg/info/libdbusmenu-qt5:amd64.list
/var/lib/dpkg/info/libqt5opengl5-dev:amd64.md5sums
/var/lib/dpkg/info/libaccounts-qt5-1:amd64.md5sums
/var/lib/dpkg/info/libqt5gui5:amd64.shlibs
/var/lib/dpkg/info/libqt5opengl5-dev:amd64.list
/var/lib/dpkg/info/libdbusmenu-qt5:amd64.md5sums
/var/lib/dpkg/info/libqt5svg5-dev:amd64.md5sums
/var/lib/dpkg/info/libqt5quicktest5:amd64.shlibs
/var/lib/dpkg/info/libqt5opengl5:amd64.shlibs
/var/lib/dpkg/info/libqt5webkit5:amd64.list
/var/lib/dpkg/info/libqt5qml5:amd64.triggers
/var/lib/dpkg/info/libqt5multimediawidgets5:amd64.symbols
/var/lib/dpkg/info/libqt5test5:amd64.md5sums
/var/lib/dpkg/info/libqt5sql5:amd64.shlibs
/var/lib/dpkg/info/libqt5webkit5-dev:amd64.md5sums
/var/lib/dpkg/info/libdbusmenu-qt5:amd64.triggers
/var/lib/dpkg/info/pyqt5-dev.md5sums
/var/lib/dpkg/info/libqt5help5:amd64.list
/var/lib/dpkg/info/libsignon-qt5-1:amd64.list
/var/lib/dpkg/info/libqt5multimediaquick-p5:amd64.list
/var/lib/dpkg/info/libqt5opengl5:amd64.symbols
/var/lib/dpkg/info/libqt5clucene5:amd64.shlibs
/var/lib/dpkg/info/libqt5quickparticles5:amd64.md5sums
/var/lib/dpkg/info/libqt5positioning5:amd64.symbols
/var/lib/dpkg/info/python-pyqt5.md5sums
/var/lib/dpkg/info/libqt5sql5:amd64.md5sums
/var/lib/dpkg/info/libqt5quick5:amd64.md5sums
/var/lib/dpkg/info/libqt5organizer5:amd64.shlibs
/var/lib/dpkg/info/libqt5positioning5:amd64.shlibs
/var/lib/dpkg/info/libqt5designercomponents5:amd64.symbols
/var/lib/dpkg/info/libqt5webkit5:amd64.md5sums
/var/lib/dpkg/info/libqt5xmlpatterns5:amd64.symbols
/var/lib/dpkg/info/libqt5quicktest5:amd64.md5sums
/var/lib/dpkg/info/libqt5network5:amd64.list
/var/lib/dpkg/info/libqt5multimediawidgets5:amd64.triggers
/var/lib/dpkg/info/libqt5core5a:amd64.triggers
/var/lib/dpkg/info/libqt5gui5:amd64.symbols
/var/lib/dpkg/info/python-pyqt5.qtsvg.list
/var/lib/dpkg/info/libqt5xmlpatterns5-dev:amd64.md5sums
/var/lib/dpkg/info/libqt5multimedia5:amd64.triggers
/var/lib/dpkg/info/python-pyqt5.qtwebkit.list
/var/lib/dpkg/info/libqt5x11extras5:amd64.triggers
/var/lib/dpkg/info/libqt5multimediaquick-p5:amd64.md5sums
/var/lib/dpkg/info/libqt5dbus5:amd64.md5sums
/var/lib/dpkg/info/libqt5sql5:amd64.list
/var/lib/dpkg/info/libqt5multimedia5:amd64.symbols
/var/lib/dpkg/info/libqt5widgets5:amd64.md5sums
/var/lib/dpkg/info/libqt5multimedia5:amd64.shlibs
/var/lib/dpkg/info/libqt5help5:amd64.triggers
/var/lib/dpkg/info/libqt5xmlpatterns5:amd64.md5sums
/var/lib/dpkg/info/libqt5designercomponents5:amd64.md5sums
/var/lib/dpkg/info/libqt5script5:amd64.triggers
/var/lib/dpkg/info/libqt5organizer5:amd64.list
/var/lib/dpkg/info/python-pyqt5.qtopengl.list
/var/lib/dpkg/info/libqt5opengl5:amd64.md5sums
/var/lib/dpkg/info/libqt5quick5:amd64.shlibs
/var/lib/dpkg/info/libqt5concurrent5:amd64.md5sums
/var/lib/dpkg/info/libqt5sql5-sqlite:amd64.list
/var/lib/dpkg/info/libqt5xmlpatterns5-private-dev:amd64.list
/var/lib/dpkg/info/libqt5positioning5:amd64.list
/var/lib/dpkg/info/libqt5multimediawidgets5:amd64.shlibs
/var/lib/dpkg/info/libqt5feedback5:amd64.md5sums
/var/lib/dpkg/info/libqt5core5a:amd64.shlibs
/var/lib/dpkg/info/libqt5dbus5:amd64.shlibs
/var/lib/dpkg/info/libqt5svg5:amd64.symbols
/var/lib/dpkg/info/libqt5script5:amd64.shlibs
/var/lib/dpkg/info/libqt5help5:amd64.symbols
/var/lib/dpkg/info/libqt5x11extras5-dev:amd64.list
/var/lib/dpkg/info/qt5-qmake:amd64.md5sums
/var/lib/dpkg/info/libqt5x11extras5-dev:amd64.md5sums
/var/lib/dpkg/info/libqt5script5:amd64.list
/var/lib/dpkg/info/libqt5multimediaquick-p5:amd64.triggers
/var/lib/dpkg/info/libqt5xml5:amd64.symbols
/var/lib/dpkg/info/libqt5qml5:amd64.list
/var/lib/dpkg/info/libqt5svg5:amd64.list
/var/lib/dpkg/info/libqt5quicktest5:amd64.list
/var/lib/dpkg/info/libqt5x11extras5:amd64.list
/var/lib/dpkg/info/libqt5clucene5:amd64.symbols
/var/lib/dpkg/info/appmenu-qt5.md5sums
/var/lib/dpkg/info/libqt5concurrent5:amd64.shlibs
/var/lib/dpkg/info/libqt5svg5:amd64.md5sums
/var/lib/dpkg/info/libqt5script5:amd64.md5sums
/var/lib/dpkg/info/libqt5test5:amd64.symbols
/var/lib/dpkg/info/libqt5svg5:amd64.triggers
/var/lib/dpkg/info/libqt5opengl5:amd64.triggers
/var/lib/dpkg/info/libqt5qml5:amd64.md5sums
/var/lib/dpkg/info/libqt5xml5:amd64.md5sums
/var/lib/dpkg/info/libqt5designercomponents5:amd64.shlibs
/var/lib/dpkg/info/libqt5printsupport5:amd64.md5sums
/var/lib/dpkg/info/libqt5xml5:amd64.shlibs
/var/lib/dpkg/info/libqt5quickwidgets5:amd64.list
/var/lib/dpkg/info/libqt5designercomponents5:amd64.triggers
/var/lib/dpkg/info/libqt5printsupport5:amd64.triggers
/var/lib/dpkg/info/libqt5multimediaquick-p5:amd64.shlibs
/var/lib/dpkg/info/libqt5sql5:amd64.triggers
/var/lib/dpkg/info/libqt5organizer5:amd64.triggers
/var/lib/dpkg/info/libqt5clucene5:amd64.triggers
/var/lib/dpkg/info/libqt5x11extras5:amd64.md5sums
/var/lib/dpkg/info/libqt5quickwidgets5:amd64.symbols
/var/lib/dpkg/info/libqt5webkit5:amd64.shlibs
/var/lib/dpkg/info/python-pyqt5.postinst
/var/lib/dpkg/info/libqt5core5a:amd64.symbols
/var/lib/dpkg/info/libqt5designer5:amd64.triggers
/var/lib/dpkg/info/libqt5scripttools5:amd64.triggers
/var/lib/dpkg/info/libqt5help5:amd64.shlibs
/var/lib/dpkg/info/libqt5opengl5:amd64.list
/var/lib/dpkg/info/libqt5sql5-sqlite:amd64.md5sums
/var/lib/dpkg/info/libqt5quickparticles5:amd64.list
/var/lib/dpkg/info/libqt5feedback5:amd64.triggers
/var/cache/apt/archives/libqt5xmlpatterns5-private-dev_5.5.1-2build1_amd64.deb
/var/cache/apt/archives/libqt5designer5_5.5.1-3ubuntu0.1_amd64.deb
/var/cache/apt/archives/libqt5help5_5.5.1-3ubuntu0.1_amd64.deb
/var/cache/apt/archives/libqt5scripttools5_5.5.1+dfsg-2build1_amd64.deb
/var/cache/apt/archives/libqt5xmlpatterns5_5.5.1-2build1_amd64.deb
/var/cache/apt/archives/libqt5designercomponents5_5.5.1-3ubuntu0.1_amd64.deb
/var/cache/apt/archives/python-pyqt5.qtwebkit_5.5.1+dfsg-3ubuntu4_amd64.deb
/var/cache/apt/archives/libqt5concurrent5_5.5.1+dfsg-16ubuntu7.5_amd64.deb
/var/cache/apt/archives/libqt5quickwidgets5_5.5.1-2ubuntu6_amd64.deb
/var/cache/apt/archives/libqt5multimediawidgets5_5.5.1-4ubuntu2_amd64.deb
/var/cache/apt/archives/libqt5xmlpatterns5-dev_5.5.1-2build1_amd64.deb
/var/cache/apt/archives/python-pyqt5.qtopengl_5.5.1+dfsg-3ubuntu4_amd64.deb
/var/cache/apt/archives/libqt5x11extras5_5.5.1-3build1_amd64.deb
/var/cache/apt/archives/python-pyqt5_5.5.1+dfsg-3ubuntu4_amd64.deb
/var/cache/apt/archives/pyqt5-dev_5.5.1+dfsg-3ubuntu4_all.deb
/var/cache/apt/archives/libqt5script5_5.5.1+dfsg-2build1_amd64.deb
/var/cache/apt/archives/libqt5multimediaquick-p5_5.5.1-4ubuntu2_amd64.deb
/var/cache/apt/archives/libqt5clucene5_5.5.1-3ubuntu0.1_amd64.deb
/var/cache/apt/archives/qt5-qmake_5.5.1+dfsg-16ubuntu7.5_amd64.deb
/var/cache/apt/archives/libqt5quickparticles5_5.5.1-2ubuntu6_amd64.deb
/var/cache/apt/archives/libqt5opengl5-dev_5.5.1+dfsg-16ubuntu7.5_amd64.deb
/var/cache/apt/archives/libqt5svg5-dev_5.5.1-2build1_amd64.deb
/var/cache/apt/archives/libqt5webkit5-dev_5.5.1+dfsg-2ubuntu1_amd64.deb
/var/cache/apt/archives/libqt5x11extras5-dev_5.5.1-3build1_amd64.deb
/var/cache/apt/archives/python-pyqt5.qtsvg_5.5.1+dfsg-3ubuntu4_amd64.deb
seanavery commented 6 years ago

I wrote a test cpp script that uses QT5 modules and it works just fine, however within a catkin workspace the cmakelist ist not able to find the qt5 libraries.~

I also do not see where in the generated CMakeLists.txt file references the qt5 modules. If I add find_package(QT5Core REQUIRED) to the file I get the following error.

CMake Error at guidance/CMakeLists.txt:12 (find_package):
  By not providing "FindQT5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "QT5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "QT5Core" with any
  of the following names:

    QT5CoreConfig.cmake
    qt5core-config.cmake

  Add the installation prefix of "QT5Core" to CMAKE_PREFIX_PATH or set
  "QT5Core_DIR" to a directory containing one of the above files.  If
  "QT5Core" provides a separate development package or SDK, be sure it has
  been installed.

I am actually able to find_package(QT5 COMPONENTS QTCore QTGui) just fine, but still getting cannot find warnings when linking the callibration executable

jimcha21 commented 6 years ago

Okey, it seems that there is a broken link with Qt5. Just one more command, do $ /sbin/ldconfig -p | grep Qt5 . Maybe you need to remake the linker with Qt5 core.

seanavery commented 6 years ago

hey @jimcha21, apologize for delayed response. Here is the output from /sbin/ldconfig -p | grep Qt5

libQt5X11Extras.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5X11Extras.so.5
    libQt5X11Extras.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5X11Extras.so
    libQt5XmlPatterns.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5XmlPatterns.so.5
    libQt5XmlPatterns.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5XmlPatterns.so
    libQt5Xml.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5
    libQt5Xml.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Xml.so
    libQt5XcbQpa.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
    libQt5XcbQpa.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so
    libQt5Widgets.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
    libQt5Widgets.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so
    libQt5WebKitWidgets.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so.5
    libQt5WebKitWidgets.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5WebKitWidgets.so
    libQt5WebKit.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
    libQt5WebKit.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5WebKit.so
    libQt5Test.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Test.so.5
    libQt5Test.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Test.so
    libQt5Svg.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5
    libQt5Svg.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Svg.so
    libQt5Sql.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Sql.so.5
    libQt5Sql.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Sql.so
    libQt5ScriptTools.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5ScriptTools.so.5
    libQt5ScriptTools.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5ScriptTools.so
    libQt5Script.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
    libQt5Script.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Script.so
    libQt5QuickWidgets.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
    libQt5QuickWidgets.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so
    libQt5QuickTest.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QuickTest.so.5
    libQt5QuickTest.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QuickTest.so
    libQt5QuickParticles.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QuickParticles.so.5
    libQt5QuickParticles.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5QuickParticles.so
    libQt5Quick.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
    libQt5Quick.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Quick.so
    libQt5Qml.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
    libQt5Qml.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Qml.so
    libQt5PrintSupport.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5
    libQt5PrintSupport.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so
    libQt5Positioning.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Positioning.so.5
    libQt5Organizer.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Organizer.so.5
    libQt5OpenGL.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5
    libQt5OpenGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so
    libQt5Network.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5
    libQt5Network.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Network.so
    libQt5MultimediaWidgets.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5MultimediaWidgets.so.5
    libQt5MultimediaWidgets.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5MultimediaWidgets.so
    libQt5MultimediaQuick_p.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5MultimediaQuick_p.so.5
    libQt5MultimediaQuick_p.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5MultimediaQuick_p.so
    libQt5Multimedia.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5
    libQt5Multimedia.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so
    libQt5Help.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Help.so.5
    libQt5Help.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Help.so
    libQt5Gui.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
    libQt5Gui.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Gui.so
    libQt5Feedback.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Feedback.so.5
    libQt5EglDeviceIntegration.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5EglDeviceIntegration.so.5
    libQt5EglDeviceIntegration.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5EglDeviceIntegration.so
    libQt5DesignerComponents.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5DesignerComponents.so.5
    libQt5DesignerComponents.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5DesignerComponents.so
    libQt5Designer.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Designer.so.5
    libQt5Designer.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Designer.so
    libQt5DBus.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
    libQt5DBus.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5DBus.so
    libQt5Core.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    libQt5Core.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Core.so
    libQt5Concurrent.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so.5
    libQt5Concurrent.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5Concurrent.so
    libQt5CLucene.so.5 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5CLucene.so.5
    libQt5CLucene.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQt5CLucene.so
seanavery commented 6 years ago

I was able to get past qt5 issues by adding find_package for those libraries explicitly in CMakeLists.txt. However, I am now running into this error:

[ 37%] Linking CXX executable /home/sean/dji-guidance-ws/devel/lib/guidance/guidanceNodeCalibration
CMakeFiles/guidanceNodeCalibration.dir/src/GuidanceNodeCalibration.cpp.o: In function `my_callback(int, int, char*)':
GuidanceNodeCalibration.cpp:(.text+0xa19): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
GuidanceNodeCalibration.cpp:(.text+0xc3b): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
GuidanceNodeCalibration.cpp:(.text+0xeb1): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/guidanceNodeCalibration.dir/build.make:166: recipe for target '/home/sean/dji-guidance-ws/devel/lib/guidance/guidanceNodeCalibration' failed
make[2]: *** [/home/sean/dji-guidance-ws/devel/lib/guidance/guidanceNodeCalibration] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/guidanceNodeCalibration.dir/all' failed
make[1]: *** [CMakeFiles/guidanceNodeCalibration.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j1 -l1" failed
jimcha21 commented 6 years ago

hello @SeanAvery, Add the command message(FATAL_ERROR ${OpenCV_VERSION}) after find_package(OpenCV 2 ...) command and write here your output. I just want to check if OpenCV libs are loaded correctly.

seanavery commented 6 years ago

successfully returns the opencv version: 2.4.11

jimcha21 commented 6 years ago

Okey, that's correct.. Have you made any other addition in CMakeLists.txt or src/GuidanceNodeCalibration.cpp files ?

pifordi commented 6 years ago

I have a same problem. When a type catkin_make in catkin_ws directory, getting errors of such as "undefined reference to cv:imshow". In CmakeList.txt file opencv packages has been included as "/home/dji/opencv_build/lib" I have noı dji file on my home path.

smartexagro commented 5 years ago

Same Problem here

mildwinter commented 5 years ago

This may be a problem with opencv, because I also received this error in other projects(darknet_ros) and solved it by reinstalling opencv. You can reinstall an opencv without uninstalling the original opencv of the system. The opencv‘s version is not important. The important thing is that the installation paths of the two opencv are not the same. Then, according to the opencv multiple version management tutorial, the configuration is done after installation. Add in bashrc:

export PKG_CONFIG_PATH=/usr/local/opencv2/lib/pkgconfig export LD_LIBRARY_PATH=/usr/local/opencv2/lib

you should change above path to your installed path of opencv,and add this to your project cmakelist.txt

cmake_minimum_required(VERSION 2.8)
set(OpenCV_DIR /home/chen/Downloads/opencv-3.2.0/build) project(darknet_ros) find_package(OpenCV REQUIRED)