Switch to VC2013 - Windows #39972

Closed
opened 2014-04-30 19:07:41 +02:00 by Thomas Dinges · 18 comments

Hi,
so I finally installed VC2013 Express on my computer. :P
http://www.microsoft.com/de-de/download/details.aspx?id=40787

Installation itself was smooth.

Blender compilation does not run out of the box though. I could not simply run this:

 python scons/scons.py -j8 BF_BITNESS=64 MSVS_VERSION=12.0

Scons complains that I dont have vc2013 installed. I think the issues is here, scons does not know vc2013.

 scons\scons-local\SCons\Tool\MSCommon\vc.py

Anyway, starting a x64 compile from the VC2013 command line prompt works, but I guess we need to patch the vc.py file too.

Apart from that, can we drop vc2012 specific checks in the code @shadowrom. I rather only have vc2008 and 2013 for now.
Once vc2013 runs smoothly for all of us, and once we survived the 2.71(a) release, I would also like to remove vc2008 support. I hate legacy stuff. ;)

Best regards,
Thomas

P.S: A big thanks to @MartijnBerger and @JurgenHerrmann for all your work, we are finally close. :)

Hi, so I finally installed VC2013 Express on my computer. :P http://www.microsoft.com/de-de/download/details.aspx?id=40787 Installation itself was smooth. Blender compilation does not run out of the box though. I could not simply run this: ``` python scons/scons.py -j8 BF_BITNESS=64 MSVS_VERSION=12.0 ``` Scons complains that I dont have vc2013 installed. I think the issues is here, scons does not know vc2013. ``` scons\scons-local\SCons\Tool\MSCommon\vc.py ``` Anyway, starting a x64 compile from the VC2013 command line prompt works, but I guess we need to patch the vc.py file too. Apart from that, can we drop vc2012 specific checks in the code @shadowrom. I rather only have vc2008 and 2013 for now. Once vc2013 runs smoothly for all of us, and once we survived the 2.71(a) release, I would also like to remove vc2008 support. I hate legacy stuff. ;) Best regards, Thomas P.S: A big thanks to @MartijnBerger and @JurgenHerrmann for all your work, we are finally close. :)
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Author
Owner

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges
jrp commented 2014-05-01 00:18:34 +02:00 (Migrated from localhost:3001)

Added subscriber: @jrp

Added subscriber: @jrp
jrp commented 2014-05-01 00:18:34 +02:00 (Migrated from localhost:3001)

Problem with dropping VC 2012 is that it is needed for CUDA, at least until the summer.

Problem with dropping VC 2012 is that it is needed for CUDA, at least until the summer.
Author
Owner

We only need an older vc installed for CUDA, not for Blender itself.

We only need an older vc installed for CUDA, not for Blender itself.
Member

Added subscriber: @MartijnBerger

Added subscriber: @MartijnBerger
Member

@jrp,

"Problem with dropping VC 2012 is that it is needed for CUDA, at least until the summer."

You can make cuda perfectly happy with the Windows 7.1 SDK + updates ( == visual studio 2010 era cl.exe).
Thing is our cuda kernel does NOT contain any host code and since blender has its own GLEW like wrapper for cuda and dlopen's it the compiler used for cuda compilation and the compiler used to compile blender do not need to be the same anyway.

@jrp, "Problem with dropping VC 2012 is that it is needed for CUDA, at least until the summer." You can make cuda perfectly happy with the Windows 7.1 SDK + updates ( == visual studio 2010 era cl.exe). Thing is our cuda kernel does NOT contain any host code and since blender has its own GLEW like wrapper for cuda and dlopen's it the compiler used for cuda compilation and the compiler used to compile blender do not need to be the same anyway.
jrp commented 2014-05-02 00:47:54 +02:00 (Migrated from localhost:3001)

Are you saying that I don't need the CUDA SDK? When I cmake build, I get no CUDA renderer in cycles (as I do with OpenGL if I set the env variable, with no OpenCL SDK). I don't really want to add new compilers / Windows SDK's.

Are you saying that I don't need the CUDA SDK? When I cmake build, I get no CUDA renderer in cycles (as I do with OpenGL if I set the env variable, with no OpenCL SDK). I don't really want to add new compilers / Windows SDK's.
Member

@jrp well yes sort of.

you need cuda sdk to be able to compile a the rendering kernel. But building blender without it and then just adding the compiled kernel can still yield you with a working blender + cuda.
On non windows platforms blender even tries to compile the kernel at runtime if it cannot locate the cubin

@jrp well yes sort of. you need cuda sdk to be able to compile a the rendering kernel. But building blender without it and then just adding the compiled kernel can still yield you with a working blender + cuda. On non windows platforms blender even tries to compile the kernel at runtime if it cannot locate the cubin
Author
Owner

Added subscriber: @JurgenHerrmann

Added subscriber: @JurgenHerrmann
Author
Owner

Any updates here?
We should fix the remaining issues with vc2013, so that it compiles out of the box. I still have to start the compilation from the vc2013 command prompt. And we need docs on how to use CUDA 6.0 with this.

@JurgenHerrmann What about vc2012? ;)

Any updates here? We should fix the remaining issues with vc2013, so that it compiles out of the box. I still have to start the compilation from the vc2013 command prompt. And we need docs on how to use CUDA 6.0 with this. @JurgenHerrmann What about vc2012? ;)

Hi,

I dropped support for VS2012 in favor of VS2013.
So, yes, we can remove the VS2012 stuff in all parts of Blender except for cycles/cuda stuff.

Hi, I dropped support for VS2012 in favor of VS2013. So, yes, we can remove the VS2012 stuff in all parts of Blender except for cycles/cuda stuff.

Added subscriber: @mont29

Added subscriber: @mont29
Author
Owner

VS2012 code has been removed.

@MartijnBerger I still cannot build Blender with vc2013 from a regular cmd, have to launch it from the VC CMD (scons). Also I still hope for docs on how to use CUDA Toolkit 6.0. ;)

VS2012 code has been removed. @MartijnBerger I still cannot build Blender with vc2013 from a regular cmd, have to launch it from the VC CMD (scons). Also I still hope for docs on how to use CUDA Toolkit 6.0. ;)
Member

@ThomasDinges http://wiki.blender.org/index.php/User:Juicyfruit/Cuda_windows this is howto setup cuda on windows to work with msvc 2013 or with mingw or another unsupported compiler.

On building from regular cmd I think we need to better patch scons to really support msvc 2013

@ThomasDinges http://wiki.blender.org/index.php/User:Juicyfruit/Cuda_windows this is howto setup cuda on windows to work with msvc 2013 or with mingw or another unsupported compiler. On building from regular cmd I think we need to better patch scons to really support msvc 2013
Author
Owner

Thanks, I did not know that wiki link. :)

Yeah, I guess so too, we could also wait for the next scons version, which afaik adds support for it.

Thanks, I did not know that wiki link. :) Yeah, I guess so too, we could also wait for the next scons version, which afaik adds support for it.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Martijn Berger self-assigned this 2014-08-06 08:49:55 +02:00
Member

Even scons is updated.

Even scons is updated.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39972
No description provided.