Getting fatal error C1083 when building Blender on Win XP using MSVS/Scons

Hi guys,

I have been doing builds for the last few years with no difficulty. BUT yesterday I updated all the necessary and started a build in MSVS 2010 exp ( I also have MSVS 2008 installed ).

I added python scons\scons.py at the cmd prompt. Then it eventually stops at this:

Compiling ==> ‘FLUID_3D.cpp’
FLUID_3D.cpp
intern\smoke\intern\FLUID_3D.cpp(38) : fatal error C1083: Cannot open include fi
le: ‘omp.h’: No such file or directory
scons: *** [C:\builds\build\win32-vc\intern\smoke\intern\FLUID_3D.obj] Error 2
scons: building terminated because of errors.

Is this happening with anybody else? Is this a bug for the bug tracker??

I updated today, same thing. Also last night I cleaned out my whole build folder and reset all that up. Still same error.

Aidan

Already replied through e-mail, but answering here too, in case someone bumps into the same error.

OpenMP support was enabled some week or two ago since a fresh checkout should build as release without any changes.

OpenMP is available only in Pro-versions of VS, so in your user-config.py add

WITH_BF_OPENMP=False

/Nathan

Hi Guys,

For any others coming this way - I have this resolved thanks totally to Nathan.

I emailed him about this issue, he responded with:

"You need now to manually disable OpenMP-support, as that’s available
only for pro versions of VS. OpenMP support was enabled by default
recently, since a checkout should build pretty much unchanged as a
release build.

In your user-config.py add: WITH_BF_OPENMP=False"

By adding this to my config file inside my build folder and inside the /blender folder - it sorted this issue.

The config file is called user-config.py. Its contents are:

WITH_BF_FFMPEG = True
WITH_BF_OPENAL = True
WITH_BF_GAMEENGINE = True
WITH_BF_PLAYER = True
WITH_BF_JACK = True
WITH_BF_SDL = True
WITH_BF_ICONV = True
WITH_BF_COLLADA = True
WITH_BUILDINFO = True
WITH_BF_OPENMP=False ( <== the line Nathan talked of )
BF_DEBUG = False
BF_NUMJOBS = 1

So inside your build folder there is a folder called BLENDER. Inside this you can have a file called user-config.py - Add the above contents to this file OR if you have this file already add the line Nathan suggested and all should be OK.

Cheers
Aidan

OH LOOK, Nathan replied here too, while I was writing this reply :smiley:

Thanks again Nathan

I was just writing a “Dummies Guide” version :smiley:

Aidan