Compiling under Windows with MinGW

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 17
Joined: Sat Oct 19, 2002 2:03 pm
Location: Massachusetts, USA

Compiling under Windows with MinGW

Post by Oso » Fri Oct 22, 2004 2:13 pm

My short term goal is to publish an up-to-date doc on how to compile using MinGW (as opposed to Cygwin). I've read all the available doc and managed to pretty much compile all the Blender code. My problem is trying to link the Blender executable.

Code: Select all

 ****> Link /home/mmiddlet/2.34/blender/obj/windows/bin/blender.exe
 g++ -DNDEBUG -O2 -DBUILD_DATE='"2004-10-21"' -DBUILD_TIME='"07:26:53"' -
DBUILD_PLATFORM='"windows"' -DBUILD_TYPE='"dynamic"' 
/home/mmiddlet/2.34/blender/source/creator/buildinfo.c -c -o 
/home/mmiddlet/2.34/blender/obj/windows/buildinfo.o -DNAN_BUILDINFO
winbuildinfo.h: No such file or directory
make[1]: *** [/home/mmiddlet/2.34/blender/obj/windows/bin/blender.exe] Error 1
> make: *** [all] Error 1
I don't seem to have a winbuildinfo.h file anywhere. BTW, in order to minimze my pain in starting the process, I decided to try re-building Blender 2.34 by checking out all the code with the blender-2-34-release tag. I thought that should pretty much compile out of the box. Alas, I have the exact same problem in that code tree. Any suggestions?

Posts: 0
Joined: Fri Apr 16, 2004 4:11 pm

Post by Kenden » Tue Nov 09, 2004 11:57 am

Hi Oso,

I'd be very interested to see a doc on how to compile with MinGW, great to read you want to create one!

When using scons, the winbuildinfo.h is created by scons:
See blender/Sconstruct, you have:

if sys.platform=='win32':
build_info_file = open("source/creator/winbuildinfo.h", 'w')
build_info_file.write("char *build_date=\"%s\";\n"%build_date)
build_info_file.write("char *build_time=\"%s\";\n"%build_time)
build_info_file.write("char *build_platform=\"win32\";\n")
build_info_file.write("char *build_type=\"%s\";\n"%build_type)

This file is needed afterwards (in some cases) in source/creator/buildinfo.c

With make, I don't think this file gets created... maybe there's something missing?

Posts: 0
Joined: Fri Apr 16, 2004 4:11 pm

Post by Kenden » Wed Nov 10, 2004 12:03 pm

I had missed your mail in the mailling list...

See "Compiling under Windows with MinGW:" in: ... hread.html

It still would be nice to have a tutorial about mingw!:)

Post Reply