Hi Enrico, hi Dominik,

On Thu, 2004-03-18 at 14:19, Dominik Rau wrote:
> >
> Hi Enrico.
> Good News: You don't have to write a Makefile (in this case). I use the 
> following project options in KDevelop (Project Options->Configure):
> 
> LDFLAGS:
> -L/usr/lib/OpenSG -lglut -lGLU -lGL -lOSGBase -lOSGSystem -lOSGWindowGLUT
> CXXFLAGS:
> -g2 -DHAVE_CONFIG_H -I. -I.. -O2 -DOSG_WITH_GLUT
> 
> Now just add one of the tutorials to your project and compile. I think 
> your trouble is related to the -DOSG_WITH_GLUT switch.

while this might work, it's kinda hardcoded. Does KDevelop generate a
Makefile that is executed using make, does it call a shell to do that,
or does it call the compiler itself?

In the first two cases you could use the osg-config script, whose sole
purpose is to give you the necessary flags.

Try using

LDFLAGS:
`osg-config --dbg --libs Base System GLUT`
CXXFLAGS:
-g2 -O2 `osg-config --dbg --cflags Base System GLUT`

and see if that works. This expects to find osg-config in your PATH
somewhere. For using the optimized libraries, replace --dbg with --opt.

Yours

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to