[SOLVED] How to build using MinGW/msys

handuel

12-03-2013 21:07:52

I have successfully set up Ogre and bullet on my windows box. However I'm having trouble with the Ogrebullet bindings. The only method for building on windows seems to be to use visual c++, which I can't install due to lack of administrator rights on my windows partition. I have tried running autogen.sh in msys to give me a configure script, but it outputs this:
libtoolize: $pkgltdldir is not a directory: `/mingw/share/libtool'
Running aclocal
Can't locate Automake/Config.pm in @INC (@INC contains: /mingw/share/automake-1.11 /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/m
sys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /bin/aclocal-1.11 line 37.
BEGIN failed--compilation aborted at /bin/aclocal-1.11 line 37.
Running autoheader
Can't locate Autom4te/ChannelDefs.pm in @INC (@INC contains: /mingw/share/autoconf /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/m
sys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /bin/autoheader-2.68 line 42.
BEGIN failed--compilation aborted at /bin/autoheader-2.68 line 42.
Running automake
Can't locate Automake/Struct.pm in @INC (@INC contains: /mingw/share/automake-1.11 /usr/lib/perl5/5.8/msys /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/msys /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/m
sys /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at /bin/automake-1.11 line 47.
BEGIN failed--compilation aborted at /bin/automake-1.11 line 47.
/bin/autoconf-2.68: line 501: /mingw/bin/autom4te-2.68: No such file or directory
/bin/autoconf-2.68: line 501: exec: /mingw/bin/autom4te-2.68: cannot execute: No such file or directory

AlexeyKnyshev

13-03-2013 14:38:28

You shouldn't use autogen.sh due to specific Linux related commands in it. If you are using mingw you can try my CMake building scripts. Take a look at this: http://www.ogre3d.org/addonforums/viewtopic.php?f=12&t=29846. If you will face troubles feel free to ask me about it.

handuel

15-03-2013 20:46:49

Yep, worked perfectly. Thanks. Any chance you could make the thread about your cmake files a sticky, as I'm sure there are lots of people that would find it usefull.

AlexeyKnyshev

16-03-2013 06:24:53

Yep, worked perfectly. Thanks. Any chance you could make the thread about your cmake files a sticky, as I'm sure there are lots of people that would find it usefull.

You are welcome! It's not very popular due to little activity around ogre-bullet pair. So most of all prefer physx-nxogre. On the other hand I have built demos successfully and ogrebullet is working like a charm in my project.

Take a look at it. It's something like wrapper-api around ogre/bullet/lua and so on. May be you will find it usable. There are some code snippets how to use ogrebullet and make simple scene with physics. http://bitbucket.org/alexeyknyshev/ve/src