Ive been trying to compile the program below, its taken from one of the OpenCV samples and modified a bit to just save the captured images instead of displaying them in a window.http://pastebin.com/3CtTVk0Z
I have all of the packages associated with OpenCV installed and this is the output from
I can compile this same program using the same gcc line on my main computer and it runs fine. I have no idea how or where something is going amiss and was wondering if anyone has had a similar issue or any insight on how to resolve this problem?
Tried that, same result.
Including the cv.h header makes just makes gcc list all of the cv.h functions as unable to reference like the the ones in highgui.h
Well I dont know what the problem was with ubuntu but I installed debian and it worked like a charm.
For the interested http://elinux.org/BeagleBoardDebian will get debian up and running.
It might have just been me but when i updated the kernel as listed here http://elinux.org/BeagleBoardDebian#Beagleboard:_Install_Latest_Kernel the board wouldnt boot.
If you want to give it a shot and the kernel update borks your install, on the boot partition you’ll see to files with “_old” on the end (uboot_old and uimage_old, i think, dont quote me on that)
Rename those back to the default names (overwriting the files that are there) and you’ll be good to go.
After that its a matter of doing the usual house keeping, update, upgrade, install sudo and gcc, and then the opencv libs and you’re compiling.
Any questions let me know, the details are kind of fuzzy since i dont have the board in front of me right now
Well I dont know what the problem was with ubuntu but I installed debian and
it worked like a charm.
For the interested BeagleBoardDebian - eLinux.org will get debian up
and running.
It might have just been me but when i updated the kernel as listed
here BeagleBoardDebian - eLinux.org the
board wouldnt boot.
By chance, do you remember which version failed? That update method
is a rolling release, and right now it's on the v3.1.x's, I usually
catch regressions pretty quick
If you want to give it a shot and the kernel update borks your install, on
the boot partition you'll see to files with "_old" on the end (uboot_old and
uimage_old, i think, dont quote me on that)
Rename those back to the default names (overwriting the files that are
there) and you'll be good to go.
Correct, the install-me.sh update scripts will backup your previous
uImage/uInitrd..
After that its a matter of doing the usual house keeping, update, upgrade,
install sudo and gcc, and then the opencv libs and you're compiling.
Any questions let me know, the details are kind of fuzzy since i dont have
the board in front of me right now
btw, after you run the "Netinstall" there's no point of updating to
the latest kernel, since the NetInstall pulls in the exact same kernel
(well that day anyways).
I didn’t know that it was an optional step, going through the install procedure it says that its not installing a kernel, so i figured it needed to be done. Learning experience i guess.
The kernel that i have running on it is the 3.1.0-psp3.
Ill try it again some time in the next few days (classes start tomorrow) and see if it was just a fluke, it would sit at the “starting kernel” (i think) message and then nothing.
I made some progress on this problem, not sure if you still care…
I used netbeans on my PC to build the above sample program with the OpenCV libraries added to the project properties. The sample program then builds just fine. However, executing the command(s) at a terminal fails as you stated:
Building this way fails on BOTH pandaboard and PC with Ubuntu. BUT, splitting the gcc command into 2 separate calls (just as Netbeans does) the program builds successfully: