arm - Illegal instruction in Raspberry Pi -


today, compiled opencv-master downloaded github. these instructions in webpage http://ariandy1.wordpress.com/2013/02/13/raspberry-pi-rasbian-opencv/, , opencv compiled successfully. when wrote simple c++ program, link -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_video, run in terminal. error occured, says illegal instruction. when remove opencv-dependent code, , recompile, can run successfully. doubt packages installed apt-get have bugs. can't find them. face problem?

the /etc/apt/sources.list is:

    deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi     deb http://www.deb-multimedia.org/ wheezy main non-free     deb http://archive.raspbian.org/raspbian wheezy main contrib non-free     deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free 

update

the output of dmesg is: http://pastebin.com/dsr8mgvy

update 2

the output of ldd command : http://pastebin.com/s7suqabk

update 3

the output of 'file' command is: http://pastebin.com/q1eaytjk

i don't know exact reasons of illegal instruction in raspberry pi, find solution. recompile opencv -dwith_ffmpeg:bool='0'. without ffmpeg, video camera still works.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -