Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Undeclared identifier '_SC_NPROCESSORS_ONLN'

Hello,

I'm trying to build opencv with the additional modules but I'm getting an error when I run 'make'. I'm in a freenas jail.

the error I'm getting is; /usr/local/lib/opencv/opencv/modules/core/src/parallel.cpp:948:60 error: use of undeclared identifier '_SC_NPROCESSORS_ONLN' static unsigned cpu_count_sysconf = (unsigned)sysconf( _SC_NPROCESSO...

Anyone seen this before when building from source and found a way around?

Thanks so much for the help!