behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

box2d lite on linux #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sources didn't compiled completely on linux (x64), but quite small changes can 
make it. Attached goes a small diff.

Make sure that your distro provides libGL.so, libGLU.so and libglut.so; -dev 
(or equivalent) packages are recommended, since headers from GL/* will be 
demanded.

The following command line can compile the code:
g++ -Wall -c *.cpp

and in order to link files this line can be used:
g++ -lGL -lGLU -lglut *.o -o b2dlite

since i don't have windows available now, i'm sorry but don't know yet the 
consequences when compiling it on windows.

this project is very amazing, thanks for your work!

Original issue reported on code.google.com by Sombr...@gmail.com on 19 Jul 2011 at 4:17

Attachments:

GoogleCodeExporter commented 9 years ago
this is more like an enhancement, haven't figured where can it change it.

Original comment by Sombr...@gmail.com on 19 Jul 2011 at 4:18

GoogleCodeExporter commented 9 years ago
i'm using that small gnu make file:

all : b2dlite

b2dlite : Arbiter.o Body.o Collide.o Joint.o main.o World.o
    g++ -lGL -lGLU -lglut $^ -o $@
%.o : %.c
    g++ -c $<
clean : 
    rm *.o

Original comment by Sombr...@gmail.com on 19 Jul 2011 at 6:17

GoogleCodeExporter commented 9 years ago
Thanks, but I'm not really supporting Box2D Lite anymore. It is so simple that 
anyone can deal with these problems as needed.

Original comment by erinca...@gmail.com on 4 Sep 2011 at 2:13

GoogleCodeExporter commented 9 years ago
That's true, b2dlite is very valuable for learning purposes. Maybe the bug make 
it more interesting. 

Original comment by Sombr...@gmail.com on 4 Sep 2011 at 2:19