Closed huckl3b3rry87 closed 6 years ago
Please add qt5core to the required packages.
@amc-nu I added
cmake_minimum_required(VERSION 2.8.12)
project(multi_lidar_calibrator)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
sensor_msgs
geometry_msgs
pcl_ros
pcl_conversions
qt5core
)
But it still has errors
Parallel;vtkRenderingFreeTypeFontConfig;vtkIOFFMPEG;vtkIOMPIImage;vtkIOGDAL (Required is at least version "1.7")
-- +++ processing catkin package: 'kitti_launch'
-- ==> add_subdirectory(util/packages/kitti_pkg/kitti_launch)
-- +++ processing catkin package: 'multi_lidar_calibrator'
-- ==> add_subdirectory(sensing/fusion/packages/multi_lidar_calibrator)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
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.
Call Stack (most recent call first):
sensing/fusion/packages/multi_lidar_calibrator/CMakeLists.txt:4 (find_package)
-- Could not find the required component 'qt5core'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
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.
Call Stack (most recent call first):
sensing/fusion/packages/multi_lidar_calibrator/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/febbo/Documents/workspace/Autoware/ros/build/CMakeFiles/CMakeOutput.log".
See also "/home/febbo/Documents/workspace/Autoware/ros/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
Also, these are some missing dependancies
sudo apt install ros-kinetic-jsk-recognition-msgs
sudo apt install ros-kinetic-grid-map-ros
sudo apt install ros-kinetic-jsk-rviz-plugins
Yes, those must be already in the README for the develop branch.
I am assuming that I need to be building with qt5 not
$ qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu
@kitsukawa can you please fix your multi lidar calibration package so that it automatically finds the correct version of qt
@huckl3b3rry87 I created this package. But I think this package is not the problem. What’s your Ubuntu version?
Found the problem I’ll push a fix.
@huckl3b3rry87 can you please test autowarefoundation/autoware#1149 and check if your error is fixed?
@amc-nu I was able to reproduce the error in the opening post, but instead of autowarefoundation/autoware#1149, I find that it is sufficient to
diff --git a/ros/src/sensing/fusion/packages/autoware_camera_lidar_calibrator/CMakeLists.txt b/ros/src/sensing/fusion/packages/autoware_camera_lidar_calibrator/CMakeLists.txt
index 5acebbf2..5ad9a5d5 100644
--- a/ros/src/sensing/fusion/packages/autoware_camera_lidar_calibrator/CMakeLists.txt
+++ b/ros/src/sensing/fusion/packages/autoware_camera_lidar_calibrator/CMakeLists.txt
@@ -17,6 +17,7 @@ find_package(catkin REQUIRED COMPONENTS
find_package(OpenCV REQUIRED)
find_package(PCL)
+find_package(Qt5Core REQUIRED)
catkin_package(CATKIN_DEPENDS
cv_bridge
so, same as your changeset at https://github.com/CPFL/Autoware/pull/1149/commits/907e3a5562e1715e4d6712e5dfde317ad19f1ef4 except no need to add ${Qt5Core_LIBRARIES}
line in target_link_libraries()
@huckl3b3rry87 can you check if this PR and the solution proposed by @slivingston fixes your compilation error. I haven't been able to reproduce this error in any of my setups.
@slivingston thanks for testing.
fixed in autowarefoundation/autoware#1149
Related issues
https://github.com/CPFL/Autoware/issues?utf8=%E2%9C%93&q=orb_matching_pf
https://github.com/CPFL/Autoware/issues/862
Build error, 1
Using the develop branch I get this issue, due to a missing dependancy
It seems that this pull request may have caused this.
Build, 2
It is complaining that I do not have Qt5Core even though I made sure that the following programs were installed in the main README.md with
I also checked
then I installed
Then, to make sure that
Cmake
does not report the same error even though I just installed the packages, I deleted the build folder and rebuilt only to get a build error much earlier:Build, 3
As per this issue after running
The orb_localizer package builds with no problem.