Hello Sajjadul,

Sajjadul Islam wrote:
> Hello,
> 
> I am trying to integrate OpenSG application with Qt as specified in the 
> link
> 
> http://www.opensg.org/doc-1.6.0/QT.html
> 
> but i am coming up with the following error
> 
> 
> [EMAIL PROTECTED]:~/myOpenSG/testQTOSG$ make
> g++ -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_QT 
> -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -D_OSG_HAVE_CONFIGURED_H_ 
> -DQT_NO_XINERAMA -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB 
> -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG 
> -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE 
> -DQT_NO_STYLE_COMPACT -ansi -use_readonly_const -ftemplate-depth-100 
> -fPIC -O3 -DOSG_WITH_QT -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_JPG 
> -DOSG_WITH_PNG -I/usr/include -I/usr/include -I/usr/include 
> -I/usr/include/qt3 -I/usr/include/GL -I/usr/local/include -c 
> shaderviewer.cpp
> g++ -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_QT 
> -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -D_OSG_HAVE_CONFIGURED_H_ 
> -DQT_NO_XINERAMA -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB 
> -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG 
> -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE 
> -DQT_NO_STYLE_COMPACT -ansi -use_readonly_const -ftemplate-depth-100 
> -fPIC -O3 -DOSG_WITH_QT -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_JPG 
> -DOSG_WITH_PNG -I/usr/include -I/usr/include -I/usr/include 
> -I/usr/include/qt3 -I/usr/include/GL -I/usr/local/include -c 
> moc_shaderviewer.cpp
> g++ -D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_QT 
> -DOSG_WITH_TIF -DOSG_WITH_JPG -DOSG_WITH_PNG -D_OSG_HAVE_CONFIGURED_H_ 
> -DQT_NO_XINERAMA -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB 
> -DQT_NO_SM_SUPPORT -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG 
> -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_MAC -DQT_NO_STYLE_INTERLACE 
> -DQT_NO_STYLE_COMPACT -ansi -use_readonly_const -ftemplate-depth-100 
> -fPIC -O3 -DOSG_WITH_QT -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_JPG 
> -DOSG_WITH_PNG -I/usr/include -I/usr/include -I/usr/include 
> -I/usr/include/qt3 -I/usr/include/GL -I/usr/local/include -c mainQT.cpp
> g++ -o mainQT shaderviewer.o moc_shaderviewer.o mainQT.o -O2 
> -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/share/qt3/lib -L/usr/lib64 
> -L/usr/local/lib/opt -lOSGWindowQT -lOSGWindowGLUT -lOSGWindowX 
> -lOSGSystem -lOSGBase -ltiff -ljpeg -lpng -lz -lqt-mt -lglut -lGLU -lGL 
> -lXmu -lXi -lXt -lX11 -lpthread -ldl -lm -L/usr/X11R6/lib64
> moc_shaderviewer.o: In function `ShaderViewer::qt_invoke(int, QUObject*)':
> moc_shaderviewer.cpp:(.text+0x1e4): undefined reference to 
> `ShaderViewer::load()'
> moc_shaderviewer.o:(.data.rel.ro._ZTV12ShaderViewer[vtable for 
> ShaderViewer]+0x40): undefined reference to `ShaderViewer::~ShaderViewer()'
> moc_shaderviewer.o:(.data.rel.ro._ZTV12ShaderViewer[vtable for 
> ShaderViewer]+0x48): undefined reference to `ShaderViewer::~ShaderViewer()'
> moc_shaderviewer.o:(.data.rel.ro._ZTV12ShaderViewer[vtable for 
> ShaderViewer]+0x398): undefined reference to 
> `ShaderViewer::languageChange()'
> moc_shaderviewer.o:(.data.rel.ro._ZTV12ShaderViewer[vtable for 
> ShaderViewer]+0x3b0): undefined reference to `non-virtual thunk to 
> ShaderViewer::~ShaderViewer()'
> moc_shaderviewer.o:(.data.rel.ro._ZTV12ShaderViewer[vtable for 
> ShaderViewer]+0x3b8): undefined reference to `non-virtual thunk to 
> ShaderViewer::~ShaderViewer()'
> mainQT.o: In function `main':
> mainQT.cpp:(.text+0xce): undefined reference to 
> `ShaderViewer::ShaderViewer(QWidget*, char const*, bool, unsigned int)'
> mainQT.cpp:(.text+0xf3): undefined reference to 
> `ShaderViewer::~ShaderViewer()'
> mainQT.cpp:(.text+0x13b): undefined reference to 
> `ShaderViewer::~ShaderViewer()'
> collect2: ld returned 1 exit status
> make: *** [mainQT] Error 1
> 
> 
> So far i understand that it is not finding the the function load() that 
> i have defined......
> Any one has any suggestion on that issue?

Are these functions really defined or just declared ? If they are 
defined, the linker can not see them for some reason, usually because 
the corresponding .o is not mentioned on the linker's command line.
        
        Hope it helps,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to