openCV does not build on my RaspberryPi

asked 2013-01-11 08:27:46 -0500

Tie-fighter gravatar image

I get the following output when compiling opencv:

[ 18%] Built target opencv_flann
[ 18%] Built target opencv_highgui_pch_dephelp
[ 18%] Built target pch_Generate_opencv_highgui
Linking CXX shared library ../../lib/
/usr/bin/ld: /usr/local/lib/libx264.a(common.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libx264.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2

I've been following this guide. What am I missing? :/

edit retag flag offensive close merge delete



Do you jave Ubuntu 12.04 running on you Raspberry Pi? Because the guide is made for that OS.

rics gravatar imagerics ( 2013-01-11 09:55:41 -0500 )edit

You are correct. I am using Raspian.

Tie-fighter gravatar imageTie-fighter ( 2013-01-11 11:07:28 -0500 )edit