Error compiling Chipmunk on Code::Blocks

Official forum for the Chipmunk2D Physics Library.

Error compiling Chipmunk on Code::Blocks

Postby ron1ck » Tue Jul 21, 2015 5:33 pm

Hi, after trying to compile with Orwell Dev-C++ i try with Code::Blocks

Steps i've done:
1- Download from git repo
2- Uncompress file
3- Open the code::blocks file
4- Modified line #ifdef _WIN32
with: #if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
5- Added ../include and ../include/chipmunk to compiler and linker directories
6- Click on Rebuild
Build Messages:
||=== Build: Release in Chipmunk (compiler: GNU GCC Compiler) ===|
obj\Release\src\cpCollision.o:cpCollision.c|| undefined reference to `cpCheckSignedArea'|
obj\Release\src\cpCollision.o:cpCollision.c|| undefined reference to `cpCheckSignedArea'|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 35 second(s)) ===|


Thanks for Help :mrgreen:
ron1ck
 
Posts: 3
Joined: Tue Jul 21, 2015 2:33 pm

Re: Error compiling Chipmunk on Code::Blocks

Postby ron1ck » Tue Jul 21, 2015 11:43 pm

Ok. I got almost done. With pthread.h error :D

Steps:
1-Download Chipmunk 7.0.1
2-Download Code::Block last release
3-Download Cmake Gui
4-Create Code::Blocks MinGW MakeFiles with Cmake
*Uncheck demos and shared
*Point to codeblocks.exe
5-Open chipmunk.cpb
6-Build

Build Output
||=== Build: all in chipmunk (compiler: GNU GCC Compiler) ===|
C:\Files\Prog\Chipmunk\BCHipmunk\src\cpHastySpace.c|7|fatal error: pthread.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 36 second(s)) ===|


If someones knows how to fix that, thanks in andvance
ron1ck
 
Posts: 3
Joined: Tue Jul 21, 2015 2:33 pm


Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest

cron