Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Setting CFLAGS and CXXFLAGS for OpenCV 2.4.3

I have been able to, in the past, set the compiler options via the command-line like this:

CXXFLAGS="-O2 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp" CFLAGS="-O2 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp" cmake -DCMAKE_TOOLCHAIN_FILE=~/src/arm-toolchain.cmake ..

However, as of OpenCV 2.4.3 the CMake scripts seem to be actively ignoring/resetting the user specified CFLAGS. Is there a way around this I'm not seeing, or should I file a bug report?

Thanks for the help!