[Jderobot-dev] DUDA visionLibrary::linesDetection::solisAlgorithm
Julio Guillén
julio.guillen en gmail.com
Jue Mar 1 13:00:47 CET 2012
El problema surge al compilar. Adjunto mi Makefile
JDEROBOTDIR = /usr/local
CXXFLAGS = -I $(JDEROBOTDIR)/include/jderobot -I
$(JDEROBOTDIR)/include/cvblobs -I $(JDEROBOTDIR)/include/jderobot/visionlib
`pkg-config --cflags opencv` `pkg-config --cflags gtkmm-2.4 libglademm-2.4
gthread-2.0` `pkg-config --cflags gtkglextmm-1.2`
LDFLAGS = `pkg-config --libs gtkmm-2.4 libglademm-2.4 gthread-2.0`
`pkg-config --libs opencv` -lgsl -lgslcblas `pkg-config --libs
gtkglextmm-1.2` -lGL -lGLU -lglut
LDADD = $(JDEROBOTDIR)/lib/jderobot/libJderobotIce.la \
$(JDEROBOTDIR)/lib/jderobot/libJderobotUtil.la \
$(JDEROBOTDIR)/lib/jderobot/libcolorspacesmm.la \
$(JDEROBOTDIR)/lib/jderobot/libJderobotInterfaces.la \
$(JDEROBOTDIR)/lib/jderobot/libprogeo.la \
$(JDEROBOTDIR)/lib/jderobot/libpioneer.la \
$(JDEROBOTDIR)/lib/jderobot/lvisionlib.a \
$(JDEROBOTDIR)/lib/libblob.a
estratega: estratega.o viewer.o
libtool --mode=link g++ -g -O -o estratega *.o $(LDADD) $(LDFLAGS)
clean:
rm -f *.o estratega
Pero al realizar el make me devuelve lo siguiente:
jguillen en ubuntu:~/jderobot/tfm/trunk/src/estratega$ make -f
Makefile-estratega
libtool --mode=link g++ -g -O -o estratega *.o
/usr/local/lib/jderobot/libJderobotIce.la
/usr/local/lib/jderobot/libJderobotUtil.la /usr/local/lib/jderobot/
libcolorspacesmm.la /usr/local/lib/jderobot/libJderobotInterfaces.la
/usr/local/lib/jderobot/libprogeo.la
/usr/local/lib/jderobot/libpioneer.la/usr/local/lib/jderobot/lvisionlib.a
/usr/local/lib/libblob.a `pkg-config
--libs gtkmm-2.4 libglademm-2.4 gthread-2.0` `pkg-config --libs opencv`
-lgsl -lgslcblas `pkg-config --libs gtkglextmm-1.2` -lGL -lGLU -lglut
libtool: link: g++ -g -O -o estratega estratega.o viewer.o -pthread
-Wl,--export-dynamic -pthread /usr/local/lib/jderobot/libJderobotIce.so
/usr/local/lib/jderobot/libJderobotUtil.so
/usr/local/lib/jderobot/libcolorspacesmm.so
/usr/local/lib/jderobot/libJderobotInterfaces.so
/usr/local/lib/jderobot/libprogeo.so /usr/local/lib/jderobot/libpioneer.so
/usr/local/lib/jderobot/lvisionlib.a /usr/local/lib/libblob.a /usr/lib/
libglademm-2.4.so /usr/lib/libglade-2.0.so /usr/lib/libxml2.so -lcv
-lhighgui -lcvaux -lml -lcxcore -lgsl -lgslcblas /usr/lib/
libgtkglextmm-x11-1.2.so /usr/lib/libgdkglextmm-x11-1.2.so /usr/lib/
libgtkglext-x11-1.0.so /usr/lib/libgtkmm-2.4.so /usr/lib/
libgdkglext-x11-1.0.so -lXmu -lXt -lSM -lICE
/usr/lib/libpangox-1.0.so-lX11 /usr/lib/
libatkmm-1.6.so /usr/lib/libgdkmm-2.4.so /usr/lib/libgiomm-2.4.so /usr/lib/
libpangomm-1.4.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libglibmm-2.4.so/usr/lib/
libcairomm-1.0.so /usr/lib/libsigc-2.0.so /usr/lib/libgdk-x11-2.0.so/usr/lib/
libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/
libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so
/usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lfontconfig /usr/lib/
libgobject-2.0.so /usr/lib/libgmodule-2.0.so
/usr/lib/libgthread-2.0.so-lrt /usr/lib/
libglib-2.0.so -lGL -lGLU -lglut -pthread -Wl,-rpath
-Wl,/usr/local/lib/jderobot -Wl,-rpath -Wl,/usr/local/lib/jderobot
viewer.o: In function `estratega::Viewer::color(colorspaces::Image const&)':
viewer.cpp:(.text+0x35bf): undefined reference to
`visionLibrary::linesDetection::solisAlgorithm(_IplImage&,
std::vector<Segment2D, std::allocator<Segment2D> >*)'
collect2: ld returned 1 exit status
make: *** [estratega] Error 1
¿Algún consejo? He mirado proyectos en los que compilaban directamente la
librería con el Makefile global, pero no he tenido éxito tratando de emular
dicho proceso.
Saludos y gracias de nuevo
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20120301/60c2ac4e/attachment.htm
More information about the Jde-developers
mailing list