[SOLVED] Bullet integration

Hello,

Disclaimer: Sorry if I make some grammar mistakes but English is not my first language.

I was trying to implement the first tutorial regarding bullet but it keeps giving me this errors:

I’m running it on snow leopard and i’m using this makefile that I have created:

OBJ_FOLDER=obj/
SOURCES = $(wildcard src/*.cxx)
OBJECTS = $(addprefix $(OBJ_FOLDER),$(notdir $(SOURCES:.cxx=.o)))

PROJ_NAME=reefs

PANDA_LIB=/Developer/Panda3D/lib/
PANDA_INCLUDE=/Developer/Panda3D/include/
PANDA_FLAGS=-lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct

PYTHON=/usr/include/python2.6/

BULLET=/usr/local/include/bullet/
BULLET_FLAGS=-lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath


run: $(PROJ_NAME)
	./$(PROJ_NAME)

$(PROJ_NAME): sources
	g++ $(OBJECTS) -o $(PROJ_NAME) -fPIC -arch i386 -L$(PANDA_LIB) $(PANDA_FLAGS) $(BULLET_FLAGS)

sources: $(SOURCES)
	mkdir -p $(OBJ_FOLDER)
	g++ -c $(SOURCES) -o $(OBJECTS) -FPIC -O2 -arch i386 -I$(PYTHON) -I$(PANDA_INCLUDE) -I$(BULLET)

clean:
	rm -rf $(OBJ_FOLDER)
	rm $(PROJ_NAME)

.PHONY: reefs run clean

I have already tried removing -arch i386 but than it gives me some other errors.
Can someone please help me?

Thanks in advance

You forgot to link to -lpandabullet.

Ok that solved the problem, thanks a lot :smiley:

Is that in the tutorial? I totally missed it.