Hi Felipe,

Felipe Gomez Caballero wrote:

Hello everyone! :

I have some problems with the lib Genvis.
I downloaded the library from the cvs server of berlios (http://cvs.berlios.de/cgi-bin/viewcvs.cgi/opensgplus/) and i put it on the Opensg/Source/Experimental, and i followed rthe instructions to put it on the OpenSG tree, but when i was compiling the test program for the collisions (testCollision.cpp), i have a lot of errors (listed at the end of the message, and the Makefile is listed too), can anybody tell me why i have this errors? (Im working on Linux Slackware 10.0 kernel 2.4.26)

Well i hope somebody will help me!, Thanks!
(by the way... sorry if my english isn't pretty god...)

Ok, I try to :-)

Errors:

/X11R6/lib -o testCollision
/tmp/ccDBZ0Cd.o(.text+0x57a): In function `main':
/home/felipe/CAVE/progOSG/testCollision.cpp:100: undefined reference to `genvis::OpenSGCache::the()' /tmp/ccDBZ0Cd.o(.text+0x583):/home/felipe/CAVE/progOSG/testCollision.cpp:100: undefined reference to `genvis::OpenSGCache::setHierarchy(genvis::StaticInput<genvis::OpenSGTraits>*)'
<snip>

That is pretty much everything used in testCollision from Genvis...

Makefile:

# "opt" if you use the optimized library otherwise it is "dbg"
LIBTYPE ?= dbg

# set the path to the installed osg-config executable here
OSGCONFIG := /usr/local/bin/osg-config

# use osg-config to set the options needs to compile and link
CC = "$(shell $(OSGCONFIG) --compiler)"
CCFLAGS = $(shell $(OSGCONFIG) --cflags --$(LIBTYPE) Base System GLUT)
LDFLAGS = $(shell $(OSGCONFIG) --libs --$(LIBTYPE) Base System GLUT)

You do not link the GenvisLib at all.
So put "OSGGenvisD.lib" for DBG resp. "OSGGenvis.lib" for OPT into the line LDFLAGS LDFLAGS = $(shell $(OSGCONFIG) --libs --$(LIBTYPE) Base System GLUT) OSGGenvisD.lib

# setting up the wildcard for *.cpp
TUTS :=  $(wildcard *.cpp)
PROGS := $(TUTS:.cpp=)

# program dependencies

default:        $(PROGS)

# make rules
.PHONY: clean Clean

clean:
   rm -f *.o

Clean: clean
   rm -f $(PROGS)

%.o: %.cpp
   $(CC) -c $(CCFLAGS) $<

%: %.o
   $(CC) -o $@ $< $(LDFLAGS)

%: %.cpp
   $(CC) $(CCFLAGS) $< $(LDFLAGS) -o $@

Hope it helps,
Christoph



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to