[Bf-committers] Migrating Blender builds to Visual Studio 2010
Ok, First test with a fresh VC 2010 Build of version 56113 from SVN. I could measure a speed up of 4.13% in cycles compared to a build (56113) with 2008 and the libs from trunk. It was a simple scene of a character with some SSS and HDRI. I guess that is not much, but it's not a real benchmark just a test. I would like to do more testing on this to see if the OpenMP performance for physics is better or not. Until now VC2010 seems to have little benefit. I still have some library porting to do. But the build issues for OSL and OIIO are fixed now thanks to Brecht and Igritz on GitHub. Best regards Jürgen ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi There, I'm curious to know - did you investigate why it crashes on startup?, could you link to a stack-trace of the crash? Blender should be quite portable between different compilers so its strange this fails on new msvc. On Mon, Apr 15, 2013 at 10:38 PM, Jürgen Herrmann shadow...@me.com wrote: Hi there, after trying to build Blender on VC 2012 in the last weeks I came to the conclusion that with the current state of the Microsoft VC 2012 compiler it is merely impossible for me to provide a working build. Even if I get blender to compile without errors, blender crashes on startup. I am recently trying recompile the libs for VS 2010 x64 (x86 follows later). While doing this I'll replace outdated versions of the libs with newer ones. If all goes well I'll be done with the x64 libs by the end if this week and could provide a decent test build of Blender trunk using these libs. For compilation with this new build environment I'll have to change things in the CMakeLists.txt. If you like I could provide the libs and CMake adaptions to you for inclusion in SVN. Kind regards Jürgen Herrmann ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- - Campbell ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi. I have basic VC 2012 build working (without Cycles and other fancy stuff). Didn't get time around. Try to disable all extensions with external dependencies like Collada, OpenExr, translations, and even python. After it, you should be able to compile and run minimal Blender. Then try to recompile all dependencies. And VS 2012 seems to require: if(MSVC11) add_definitions(/D_ALLOW_KEYWORD_MACROS /DMS_WINDOWS) endif() in main CMakeList.txt line 998 Best, Alex On 4/15/2013 8:55 AM, Campbell Barton wrote: Hi There, I'm curious to know - did you investigate why it crashes on startup?, could you link to a stack-trace of the crash? Blender should be quite portable between different compilers so its strange this fails on new msvc. On Mon, Apr 15, 2013 at 10:38 PM, Jürgen Herrmann shadow...@me.com wrote: Hi there, after trying to build Blender on VC 2012 in the last weeks I came to the conclusion that with the current state of the Microsoft VC 2012 compiler it is merely impossible for me to provide a working build. Even if I get blender to compile without errors, blender crashes on startup. I am recently trying recompile the libs for VS 2010 x64 (x86 follows later). While doing this I'll replace outdated versions of the libs with newer ones. If all goes well I'll be done with the x64 libs by the end if this week and could provide a decent test build of Blender trunk using these libs. For compilation with this new build environment I'll have to change things in the CMakeLists.txt. If you like I could provide the libs and CMake adaptions to you for inclusion in SVN. Kind regards Jürgen Herrmann ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- - Campbell ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi Jürgen, first of all thanks for your work and the offer. I doubt that we can change to vc2010 so easily. If we would switch, we would need a couple of MSVC professional licences for the release builders, the build bot and core devs. Also, I rather not have yet another build system to support inside our cmake and scons files. We already have VC 2008 and MinGW. And I don't think 2010 gives us a lot (if any?) benefits over 2008 as well. And last but not least, if we do a migration, than I rather move to the latest one, rather than to 2010. Best regards, Thomas Am 15.04.2013 14:38, schrieb Jürgen Herrmann: Hi there, after trying to build Blender on VC 2012 in the last weeks I came to the conclusion that with the current state of the Microsoft VC 2012 compiler it is merely impossible for me to provide a working build. Even if I get blender to compile without errors, blender crashes on startup. I am recently trying recompile the libs for VS 2010 x64 (x86 follows later). While doing this I'll replace outdated versions of the libs with newer ones. If all goes well I'll be done with the x64 libs by the end if this week and could provide a decent test build of Blender trunk using these libs. For compilation with this new build environment I'll have to change things in the CMakeLists.txt. If you like I could provide the libs and CMake adaptions to you for inclusion in SVN. Kind regards Jürgen Herrmann ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Maybe it is important to check the nvidia toolkit page: citation: Table 1. Supported Windows Compilers (32-bit and 64-bit) Compiler IDE Visual C++ 10.0 Visual Studio 2010 Visual C++ 9.0Visual Studio 2008 see: http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html Maybe that is good to know ? cheers, Gaia On 15.04.2013 15:38, Thomas Dinges wrote: Hi Jürgen, first of all thanks for your work and the offer. I doubt that we can change to vc2010 so easily. If we would switch, we would need a couple of MSVC professional licences for the release builders, the build bot and core devs. Also, I rather not have yet another build system to support inside our cmake and scons files. We already have VC 2008 and MinGW. And I don't think 2010 gives us a lot (if any?) benefits over 2008 as well. And last but not least, if we do a migration, than I rather move to the latest one, rather than to 2010. Best regards, Thomas Am 15.04.2013 14:38, schrieb Jürgen Herrmann: Hi there, after trying to build Blender on VC 2012 in the last weeks I came to the conclusion that with the current state of the Microsoft VC 2012 compiler it is merely impossible for me to provide a working build. Even if I get blender to compile without errors, blender crashes on startup. I am recently trying recompile the libs for VS 2010 x64 (x86 follows later). While doing this I'll replace outdated versions of the libs with newer ones. If all goes well I'll be done with the x64 libs by the end if this week and could provide a decent test build of Blender trunk using these libs. For compilation with this new build environment I'll have to change things in the CMakeLists.txt. If you like I could provide the libs and CMake adaptions to you for inclusion in SVN. Kind regards Jürgen Herrmann ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi Jürgen, Do you know what are the benefits of using VC 2010? Is Blender faster? If there are no benefits for the end user, I don't see a reason to switch. Regarding CUDA, I really hope nVidia will release a new Toolkit soon, which brings some improvements and support for VC 2012, this would be great. Best regards, Thomas Am 15.04.2013 16:25, schrieb Jürgen Herrmann: Hi Thomas and Gaia, I tried the VS 2012 way before stepping down to 2010. Nvcc can be forced to work with VC 2012, but I don't consider this safe. VC 2012 express supports a good load of features previously only available in pro versions. Even OpenMP is in express now. But the compiler has several flaws. It crashes very often with normal optimization levels (O2 /Ob2). So I found porting to VC 2010 until MS brings patches for the compiler and nvidia brings VC 2012 support would make it a bit easier to take the step from 2010 to 2012 instead of 2008-2012 I would volunteer to take over support for the 2010 build system and do the porting to vs 2012 when applicable. Best regards Jürgen ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
By the way Thomas, I get a strange error when trying to compile OSL from scratch. Multiple error C2874: using-declaration causes a multiple declaration of 'std::tr1::shared_ptr' I just don't get the problem here :-( It seems that boost memory.hpp causes this problem. Do you have a tip on that? Best regards Jürgen Am 15.04.2013 um 16:36 schrieb Thomas Dinges blen...@dingto.org: Hi Jürgen, Do you know what are the benefits of using VC 2010? Is Blender faster? If there are no benefits for the end user, I don't see a reason to switch. Regarding CUDA, I really hope nVidia will release a new Toolkit soon, which brings some improvements and support for VC 2012, this would be great. Best regards, Thomas Am 15.04.2013 16:25, schrieb Jürgen Herrmann: Hi Thomas and Gaia, I tried the VS 2012 way before stepping down to 2010. Nvcc can be forced to work with VC 2012, but I don't consider this safe. VC 2012 express supports a good load of features previously only available in pro versions. Even OpenMP is in express now. But the compiler has several flaws. It crashes very often with normal optimization levels (O2 /Ob2). So I found porting to VC 2010 until MS brings patches for the compiler and nvidia brings VC 2012 support would make it a bit easier to take the step from 2010 to 2012 instead of 2008-2012 I would volunteer to take over support for the 2010 build system and do the porting to vs 2012 when applicable. Best regards Jürgen ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi Jürgen, I have not seen this error before. Maybe it's a boost version problem? We still use Boost 1.49 in SVN. Best regards, Thomas Am 15.04.2013 18:59, schrieb Jürgen Herrmann: By the way Thomas, I get a strange error when trying to compile OSL from scratch. Multiple error C2874: using-declaration causes a multiple declaration of 'std::tr1::shared_ptr' I just don't get the problem here :-( It seems that boost memory.hpp causes this problem. Do you have a tip on that? Best regards Jürgen Am 15.04.2013 um 16:36 schrieb Thomas Dinges blen...@dingto.org: Hi Jürgen, Do you know what are the benefits of using VC 2010? Is Blender faster? If there are no benefits for the end user, I don't see a reason to switch. Regarding CUDA, I really hope nVidia will release a new Toolkit soon, which brings some improvements and support for VC 2012, this would be great. Best regards, Thomas Am 15.04.2013 16:25, schrieb Jürgen Herrmann: Hi Thomas and Gaia, I tried the VS 2012 way before stepping down to 2010. Nvcc can be forced to work with VC 2012, but I don't consider this safe. VC 2012 express supports a good load of features previously only available in pro versions. Even OpenMP is in express now. But the compiler has several flaws. It crashes very often with normal optimization levels (O2 /Ob2). So I found porting to VC 2010 until MS brings patches for the compiler and nvidia brings VC 2012 support would make it a bit easier to take the step from 2010 to 2012 instead of 2008-2012 I would volunteer to take over support for the 2010 build system and do the porting to vs 2012 when applicable. Best regards Jürgen ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
[Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi Jürgen, Did you try http://www.microsoft.com/en-us/download/details.aspx?id=38188 over vanilla vs2012? see http://support.microsoft.com/kb/2797912 C++ part Regards Sergey ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Hi Sergey, Yes i've tried that one. Unfortunately this dies not fix the ICE Problem when compiling LLVM or libmv :-( Regards Jürgen Am 15.04.2013 um 21:40 schrieb Sergey Kurdakov sergey.fo...@gmail.com: Hi Jürgen, Did you try http://www.microsoft.com/en-us/download/details.aspx?id=38188 over vanilla vs2012? see http://support.microsoft.com/kb/2797912 C++ part Regards Sergey ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
Oh, I see... I thought updating to boost 1.53.0 would be a good idea. I'll try with 1.49 tomorrow. Thanks ;-) Von meinem iPhone gesendet Am 15.04.2013 um 20:34 schrieb Thomas Dinges blen...@dingto.org: Hi Jürgen, I have not seen this error before. Maybe it's a boost version problem? We still use Boost 1.49 in SVN. Best regards, Thomas Am 15.04.2013 18:59, schrieb Jürgen Herrmann: By the way Thomas, I get a strange error when trying to compile OSL from scratch. Multiple error C2874: using-declaration causes a multiple declaration of 'std::tr1::shared_ptr' I just don't get the problem here :-( It seems that boost memory.hpp causes this problem. Do you have a tip on that? Best regards Jürgen Am 15.04.2013 um 16:36 schrieb Thomas Dinges blen...@dingto.org: Hi Jürgen, Do you know what are the benefits of using VC 2010? Is Blender faster? If there are no benefits for the end user, I don't see a reason to switch. Regarding CUDA, I really hope nVidia will release a new Toolkit soon, which brings some improvements and support for VC 2012, this would be great. Best regards, Thomas Am 15.04.2013 16:25, schrieb Jürgen Herrmann: Hi Thomas and Gaia, I tried the VS 2012 way before stepping down to 2010. Nvcc can be forced to work with VC 2012, but I don't consider this safe. VC 2012 express supports a good load of features previously only available in pro versions. Even OpenMP is in express now. But the compiler has several flaws. It crashes very often with normal optimization levels (O2 /Ob2). So I found porting to VC 2010 until MS brings patches for the compiler and nvidia brings VC 2012 support would make it a bit easier to take the step from 2010 to 2012 instead of 2008-2012 I would volunteer to take over support for the 2010 build system and do the porting to vs 2012 when applicable. Best regards Jürgen ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers -- Thomas Dinges Blender Developer, Artist and Musician www.dingto.org ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers
Re: [Bf-committers] Migrating Blender builds to Visual Studio 2010
On 15.04.2013 16:36, Thomas Dinges wrote: Do you know what are the benefits of using VC 2010? Is Blender faster? If there are no benefits for the end user, I don't see a reason to switch. FWIW LuxRender saw a small but definite speedup (around 5-10% depending on scene) when switching to VC 2010. However the main reason to use VS 2010 would be the significantly improved IDE experience. It's night and day compared to VS 2008, IMHO. Just my 2 cents :) Cheers - Asbjørn ___ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers