[Insight-users] CMalists QT+VTK

Oliveira Marcelo marceloitk at yahoo.com.br
Tue Aug 3 10:33:17 EDT 2004


Tanks a lot Julien, Luis and ALL !!!

My problems was link the librarys in my Debian Linux.

Is working ok now !!!!!


 --- Luis Ibanez <luis.ibanez at kitware.com> escreveu: 
> 
> HI Marcelo,
> 
> The order of static libraries in the link line is
> important in Unix/Linux.
> 
> It is likely that you are setting the VTK QT
> libraries
> in an inappropriate order on the link line of your
> application's Makefile.
> 
> 
> NOTE that since the Makefile is generated from the
> CMakeLists.txt file, you actually want to fix the
> order in the original CMakeLists.txt file
> 
> 
> 
> Regards,
> 
> 
>     Luis
> 
> --------------------------
> Oliveira Marcelo wrote:
> 
> > Hi user's and Julien
> > 
> > tanks for your time and advanced me !!!!!
> > 
> > I did compile my QT 3.3.2 again such:
> >  ./configure -thread -no-dlopen-opengl
> > 
> > the examples with opengl works OK. 
> > 
> > I removed ${QT_GL_LIBRARY} from CMakeLists
> > I compiled vtkqt again.
> > 
> > And i'm still having this problems !!!!
> > 
> >
>
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.gnu.linkonce.r._ZTV17vtkQtRenderWindow+0x1f8):/home/marcelo/vtkqt/vtkQtRenderWindow.cpp:65:
> > undefined reference to
> `QGLWidget::paintOverlayGL()'
> >
>
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.gnu.linkonce.r._ZTV17vtkQtRenderWindow+0x1fc):/home/marcelo/vtkqt/vtkQtRenderWindow.cpp:65:
> > undefined reference to `QGLWidget::glInit()'
> >
>
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.gnu.linkonce.r._ZTV17vtkQtRenderWindow+0x200):/home/marcelo/VTK/Rendering/vtkRenderWindow.h:350:
> > undefined reference to `QGLWidget::glDraw()'
> >
>
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.gnu.linkonce.t._ZNK9QGLWidget10metaObjectEv+0x7):
> > In function `QGLWidget::metaObject() const':
> > /home/marcelo/VTK/Common/vtkWindow.h:64: undefined
> > reference to `QGLWidget::staticMetaObject()'
> >
>
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.gnu.linkonce.t._ZN17vtkQtRenderWindow11MakeCurrentEv+0xd):
> > In function `vtkQtRenderWindow::MakeCurrent()':
> > /usr/local/src/qt3/include/qsizepolicy.h:73:
> undefined
> > reference to `QGLWidget::makeCurrent()'
> >
>
/home/marcelo/vtkqt/libvtkqt.a(vtkQtRenderWindow.o)(.gnu.linkonce.r._ZTI17vtkQtRenderWindow+0x10):/home/marcelo/vtkqt/vtkQtRenderWindow.cpp:52:
> > undefined reference to `typeinfo for QGLWidget'
> > collect2: ld returned 1 exit status
> > make[1]: ***
> [/home/marcelo/teste/bin/testeExecutable]
> > Error 1
> > make: *** [default_target] Error 2
> > 
> > 
> > This is my Makefile that generate the
> > libvtkqt.a(/home/marcelo/vtkqt). Is it OK ??
> > 
> >
>
#############################################################################
> > # Makefile for building libvtkqt.a
> > # Generated by tmake at 14:03, 2004/08/02
> > #     Project: vtkqt
> > #    Template: lib
> >
>
#############################################################################
> > 
> > ####### Compiler, tools and options
> > 
> > CC	=	gcc
> > CXX	=	g++
> > CFLAGS	=	-pipe -g
> > CXXFLAGS=	-Wno-deprecated -g
> > QTDIR = /usr/local/src/qt3
> > 
> > 
> > INCPATH	=	-I/home/marcelo/VTK_bin
> > -I/home/marcelo/VTK/Parallel
> > -I/home/marcelo/VTK/Hybrid
> > -I/home/marcelo/VTK/Patented
> > -I/home/marcelo/VTK/Rendering
> -I/home/marcelo/VTK/IO
> > -I/home/marcelo/VTK/Imaging
> > -I/home/marcelo/VTK/Graphics
> > -I/home/marcelo/VTK/Filtering
> > -I/home/marcelo/VTK/Common
> > -I/home/marcelo/VTK/Common/Testing/Cxx
> > -I/home/marcelo/VTK_bin/Utilities/zlib
> > -I/home/marcelo/VTK/Utilities/zlib
> > -I/home/marcelo/VTK_bin/Utilities/jpeg
> > -I/home/marcelo/VTK/Utilities/jpeg
> > -I/home/marcelo/VTK_bin/Utilities/png
> > -I/home/marcelo/VTK/Utilities/png
> > -I/home/marcelo/VTK_bin/Utilities/tiff
> > -I/home/marcelo/VTK/Utilities/tiff
> > -I/home/marcelo/VTK_bin/Utilities/expat
> > -I/home/marcelo/VTK/Utilities/expat
> > -I/home/marcelo/VTK_bin/Utilities/DICOMParser
> > -I/home/marcelo/VTK/Utilities/DICOMParser
> > -I$(QTDIR)/include -I$(QTDIR)/
> -I/home/marcelo/vtkqt
> > AR	=	ar cqs
> > RANLIB	=	
> > MOC	=	$(QTDIR)/bin/moc
> > UIC	=	$(QTDIR)/bin/uic
> > 
> > TAR	=	tar -cf
> > GZIP	=	gzip -9f
> > 
> > ####### Files
> > 
> > HEADERS =	vtkQtRenderWindow.h \
> > 		vtkQtRenderWindowInteractor.h
> > SOURCES =	vtkQtRenderWindow.cpp \
> > 		vtkQtRenderWindowInteractor.cpp
> > OBJECTS =	vtkQtRenderWindow.o \
> > 		vtkQtRenderWindowInteractor.o
> > INTERFACES =	
> > UICDECLS =	
> > UICIMPLS =	
> > SRCMOC	=	moc_vtkQtRenderWindowInteractor.cpp
> > OBJMOC	=	moc_vtkQtRenderWindowInteractor.o
> > DIST	=	
> > TARGET	=	libvtkqt.a
> > INTERFACE_DECL_PATH = .
> > 
> > ####### Implicit rules
> > 
> > .SUFFIXES: .cpp .cxx .cc .C .c
> > 
> > .cpp.o:
> > 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
> > 
> > .cxx.o:
> > 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
> > 
> > .cc.o:
> > 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
> > 
> > .C.o:
> > 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
> > 
> > .c.o:
> > 	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
> > 
> > ####### Build rules
> > 
> > 
> > all: $(TARGET)
> > 
> > staticlib: $(TARGET)
> > 
> > $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
> > 	-rm -f $(TARGET)
> > 	$(AR) $(TARGET) $(OBJECTS) $(OBJMOC)
> > 
> > moc: $(SRCMOC)
> > 
> > tmake: Makefile
> > 
> > Makefile: vtkqt.pro
> > 	tmake vtkqt.pro -o Makefile
> > 
> > dist:
> > 	$(TAR) vtkqt.tar vtkqt.pro $(SOURCES) $(HEADERS)
> > $(INTERFACES) $(DIST)
> > 	$(GZIP) vtkqt.tar
> > 
> > clean:
> > 	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS)
> > $(UICDECLS) $(TARGET)
> > 	-rm -f *~ core
> > 
> > ####### Sub-libraries
> > 
> > 
> > ###### Combined headers
> > 
> > 
> > ####### Compile
> > 
> > vtkQtRenderWindow.o: vtkQtRenderWindow.cpp \
> > 		vtkQtRenderWindow.h \
> > 		vtkQtRenderWindowInteractor.h
> > 
> 
=== message truncated === 


	
	
		
_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: http://br.acesso.yahoo.com/


More information about the Insight-users mailing list