build problem

Building box2d seems pretty simple on code::blocks. I'm using netbeans, which is similar but I am getting an error with the makefile:

Code:
/usr/bin/make -f nbproject/Makefile-Default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Joseph/Documents/NetBeansProjects/Box2D'
cd C\:/Users/Joseph/Documents/NetBeansProjects/Box2D && /usr/bin/make -f Makefile
make[2]: Entering directory `/c/Users/Joseph/Documents/NetBeansProjects/Box2D'
make[2]: Makefile: No such file or directory
make[2]: *** No rule to make target `Makefile'.  Stop.
make[2]: Leaving directory `/c/Users/Joseph/Documents/NetBeansProjects/Box2D'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/c/Users/Joseph/Documents/NetBeansProjects/Box2D'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 235ms)


which I'm not really sure what to do about. So far all I really did was add Box2d as a project and attempt to build, is there anything else I need to do?
Another thing I am trying is to compile it using visual studio 2008 and use the .lib file etc in netbeans. However, the build guide (on wiki) is for 2.0.1 and just tells you to open "Box2D_v2.0.1\Box2D\Build\VC8" which doesn't exist...

found and followed the instructions [ usefull 🙂 ] and have compiled it in visual studio 2008, and have the testbed working, but it doesnt seem to have created a library file...

using cmake with MSYS and MinGW didnt seem to do anything (well, MSYS made a load of files in the build directory, but i had no idea what to do with them)
Compiled a .lib file but MinGW doesnt like it:

Quote:
g++.exe -Dmain=SDLmain -o dist/Debug/MinGW-Windows/welcome_1 build/Debug/MinGW-Windows/Window.o build/Debug/MinGW-
...
Windows/_ext/C_/Users/Joseph/Documents/NetBeansProjects/Welcome_1/Interface.o -lmingw32 -lSDLmain -lSDL.dll -lSDL_image -lSDL_ttf -lBox2D
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lBox2D


Seems to be working now, just need to work out how to test it
Hmm, getting an error:

Quote:
g++.exe -Dmain=SDLmain -o dist/Debug/MinGW-Windows/welcome_1 build/Debug/MinGW-Windows/Window.o build/Debug/MinGW-Windows/_ext/C_/Users/Joseph/Documents/NetBeansProjects/Welcome_1/Renderer2.o build/Debug/MinGW-
...
Windows/_ext/C_/Users/Joseph/Documents/NetBeansProjects/Welcome_1/Resource.o build/Debug/MinGW-Windows/_ext/C_/Users/Joseph/Documents/NetBeansProjects/Welcome_1/Interface.o -lmingw32 -lSDLmain -lSDL.dll -lSDL_image -lSDL_ttf -lBox2D
build/Debug/MinGW-Windows/_ext/C_/Users/Joseph/Documents/NetBeansProjects/Welcome_1/PhysicsEngine.o: In function `ZN13PhysicsEngineC2Ev':c:/Users/Joseph/Documents/NetBeansProjects/Welcome_1/PhysicsEngine.cpp:17: undefined reference to `b2World::b2World(b2Vec2 const&, bool)'
c:/Users/Joseph/Documents/NetBeansProjects/Welcome_1/PhysicsEngine.cpp:17: undefined reference to `b2World::~b2World()'


similar to this guy: http://www.box2d.org/forum/viewtopic.php?f=7&t=321 who did his libraries wrong, so it might be my library file. However, I remeber getting this error a while ago (it was a real pain and I cant remember what I did wrong) so could anyone tell me what if anything is wrong with this:

Code:
#include "PhysicsEngine.h"
#include "Box2D/Box2D.h"
#include "Box2D/Common/b2Math.h"
#include "Box2D/Dynamics/b2World.h"

PhysicsEngine::PhysicsEngine() {
    //create the world
    b2Vec2 gravity(0.0f, -10.0f);                              //makes this fine, no errors, which makes me think its not the libraries wrong
    bool doSleep = true;
    b2World world2(gravity, doSleep);                        //here be errors
    //world = new b2World(gravity,doSleep);
   
}
http://lists.trolltech.com/qt-interest/2006-02/thread00593-0.html

followed the instructions there to convert .lib to .a

This is getting stupid

Still doesnt work


I dont get why its fine with the vector stuff, b2Vec2... so its working with that part of the library, I can create a bodydef too, but not a b2World... so it cant be the library .lib or anything. I am at your mercy to spot what ive done wrong in my code...

Original thread: https://box2d.org/forum/viewtopic.php?t=4884