The OSL libs aren’t included in the Blender trunk mingw64 libs; is that because it’s not possible to compile Blender with OSL support using MinGW-64, or is that just because compiling with MinGW-64 is considered somewhat “experimental?”
I wonder if I can simply use the lib/win64 OSL libs? Before going to all the trouble and potentially trying to troubleshoot something that may not be “troubleshoot-able”, I thought I’d ask here first.
So is it possible with MinGW-64? Should I use the win64 OSL libs?
Bump.
I tried compiling with OSL using mingw-64 and latest svn (rev 57414), and I’m getting errors only at the end when linking:
Scanning dependencies of target blender
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.obj
Linking CXX executable ..\..\bin\blender.exe
Creating library file: ..\..\bin\libblender.dll.a
..\..\lib\libbf_intern_cycles.a(blender_python.cpp.obj):blender_python.cpp:(.tex
t+0x1a27): undefined reference to `OSL::OSLQuery::OSLQuery()'
..\..\lib\libbf_intern_cycles.a(blender_python.cpp.obj):blender_python.cpp:(.tex
t+0x1ac9): undefined reference to `OSL::OSLQuery::~OSLQuery()'
..\..\lib\libbf_intern_cycles.a(blender_python.cpp.obj):blender_python.cpp:(.tex
t+0x2cb1): undefined reference to `OSL::OSLQuery::~OSLQuery()'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw3
2/bin/ld.exe: ..\..\lib\libbf_intern_cycles.a(blender_python.cpp.obj): bad reloc
address 0x2c8 in section `.data'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [bin/blender.exe] Error 1
mingw32-make[1]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
mingw32-make: *** [all] Error 2
C:\BlenderSVN\build_osl>
Is it just not possible to compile with OSL support with mingw-64, or is this an error with the osl libs or what?
Any help would be appreciated, I would like to put this build up on graphicall if I can get it working.
I wonder if I can simply use the lib/win64 OSL libs?
No, C++ libraries built with different compilers do usually not have a compatible ABI. I don’t know what the status of mingw support with OSL is, but there are (or have been) problems.
Ah, lame. That’s too bad, I was hoping to see at least a small speed-up in render time with OSL.