ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

binarydeb with CGAL

asked 2015-01-14 02:12:20 -0500

galou gravatar image

I have a problem building a package using the CGAL libray on the buildfram.

The prerelease test is sucessful on both my local computer and Jenkins but I get the following error when trying to build the binary deb:

CMake Error at> /usr/lib/CGAL/CGAL_SetupFlags.cmake:65

(message): RelWithDebInfo is not a valid build type: only Release or Debug is allowed

The inclusion of CGAL in my CMakeLists.txt looks like this:

find_package(CGAL REQUIRED COMPONENTS Core)

set(CGAL_DONT_OVERRIDE_CMAKE_FLAGS TRUE CACHE BOOL "Don't override flags")

include(${CGAL_USE_FILE})

The package name is crossing_detector. Its source is in https://github.com/lama-imr/lama_util... .

How can I deal with this problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-01-14 02:44:41 -0500

ahendrix gravatar image

You should be able to reproduce this locally by using:

catkin_make -DCMAKE_BUILD_TYPE=RelWithDebInfo

Once you can do that, you can work out a solution locally before you release a new version to the farm.

My only thought about actually fixing this is to try setting the CGAL_DONT_OVERRIDE_BUILD_FLAGS variable _before_ you call find_package(CGAL).

edit flag offensive delete link more

Comments

Thanks for the answer, unfortunately setting CGAL_DONT_OVERRIDE_BUILD_FLAGS before find_package didn't help. What I did is a workaround: set(CMAKE_BUILD_TYPE "Release") before and set(CMAKE_BUILD_TYPE "RelWithDebInfo") after. I don't like to play with the build type in CMakeLists.txt.

galou gravatar image galou  ( 2015-01-14 03:08:50 -0500 )edit

I agree that setting the build type in your CMakeLists is not a good solution. You may want to consult the CGAL documentation or contact the CGAL developers, since it's their build files which are rejecting a standard CMake build type.

ahendrix gravatar image ahendrix  ( 2015-01-14 03:34:02 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-14 02:12:20 -0500

Seen: 468 times

Last updated: Jan 14 '15