Hi Tran,

On Tue, 2005-04-05 at 02:09 -0700, Tran Thanh Hiep wrote:
> Hi all
> I have Install QT and OpenSG on Window. I don't know
> how to a compile program wich with use OpenSG with QT.
> Example program int Appendix B - OpenSG with QT. I can
> do  it program in linux but in windown i can compile
> it with commanline : g++ -D_GNU_SOURCE
> -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_QT
> -DOSG_WITH_TIF 
>       -DOSG_WITH_PNG -DOSG_WITH_JPG -I$QTDIR/include
> -I/usr/local/include -ansi
>       -f-template-depth-100 mainwindow.cpp main.cpp
> moc_mainwindow.cpp -L/usr/local/lib/dbg
>       -L/usr/X11R6/lib -L$QTDIR/lib -lOSGWindowGLUT
> -lOSGWindowQT -lOSGSystem -lOSGBase -lGLU
>       -lGL -lglut -lqt -lXmu -lXi -lXt -lpthread -ldl -o
> OpenSGViewer
> 
> Can you help me compile program as program in Appendix
> B - OpenSG with QT(OpenSG document)

That commandline uses g++, which is the Linux, not the Windows compiler,
so it won't work on Windows. 

To make QT work on Windows you have to add the path that contains QT in
your system path, so that VS can find moc.exe and uic.exe. You also have
to include the include and lib pathes for QT in your VS project.

Hope it helps

        Dirk

-- 
-- Dirk Reiners               OpenSG Forum             [EMAIL PROTECTED] 
-- The OpenSG Open Source Scenegraph:            http://www.opensg.org
-- Join the list at    http://lists.sf.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to