Search found 67 matches

by kavaler
Fri Feb 27, 2009 1:01 am
Forum: Build Issues
Topic: Linux Builds - Ground Zero
Replies: 27
Views: 8309

Re: Linux Builds - Ground Zero

I agree with blue_puyo fix above. We should not require someone to "install" the libraries or the include files in order to build the testbed. By doing so one forestalls development on the box2d source. Remember that some people USE box2d and others DEVELOP box2d and the makefiles should b...
by kavaler
Thu Feb 12, 2009 2:46 am
Forum: Build Issues
Topic: Linux Builds - Ground Zero
Replies: 27
Views: 8309

Re: Linux Builds - Ground Zero

edit2 : Noticed a small issue when linking the testbed binary, it automatically chooses the .so (since that has precedence) which means that the library must be available in your LD_LIBRARY_PATH when running the testbed. The easiest sollution is to copy the corresponding version of libbox2d.so to /...
by kavaler
Wed Feb 11, 2009 9:32 pm
Forum: Build Issues
Topic: Linux Builds - Ground Zero
Replies: 27
Views: 8309

Re: Linux Builds - Ground Zero

As BorisTheBrave mentioned, an alternative way to handle makefiles and the files that they generate is to put them all under a single directory. To that end, I've rewritten the makefiles to run from a single directory: Build/gnumake. I've attached those makefiles. Just untar them at the root. To run...
by kavaler
Wed Feb 11, 2009 2:17 pm
Forum: Build Issues
Topic: Linux Builds - Ground Zero
Replies: 27
Views: 8309

Re: Linux Builds - Ground Zero

Here is a patch file that contains some of the other patches and code added in the wiki. It contains: 1. The "make install" patch. You can run make install from either to top level directory or from Source. Currently installs into /usr/local/ but you can change that in Source/Makefile. Onl...
by kavaler
Wed Feb 11, 2009 4:30 am
Forum: Build Issues
Topic: Linux Builds - Ground Zero
Replies: 27
Views: 8309

Re: Linux Builds - Ground Zero

Since I wrote the makefiles let me tell you why I designed them the way they are. 1. To support development of box2d applications and box2d itself. This is why the makefiles automatically generate dependency files and why the code is built in place with relative paths. I have actually built about 10...
by kavaler
Sun Feb 01, 2009 12:34 am
Forum: Build Issues
Topic: Linux (Ubuntu) Intalling Problems and Guide !!
Replies: 18
Views: 7889

Re: Linux (Ubuntu) Intalling Problems and Guide !!

The executable for the testbed ends up in Examples/TestBed/Gen/float/testbed for the floating point version and Examples/TestBed/Gen/fixed/testbed for the fixed point version. I would recommend using only the floating point version. The libraries end up in Source/Gen/float/libbox2d.a and Source/Gen/...
by kavaler
Sat Jan 31, 2009 11:32 pm
Forum: Build Issues
Topic: Linux (Ubuntu) Intalling Problems and Guide !!
Replies: 18
Views: 7889

Re: Linux (Ubuntu) Intalling Problems and Guide !!

I think that libgl, libglu, and libglut are all different things. Freeglut is an implementation of libglut that was included in the Contrib directory for your convenience. You might be able to use other instances of glut, but the one in Contrib seems to work well enough for the testbed application. ...
by kavaler
Sat Jan 31, 2009 11:04 pm
Forum: Build Issues
Topic: Linux (Ubuntu) Intalling Problems and Guide !!
Replies: 18
Views: 7889

Re: Linux (Ubuntu) Intalling Problems and Guide !!

In order to compile the Testbed you need to have OpenGL development installed (libGL and libGLU and related files in /usr/include/GL). OpenGL is not part of box2d. On my fedora release these two specific rpms are required: mesa-libGLU-devel-7.2-0.15.fc10.i386 mesa-libGL-devel-7.2-0.15.fc10.i386 I do...
by kavaler
Sat Jan 31, 2009 10:04 pm
Forum: Build Issues
Topic: Linux (Ubuntu) Intalling Problems and Guide !!
Replies: 18
Views: 7889

Re: Linux (Ubuntu) Intalling Problems and Guide !!

It looks like the patch was not applied properly. Did you run "patch -p0" (the 0 is a zero). I can tell because the command for compiling freeglut is missing the "-I." which is the thing I added in the patch. Specifically cc -g -O2 -DTARGET_HOST_UNIX_X11 -DHAVE_FCNTL_H -DHAVE_SYS...
by kavaler
Sat Jan 31, 2009 7:38 pm
Forum: Build Issues
Topic: Linux (Ubuntu) Intalling Problems and Guide !!
Replies: 18
Views: 7889

Re: Linux (Ubuntu) Intalling Problems and Guide !!

There is a problem with the way that GL/freeglut.h is included. Here is a patch file to fix the problem by making a small modification to the existing makefiles. You should be able to get a working Testbed by: 1. Check out the current tree in SVN 2. Apply this patch by going to the top-level directo...

Go to advanced search