How to debug with Visual Studio 2010?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
malCanDo
Posts: 1
Joined: Mon Oct 21, 2002 1:44 pm
Location: Ireland
Contact:

How to debug with Visual Studio 2010?

Post by malCanDo » Sat May 01, 2010 3:25 pm

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

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Sat May 01, 2010 4:22 pm

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?

derethor
Posts: 0
Joined: Mon May 03, 2010 2:35 pm

Post by derethor » Mon May 03, 2010 2:42 pm

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.

derethor
Posts: 0
Joined: Mon May 03, 2010 2:35 pm

Post by derethor » Mon May 03, 2010 4:38 pm

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)

derethor
Posts: 0
Joined: Mon May 03, 2010 2:35 pm

Post by derethor » Wed May 05, 2010 4:46 pm

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

rockus123
Posts: 0
Joined: Sat Jul 04, 2009 1:31 am

Post by rockus123 » Sun Oct 03, 2010 3:00 pm

derethor,

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

Thanks.

Post Reply