build error with enabled profiling options (Bug #1813)


Added by Dominik Schaudel almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-04-17
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

OpenCV-2.4.0-beta

ENABLE_PROFILING = OFF -> works
ENABLE_PROFILING = ON -> error
'c++: error: -pg and -fomit-frame-pointer are incompatible'

i cant find any known issues with ENABLE_PROFILING option. im going to test
android-ndk-profiler (http://code.google.com/p/android-ndk-profiler/). i need the
symbols and debugging info of opencv to profile native opencv functions.


Associated revisions

Revision 44098b2f
Added by Andrey Kamaev almost 13 years ago

#1813 fixed compiler options with profiling enabled

History

Updated by Andrey Kamaev almost 13 years ago

Thanks for the report!
Problem is fixed in 2.4 branch.

However it is not enough to turn on the ENABLE_PROFILING option for Android. You also need to specify the path to libandprof.a:

cmake -DENABLE_PROFILING=ON -DOPENCV_LINKER_LIBS=/full/path/to/libandprof.a  <other_cmake_arguments>

  • Target version set to 2.4.0
  • Category set to build/install
  • Assignee set to Andrey Kamaev

Updated by Andrey Kamaev almost 13 years ago

  • Status changed from Open to Done

Also available in: Atom PDF