Note that there are some explanatory texts on larger screens.

plurals
  1. POcompiling / linking blender for windows
    primarykey
    data
    text
    <p>I'm having problems linking blender for windows. I'm creating my makefiles using CMake and using the mimgw compiler (mingw32-g++.exe c++ compiler), and (mingw32-gcc.exe c compiler).</p> <p>I'm getting the source from<br> <a href="https://svn.blender.org/svnroot/bf-blender/trunk/blender" rel="nofollow">https://svn.blender.org/svnroot/bf-blender/trunk/blender</a><br> <a href="https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows" rel="nofollow">https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows</a><br> as specified in<br> <a href="http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Windows/MinGW/CMake" rel="nofollow">http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Windows/MinGW/CMake</a></p> <p>all the link errors are related to lib\windows\gcc<br> here are a few of them: </p> <p>lib\windows\gcc\tiff\lib/libtiff.a(tif_pixarlog.o):(.text+0x172d): undefined reference to `deflateInit_'</p> <p>lib\windows\gcc\openimageio\lib/libOpenImageIO.a(sysutil.cpp.obj):sysutil.cpp:(.text+0x32): undefined reference to `GetProcessMemoryInfo@12'</p> <p>lib\windows\gcc\openimageio\lib/libOpenImageIO.a(socketinput.cpp.obj):socketinput.cpp:(.text+0x45c2): undefined reference to `WSASetLastError@4'</p> <p>in my lib\windows\gcc\openimageio there's a batch file (oiio-build.bat) I'm guessing this was generated by CMake</p> <pre><code>cmake ..\oiio\src\ -G "MinGW Makefiles" ^ -DBUILDSTATIC=1 ^ -DBOOST_CUSTOM=0 ^ -DBOOST_ROOT=..\lib\windows\gcc\boost\ ^ -DBoost_USE_STATIC_RUNTIME=ON ^ -DLINKSTATIC=ON ^ -DILMBASE_HALF_LIBRARIES=..\lib\windows\gcc\openexr\lib\libHalf.a ^ -DILMBASE_IMATH_LIBRARIES=..\lib\windows\gcc\openexr\lib\libImath.a ^ -DILMBASE_ILMTHREAD_LIBRARIES=..\lib\windows\gcc\openexr\lib\libIlmThread.a ^ -DILMBASE_IEX_LIBRARIES=..\lib\windows\gcc\openexr\lib\libIex.a ^ -DOPENEXR_ILMIMF_LIBRARIES=..\lib\windows\gcc\openexr\lib\libIlmImf.a ^ -DILMBASE_INCLUDE_DIR=..\lib\windows\gcc\openexr\include ^ -DOPENEXR_INCLUDE_DIR=..\lib\windows\gcc\openexr\include ^ -DZLIB_INCLUDE_DIR=..\lib\windows\zlib\include ^ -DZLIB_LIBRARY=..\lib\windows\zlib\lib\libz.a ^ -DPNG_LIBRARY=..\lib\windows\png\lib\libpng.a ^ -DPNG_PNG_INCLUDE_DIR=..\lib\windows\png\include ^ -DJPEG_LIBRARY=..\lib\windows\jpeg\lib\libjpeg.lib ^ -DJPEG_INCLUDE_DIR=..\lib\windows\jpeg\include ^ -DTIFF_LIBRARY=..\lib\windows\tiff\lib\libtiff.lib ^ -DTIFF_INCLUDE_DIR=..\lib\windows\tiff\include ^ -DCMAKE_INSTALL_PREFIX=..\lib\windows\gcc\openimageio ^ -DUSE_OPENGL=OFF ^ -DUSE_TBB=OFF ^ -DUSE_FIELD3D=OFF ^ -DUSE_QT=OFF ^ -DUSE_PYTHON=OFF ^ -DCMAKE_BUILD_TYPE=Release mingw32-make install </code></pre> <p>turns out lib\windows\gcc\oiio does not exist.</p> <p>Edit: trying to compile blender 2.71 with scons, I figured out that if I don't run python from the blender folder, I get the <em>*</em> No SContruct file found. error</p> <p>so</p> <p>with python26\python.exe scons/scons.py I get </p> <pre><code>ValueError: zero length field name in format: File "D:\blender-source\blender\SConstruct", line 54: EnsureSConsVersion(1,0,0) File "D:\blender-source\blender\scons\scons-local\SCons\Script\SConscript.py", line 607: env = self.factory() File "D:\blender-source\blender\scons\scons-local\SCons\Script\SConscript.py", line 587: default_env = SCons.Defaults.DefaultEnvironment() File "D:\blender-source\blender\scons\scons-local\SCons\Defaults.py", line 88: _default_env = SCons.Environment.Environment(*args, **kw) File "D:\blender-source\blender\scons\scons-local\SCons\Environment.py", line 1003: apply_tools(self, tools, toolpath) File "D:\blender-source\blender\scons\scons-local\SCons\Environment.py", line 107: env.Tool(tool) File "D:\blender-source\blender\scons\scons-local\SCons\Environment.py", line 1787: tool(self) File "D:\blender-source\blender\scons\scons-local\SCons\Tool\__init__.py", line 183: self.generate(env, *args, **kw) File "D:\blender-source\blender\scons\scons-local\SCons\Tool\default.py", line 41: SCons.Tool.Tool(t)(env) File "D:\blender-source\blender\scons\scons-local\SCons\Tool\__init__.py", line 183: self.generate(env, *args, **kw) File "D:\blender-source\blender\scons\scons-local\SCons\Tool\dmd.py", line 131: env['DLIBCOM'] = '$DLIB $_DLIBFLAGS {} $TARGET $SOURCES $_DLIBFLAGS'.format('-c' if env['PLATFORM'] == 'win32' else '') </code></pre> <p>with python27\python.exe scons/scons.py I get </p> <pre><code>scons: warning: VC version 12.0 not installed. C/C++ compilers are most likely not set correctly. Installed versions are: ['9.0'] File "D:\blender-source\blender\SConstruct", line 143, in &lt;module&gt; WindowsError: [Error 2] The system cannot find the file specified: File "D:\blender-source\blender\SConstruct", line 207: opts.Update(env) File "D:\blender-source\blender\scons\scons-local\SCons\Variables\__init__.py", line 173: exec open(filename, 'rU').read() in {}, values File "&lt;string&gt;", line 3: None File "c:\python27\lib\subprocess.py", line 710: errread, errwrite) File "c:\python27\lib\subprocess.py", line 958: startupinfo) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload