build error with enabled profiling options (Bug #1813)
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
#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