pkg-config --cflags --libs opencv
-I/usr/include/opencv -lml -lcvaux -lhighgui -lcv -lcxcore
gcc -I/usr/include/opencv -L/usr/lib -lhighgui opencv_cap.c
On Thu, Jan 5, 2012 at 1:29 PM, rbriggin <rbri...@gmail.com> wrote:
> I have a beaglebone running ubuntu 11.10 headless using the images supplied
> here
> http://elinux.org/BeagleBoardUbuntu
>
> 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
>>
>> pkg-config --cflags --libs opencv
>>
>> -I/usr/include/opencv -lml -lcvaux -lhighgui -lcv -lcxcore
>
>
> When i compile the program using...
>>
>> gcc -I/usr/include/opencv -L/usr/lib -lhighgui opencv_cap.c
>
>
> I get the output listed here
> http://pastebin.com/HyS7WH6C
Any particular reason you dropped the -lml, -lcvaux, -lcv and -lcxcore options?
I expect that one of those libraries contains the missing symbols.
Note: I haven't used OpenCV before, so I'm just basing my comments on
the errors you showed.
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
gcc -I/usr/include/opencv -lml -lcvaux -lhighgui -lcv -lcxcore -L/usr/lib opencv_cap.c
ls -lah /usr/lib/libcv*
-rw-r--r-- 1 root root 3.4M 2011-09-15 01:19 /usr/lib/libcv.a
-rw-r--r-- 1 root root 1.9M 2011-09-15 01:19 /usr/lib/libcvaux.a
lrwxrwxrwx 1 root root 15 2011-09-15 01:18 /usr/lib/libcvaux.so -> libcvaux.so.2.1
lrwxrwxrwx 1 root root 17 2011-09-15 01:18 /usr/lib/libcvaux.so.2.1 -> libcvaux.so.2.1.0
-rw-r--r-- 1 root root 702K 2011-09-15 01:19 /usr/lib/libcvaux.so.2.1.0
lrwxrwxrwx 1 root root 12 2011-09-15 01:18 /usr/lib/libcv.so -> libcv.so.2.1
lrwxrwxrwx 1 root root 14 2011-09-15 01:18 /usr/lib/libcv.so.2.1 -> libcv.so.2.1.0
-rw-r--r-- 1 root root 1.6M 2011-09-15 01:19 /usr/lib/libcv.so.2.1.0
ls -lah /usr/include/opencv/
total 1000K
drwxr-xr-x 2 root root 4.0K 2012-01-05 14:56 .
drwxr-xr-x 50 root root 4.0K 2012-01-05 14:56 ..
-rw-r--r-- 1 root root 65K 2010-04-05 20:24 cvaux.h
-rw-r--r-- 1 root root 67K 2010-04-05 20:24 cvaux.hpp
-rw-r--r-- 1 root root 40K 2010-04-05 20:24 cvcompat.h
-rw-r--r-- 1 root root 71K 2010-04-05 20:24 cv.h
-rw-r--r-- 1 root root 46K 2010-04-05 20:24 cv.hpp
-rw-r--r-- 1 root root 6.0K 2011-09-14 23:53 cvinternal.h
-rw-r--r-- 1 root root 12K 2010-04-05 20:24 cvtypes.h
-rw-r--r-- 1 root root 2.5K 2010-04-05 20:24 cvver.h
-rw-r--r-- 1 root root 42K 2010-04-05 20:24 cvvidsurv.hpp
-rw-r--r-- 1 root root 21K 2010-04-05 20:24 cvwimage.h
-rw-r--r-- 1 root root 76K 2010-04-05 20:24 cxcore.h
-rw-r--r-- 1 root root 82K 2011-09-14 23:53 cxcore.hpp
-rw-r--r-- 1 root root 8.6K 2010-04-05 20:24 cxerror.h
-rw-r--r-- 1 root root 6.8K 2010-04-05 20:24 cxflann.h
-rw-r--r-- 1 root root 150K 2010-04-05 20:24 cxmat.hpp
-rw-r--r-- 1 root root 28K 2010-04-05 20:24 cxmisc.h
-rw-r--r-- 1 root root 89K 2010-04-05 20:24 cxoperations.hpp
-rw-r--r-- 1 root root 52K 2010-04-05 20:24 cxtypes.h
-rw-r--r-- 1 root root 19K 2010-04-05 20:24 highgui.h
-rw-r--r-- 1 root root 4.8K 2010-04-05 20:24 highgui.hpp
-rw-r--r-- 1 root root 72K 2010-04-05 20:24 ml.h
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
>
Regards,
--
Robert Nelson
http://www.rcn-ee.com/
Works for me on my xM B.. (so what board?)
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). ;)
Ah, sorry my bad.. I tweaked that section, for special BeagleBone considerations
http://elinux.org/BeagleBoardDebian#Beagleboard:_Install_Latest_Kernel
Currently the BeagleBone has to use a different kernel then the
beagle/panda/etc.. ;)
Should change in the future, maybe v3.3?