View Single Post
  #9   Spotlight this post!  
Unread 30-11-2013, 21:51
brennonbrimhall brennonbrimhall is offline
Free Agent
AKA: Brennon Brimhall
no team
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Clifton Park, NY
Posts: 222
brennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to allbrennonbrimhall is a name known to all
Re: Installing OpenCV

Quote:
Originally Posted by yash101 View Post
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 View Post
PHP Code:
While compiling OpenCVat 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.
__________________
Team 20, 2012-2014: 4 blue banners, 5 medals, and 9 team awards.
Church of Jesus Christ of Latter-day Saints, 2014-2016: Missionary, Colorado Denver South Mission.