Page 1 of 1

Error compiling Chipmunk on Code::Blocks

Posted: Tue Jul 21, 2015 5:33 pm
by ron1ck
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:

Re: Error compiling Chipmunk on Code::Blocks

Posted: Tue Jul 21, 2015 11:43 pm
by ron1ck
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