Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
problem with sample program on Ubuntu 11.10
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steffen  
View profile   Translate to Translated (View Original)
 More options Nov 15 2011, 11:44 am
From: Steffen <steffe...@gmail.com>
Date: Tue, 15 Nov 2011 08:44:43 -0800 (PST)
Local: Tues, Nov 15 2011 11:44 am
Subject: problem with sample program on Ubuntu 11.10
Hi, I'm new to linux, and need a bit of help. I need to use openCV
with cvBlob on linux, so installed openCV with these commands:

$ sudo add-apt-repository ppa:gijzelaar/opencv2

$ sudo apt-get install libcv2.1 libcv-dev libcvaux2.1 libcvaux-dev
libhighgui2.1 libhighgui-dev opencv-doc python-opencv

$ export LD_LIBRARY_PATH=/home/opencv/lib

$ export PKG_CONFIG_PATH=/home/opencv/lib/pkgconfig

$ pkg-config --cflags opencv

    -I/usr/include/opencv

$ pkg-config --libs opencv

    -lcxcore -lcv -lhighgui -lcvaux -lml

and followed by installing cvBlob to /home/steffen/SDK/cvBlob. I
compiled it with:

$ cmake-gui

set source til /home/steffen/SDK/cvBlob

set build til /home/steffen/SDK/cvBlob/bin

set openCV_DIR til /usr/include/opencv

configured and generated.

$ cd /bin

$ sudo make install

all seemed to install correctly.

I then tried compiling the sample project (/cvBlob/sample) with:

$ make

which gave a LOT of errors, and then with:

$ g++ red_object_tracking.cpp -o sample pkg-config --cflags --libs
opencv

which returned the following:

/tmp/ccRtslPR.o:
In function `main':
red_object_tracking.cpp:(.text+0x37c): undefined reference to
`cvLabel'
red_object_tracking.cpp:(.text+0x39d): undefined reference to
`cvFilterByArea'
red_object_tracking.cpp:(.text+0x3ce): undefined reference to
`cvRenderBlobs'
red_object_tracking.cpp:(.text+0x400): undefined reference to
`cvUpdateTracks'
red_object_tracking.cpp:(.text+0x444): undefined reference to
`cvRenderTracks'
red_object_tracking.cpp:(.text+0x5e1): undefined reference to
`cvSaveImageBlob'
collect2: ld returned 1 exit status

can anyone tell me what I did wrong, and how to fix this?
Hope you can help!
- Steffen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Osman Eralp  
View profile  
 More options Nov 16 2011, 10:32 am
From: Osman Eralp <o...@ozbots.org>
Date: Wed, 16 Nov 2011 07:32:19 -0800 (PST)
Local: Wed, Nov 16 2011 10:32 am
Subject: Re: problem with sample program on Ubuntu 11.10

> $ g++ red_object_tracking.cpp -o sample pkg-config --cflags --libs

pkg-config is a command, so you need to surround it with the back tick
mark. Try this:

g++ red_object_tracking.cpp -o sample `pkg-config opencv --cflags --
libs`

--Osman


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »