Building Bullet with mingw fails at 63%

Vaclav
Posts: 1
Joined: Fri Feb 22, 2013 7:02 am

Building Bullet with mingw fails at 63%

Post by Vaclav »

I'm trying to build bullet 2.81 with mingw.
What I do:
set GLUT_INCLUDE_DIR=c:\include\Glut
set INCLUDE=c:\include\Glut
(I've moved the Glut directory from bullet there)
cmake -G "MinGW Makefiles"
mingw32-make

It starts building and fails at 63% with message:

Code: Select all

[ 63%] Building RC object Demos/AllBulletDemos/CMakeFiles/AppAllBulletDemos.dir/
__/__/build/bullet.obj
gcc: error: and\: No such file or directory
gcc: error: Settings\p_\Desktop\bullet-2.81-rev2613\Extras\LibXML: No such file
or directory
gcc: error: and\: No such file or directory
gcc: error: Settings\p_\Desktop\bullet-2.81-rev2613\Extras\LibXML\include: No su
ch file or directory
D:\strawberry\c\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [Demos/AllBulletDemos/CMakeFiles/AppAllBulletDemos.dir/__/_
_/build/bullet.obj] Error 1
mingw32-make[1]: *** [Demos/AllBulletDemos/CMakeFiles/AppAllBulletDemos.dir/all]
 Error 2
mingw32-make: *** [all] Error 2
c0yote
Posts: 3
Joined: Thu Mar 28, 2013 3:55 pm

Re: Building Bullet with mingw fails at 63%

Post by c0yote »

I'm having the same problem. Working on a solution. I'll share it if I get it.
c0yote
Posts: 3
Joined: Thu Mar 28, 2013 3:55 pm

Re: Building Bullet with mingw fails at 63%

Post by c0yote »

So I got it to compile, but the libs are broken when you try to link them. I did manage a work around to get by until I sort it out some other way.

I was able to compile the ball drop example from the getting started section of the wiki by copying the source and building it with my code. To do this I directed my compiler to the following files and folders:

src/BulletCollision
src/BulletDynamics
src/LinearMath
src/btBulletCollisionCommon.h
src/btBulletDynamicsCommon.h
src/Bullet-C-Api.h

So like I said, I just compiled the library code into my executable and it runs.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Building Bullet with mingw fails at 63%

Post by Erwin Coumans »

We don't test against mingw, under Windows we expect most users to use Microsoft Visual Studio.

If you are using a non-standard compiler you are expected to solve the issues by yourself, that is the risk of using non-standard tools :)
I wonder what mingw tries to do with LibXML, there is no use of LibXML?
The CMakeLists.txt only includes the Extras/LibXML folder, but that doesn't exist anymore. It is some obsolete remainder, which shouldn't have any effect.
With respect to any glut errors: under Windows there is a glut bundled that only works with Visual Studio, so you have to modify cmake to use your own glut alternative for your compiler.

If you can make it work, please consider applying a patch and submit it in the http://bullet.googlecode.com issue tracker.
Thanks,
Erwin