Box2D Forums

It is currently Tue May 21, 2013 2:52 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Sep 29, 2011 9:56 pm 
Offline

Joined: Thu Sep 22, 2011 9:57 pm
Posts: 8
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?


Top
 Profile  
 
PostPosted: Fri Sep 30, 2011 1:01 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1515
Location: Tokyo
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


Top
 Profile  
 
PostPosted: Fri Sep 30, 2011 11:44 pm 
Offline

Joined: Thu Sep 22, 2011 9:57 pm
Posts: 8
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


Top
 Profile  
 
PostPosted: Sat Oct 01, 2011 12:56 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1515
Location: Tokyo
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


Top
 Profile  
 
PostPosted: Sat Oct 01, 2011 2:52 am 
Offline

Joined: Thu Sep 22, 2011 9:57 pm
Posts: 8
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 ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group