Page 1 of 1

How to debug with Visual Studio 2010?

Posted: Sat May 01, 2010 3:25 pm
by malCanDo
Hi there,

By using cmake and Visual Studio 2010, I have been able to build and run a release version of Blender ( I had to use cmake, as the default project solution files didn't work )

I disabled Collada, EXR and Quicktime using cmake.

I can successfully build, but the debug build crashes straight away.

Has anyone successfully built Blender 2.5 with 2010 before, or is anyone planning on doing it soon?

Mal

Posted: Sat May 01, 2010 4:22 pm
by stiv
I can successfully build, but the debug build crashes straight away.
The first thing to do is figure out why it is crashing - if it is.

Is the program failing to load because it cannot find debug versions of the .dlls?

It it throwing an access violation?

Posted: Mon May 03, 2010 2:42 pm
by derethor
same here (blender 2.5, win7 x64)

The program '[4036] blender.exe: Native' has exited with code -1072365566 (0xc0150002).

googling the returned code, it seems that some external dll must be recompiled for visual 2010

it guess that python311_d.dll is the problem, but i am not totally sure.

Posted: Mon May 03, 2010 4:38 pm
by derethor
derethor wrote:same here (blender 2.5, win7 x64)

The program '[4036] blender.exe: Native' has exited with code -1072365566 (0xc0150002).

googling the returned code, it seems that some external dll must be recompiled for visual 2010

it guess that python311_d.dll is the problem, but i am not totally sure.
exactly, i downloaded the source code for python 3.1, and converted the PCBuild solution. Compiled, and that returned error is gone. Now the crash is about python (it is compiled in multithreaded dll, and i spent 3 hours trying to change it to static without success)

Posted: Wed May 05, 2010 4:46 pm
by derethor
derethor wrote:
derethor wrote:same here (blender 2.5, win7 x64)

The program '[4036] blender.exe: Native' has exited with code -1072365566 (0xc0150002).

googling the returned code, it seems that some external dll must be recompiled for visual 2010

it guess that python311_d.dll is the problem, but i am not totally sure.
exactly, i downloaded the source code for python 3.1, and converted the PCBuild solution. Compiled, and that returned error is gone. Now the crash is about python (it is compiled in multithreaded dll, and i spent 3 hours trying to change it to static without success)

btw, it works now. Download the python source code, convert PCBuild to vs2010, and recompile the pythoncore project. Remove all the stuff about making build symbols. Just build the python dll, with a static linked crt. It is working atm.

After that, blender is working with visual studio 2010, and cmake 2.8.1

Posted: Sun Oct 03, 2010 3:00 pm
by rockus123
derethor,

Can you provide the detailed steps for the python compilation with msrt part?

Thanks.