We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

cvblobslib undefined reference error

Hi all,

To begin, I'm not certain this is the proper place to start this question, but I believe this to be a linux-linker related error rather than a code based one. I've also searched far and wide for a solution online, but others have solved the problem simply include -lblob in the build which I have already done without success.

I'm using cvblobslib with openCV, and as per their instructions I've compiled their code to create libblob.a. I've copied this into /usr/local/lib and executed 'sudo ldconfig'. This should have registered the library.

Here are the relevent snippets from the make file:

LIB=-lblob -L/home/tc/opencv/release/lib -lopencv_core -lopencv_imgproc -lopencv_highgui
INC=-I/home/tc/opencv/release/include -I/home/tc/cvblobslib
CC=g++
CFLAGS=-Wall -Wno-unknown-pragmas
OBJECTS = (long list of .o files)

robot.o: $(OBJECTS)
    $(CC) $(INC) $(LIB) $(CFLAGS) $(OBJECTS) -o robot
...
(rest of directions to build individual objects)

The errors are:
undefined reference to 'CBlobResult::GetBlob(int)'
repeated for other functions inside cvblobslib.

Any advice as to where to proceed from here? How can I find out more about what the linker is doing? Did it successfully registered libblob.a, is it trying to use libblob.a in an unusual way?

Thanks in advance.

1
Contributor
1
Reply
20 Hours
Discussion Span
6 Months Ago
Last Updated
2
Views
sblass92
Light Poster
28 posts since Jan 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

Fixed the problem with an inelegant solution. I added the .cpp files to my own build directives instead of using the libblob.a provided.

sblass92
Light Poster
28 posts since Jan 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0681 seconds using 2.73MB