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
/winstuff.c.obj
D:\software_development\BlenderSVN\blender\source\blender\blenlib\intern\winstuf
f.c: In function ‘RegisterBlendExtension’:
D:\software_development\BlenderSVN\blender\source\blender\blenlib\intern\winstuf
f.c:155:2: error: implicit declaration of function ‘IsWow64Process’ [-Werror=imp
licit-function-declaration]
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.
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.
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.
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.