OpenCV on Beagleboard ubuntu 12

It's robotex season again, time to release one of my old posts that I had use of again.

So. OpenCV for my BeagleBoard. I didn't want to compile it from source so basic linux training continued. After watching OpenCV linker errors:

gencode1.cpp:(.text+0x27): undefined reference to `cvNamedWindow'
gencode1.cpp:(.text+0x3c): undefined reference to `cvShowImage'
gencode1.cpp:(.text+0x59): undefined reference to `cvNamedWindow'
gencode1.cpp:(.text+0x6e): undefined reference to `cvShowImage'
gencode1.cpp:(.text+0x7a): undefined reference to `cvWaitKey'
gencode1.cpp:(.text+0x8f): undefined reference to `cvReleaseImage'
gencode1.cpp:(.text+0xa4): undefined reference to `cvReleaseImage'

A friendly face in the lab said that the linker part of g++ command has to be in the end of the command. That's it, I'm going to C starter course..

So now, the easy part. I installed OpenCV from ROS repo after this tutorial.

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu natty main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install libcv-dev libhighgui-dev libcvaux-dev libboost-dev
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu natty main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install libcv-dev libhighgui-dev libcvaux-dev libboost-dev

Tried compiling, still some bits missing from GUI:

/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
sudo apt-get install libboost-thread-dev libboost-system-dev
sudo apt-get install libboost-thread-dev libboost-system-dev
Posted on 2012-10-19, 07:44 By
No comments yet Categories: Robotex

Leave a Reply

Your email address will not be published. Required fields are marked *