Quote:
Originally Posted by yash101
I agree. I am not a fan of CMAKE either. I was just going to use an IDE like Netbeans! That would get rid of all the confusion, caused by setting up! I will google about how to compile OpenCV projects using g++. I believe it uses PKG-CONFIG, so it shouldn't be rocket science!
|
While no build system is perfect, CMake does a good job of managing cross-platform building. I wouldn't dismiss it too readily. But we digress.
Quote:
Originally Posted by yash101
PHP Code:
While compiling OpenCV, at 20%, I got this error:
[ 20%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/bitstrm.cpp.o
[ 20%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/rgbe.cpp.o
Linking CXX shared library ../../lib/libopencv_highgui.so
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_highgui.so.3.0.0] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
Does anyone know what it could be?
|
Based on what I'm reading here, I'm inclined to think that OpenCV is having issues on the AV codec for it's internal HighGUI library.
Are you using parallel builds with make? That might explain it -- this step could be dependent on another step that has not been completed yet.