Box2D 2.2.1 and CodeBlocks/MinGW

Hi,

i have tried to compile box2d 2.2.1 with codeblocks 10.05 on Win7

Anyone had success with this?

What i have done:
* Installed CMake 2.8.5
* Put the bin folder of mingw into system path environment variable
* Run CMake, selected CodeBlocks/MinGW and specified the path
* CMake didn't find the codeblocks bin, so i specified this manually
* Configure
* Generate

No Errors:

Code:
Configuring done
Generating done


Then i start CodeBlocks, select either build target all or HelloWorld and Build, but it doesn't do anything:

Code:
-------------- Build: HelloWorld in Box2D ---------------

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile HelloWorld' in 'C:\...\Box2D-build' failed.
Nothing to be done.


I have also tried on another system, to build it with plain msys/mingw, but there is almost the same problem. All it does is printing a little System Information (Windows XP... bla) when typing make

I searched the forum and seems somebody out there has a project file for CodeBlocks, but its not for the current Box2D

Any ideas?
You could try the project files for 2.2.0 here: http://www.iforce2d.net/b2dtut/setup-windows
I don't think any significant file changes were made between 2.2.0 and 2.2.1

Otherwise, the projects are pretty simple to make yourself:
http://stackoverflow.com/questions/6976 ... 62#6977162
thank you, 2.2.0 did work, at least for the library itself, not the testbed, but can live with that, developing on linux anyway
I use Linux too unless I absolutely have to use something else (iPhone dev grrrr..!!)
If you are not emotionally attached to Code:blocks I might suggest trying Qt creator which is a superb IDE, also cross-platform and free. It can read cmake config files so you don't need to manually set up any project at all. To get the testbed running you would:

Open the file CMakeLists.txt in the source code's main folder.
Click: Next, Run CMake, Finish.
Under the Build menu, choose "Open Build/Run Target Selector" and change the Run target from HelloWorld to Testbed.
Press Ctrl-R to run, or F5 to debug.

If you want to switch the build type between debug and release, choose Run CMake from the Build menu and set one of these in the 'arguments' field:
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_BUILD_TYPE=Release
great hint, thanx, i have to check this, i just need some way to port my sfml/box2d stuff to windows, will give qtcreator a try, but on the linux side i prefer bash+vim+make as my development environment 😉

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