Error compling Blender 2.69 32 bit Windows

I’m getting this error when trying to compile Blender 2.69 for 32 bit Windows.

[ 24%] Building C object source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern
f.c: In function ‘RegisterBlendExtension’:
f.c:155:2: error: implicit declaration of function ‘IsWow64Process’ [-Werror=imp
IsWow64Process(GetCurrentProcess(), &IsWOW64);

I’m a tad rusty at coding since I haven’t done much for a very long time but it seems to me that it is trying to compile some 64 bit code instead of 32 bit?

I’m using the MingGW 32bit compiler and set up the make files with CMake. The compilation got to 24% complete before this error cropped up. I did try the 64bit compiler first but CMake kept saying it wanted to use the 32 bit compiler so I reconfigured everything for 32 bits.

I’m wondering if there is a tag in CMake that I should set/clear but there is nothing obvious.



After numerous reconfigurations and tests I gave up with the original winstuff.c and rewrote the section dealing with IsWow64Process using information from an MS dev site. So, that version compiles cleanly and I’m now up to about 90%.

Now the compiler is exiting with an unknown error so I’m back doing other stuff. Maybe I’ll have another go after Christmas.

I’m beginning to wonder if I am using the wrong compiler version.

I wish I could help but I use Linux. If you ever get brave enough to dump Windows then repost and I can walk you through it step by step.

wanna live dangerously and try to do a mingw crosscompile??

Just a heads up, 32-bit support has more or less ceased for Win at this point. DingTo was maintaining it, but it became too much of a hassle keeping libraries in sync, and 32-bit support is preventing a smooth transition away from MSVC2008. It’s orphaned.will likely go away completely by the end of 2014.

well if i still have a 32 system by the end of 2014 im in trouble.

Can you point my at somebody that has a known working setup for compiling win32??

I have a known working set up for compiling on win32. Using VS 2008 Express and cmake, which works pretty much out of the box. I had a look at using 2010 but hit roadblocks. My last mingw build was in Oct 2012.

can you pull tag 61055 and compile with the Cloth sewing patch??

I’m a bit noob with GIT. I created a branch and get these results when checking the patch

[email protected] /F/BlenderGIT/blender (master)
$ git checkout -b cloth
Switched to a new branch 'cloth'

[email protected] /F/BlenderGIT/blender (cloth)
$ git apply --stat f:/blender-cloth-patch-0.1.2-r61055.patch
 scripts/startup/bl_ui/ |   10 ++++
 blender/blenkernel/BKE_cloth.h                    |    7 ++
 blender/blenkernel/intern/cloth.c                 |   46 +++++++++++++++-
 blender/blenkernel/intern/implicit.c              |   13 ++++-
 blender/makesdna/DNA_cloth_types.h                |    6 ++
 blender/makesrna/intern/rna_cloth.c               |   59 +++++++++++++++++++++
 6 files changed, 131 insertions(+), 10 deletions(-)

[email protected] /F/BlenderGIT/blender (cloth)
$ git apply --check f:/blender-cloth-patch-0.1.2-r61055.patch
error: scripts/startup/bl_ui/ No such file or directory
error: blender/blenkernel/BKE_cloth.h: No such file or directory
error: blender/blenkernel/intern/cloth.c: No such file or directory
error: blender/blenkernel/intern/implicit.c: No such file or directory
error: blender/makesdna/DNA_cloth_types.h: No such file or directory
error: blender/makesrna/intern/rna_cloth.c: No such file or directory

I had svn up to when the change to git happened, the svn repo I have chucks a wobbly on that patch for rna_cloth.c

If you change the patch to GIT I’ll have a go from there.

bat you would have to do a svn pull of tag 61055 (the base for the patch) and compile that after doing the patch.

Hmm. I actually started to try and compile for 64 bit since I’ve been using 64 bit Blender for a while. But CMake, I think, kept saying it wanted to compile a 32 bit version so I thought I would try the 32 bit version first. Maybe not!

I’ve got an old copy of VS2005, but uninstalled, and I’d prefer to use open source. I don’t think I want to go back there.

I’m not a noob when it comes to writing software but there is obviously a configuration issue somewhere that I’m missing. To be honest I’m doing this out of curiosity rather than planning on doing serious work on Blender. I do have a couple of ideas for changing the interface that I would like to explore in slow time. Between modelling in Blender for my target application, writing Python scripts, and a bunch of other related stuff, there are not enough hours in the day (or night). :o)

And, yes, I do have have Linux (Ubuntu) installed within a VM Workstation client but my target application for Blender output is in Windows.

Thanks for the advice. You might see a little more of me within this forum in the future.


Ok, I finally managed to compile a 64 bit version for Windows. It’s only taken about 2 weeks but I wasn’t trying very hard!

Basically I was downloading the wrong compiler. The setup tool I finally used was mingw-builds-install.exe which allowed me to download the 4.7.0 64bit compiler. The posix threads version didn’t work but the Windows threads version did. This I expected but I thought I would try it anyway.

I nearly missed the message at the end about running “make install”. The compiler pumps out an awful lot of warnings but I assume there is an option somewhere to turn those off.

Running CMake is a little tricky and it seems that several runs are required before you get a clean analysis.