Ask Your Question
1

RelWithDebInfo build in linux

asked 2012-12-06 02:38:28 -0600

warfrog gravatar image

updated 2012-12-06 02:40:47 -0600

I am used to build a debug and release version of the OpenCV library in Windows.

By starting to use Linux I learned that there are debug libraries rarely used. The way to go is build with RelWithDebInfo, which is not fully optimized but has the capabilities to get the debuginfo if needed.

The current release of OpenCV (2.4.3) is only offering the configuration types Debug and Release by using cmake.

Why is RelWithDebInfo not usable? Should I go with a Release and a Debug build? Why have the Debug libraries no "d" as Suffix like the windows libraries have?

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
-1

answered 2012-12-06 04:39:30 -0600

Daniil Osokin gravatar image

Hi! You can pass to cmake: -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo to get this coinfiguration.

edit flag offensive delete link more

Comments

This doesn't work anymore in >=2.4.8, it always switches back to only building "Release;Debug".

Elador gravatar imageElador ( 2015-01-22 11:38:06 -0600 )edit

Question Tools

Stats

Asked: 2012-12-06 02:38:28 -0600

Seen: 1,570 times

Last updated: Dec 06 '12