I’m trying to build Panda3d from source, on windows, using makepanda.py and the Visual C++ Toolkit 2003 which is downloadable from Microsoft for free.
This toolkit provides a command line, optimizing compiler but it is missing some parts that you might expect, such as nmake, dumpbin, cvtres, some libraries, etc. I’ve managed to find all of these components from within other Microsoft distributions such as the platform SDK and the .NET sdk, apart from one lib msvcprt.lib, which I did find on the web (though I’m uncertain as to the legality of using it).
Halfway through my process, I found this thread here https://discourse.panda3d.org/viewtopic.php?t=326 which was helpful in locating that missing lib, and allowed me to continue.
So I installed the C++ toolkit. Then I installed the .NET sdk to obtain msvcrt.lib. I installed the Core part of the platform sdk (including the Win64 tools) to get cvtres.exe, lib.exe, and some other utils. I copied the needed parts into my toolkit’s directory structure, but you could simply add to your path and lib/include vars.
I also installed the Dx9 sdk and added it to my vars. I can run makepanda.bat and it progresses quite far now, but it dies because I am missing DirectX 8. I am utterly unfamiliar with directx, so I’m not sure what would be involved in altering the code to use Dx9 SDK instead. So, I searched for the DX8 sdk…I’ve been unable to find it from Microsoft, only Dx9.
I did find the required .lib file in an update package available on MS’s website, however that doesn’t give me the header files I need.
Update:
I did not find the DX8 sdk, however by editing makepanda.py such that it did not include dxgsg7 and dxgsg8 in the win32 build process, I did get makepanda to complete. I did not use helix, maya5, maya6, maya65, or miles.
After building, I’ve tested the samples and they seem to work just fine. So it appears that you CAN use the free Visual C++ toolkit 2003 and makepanda.bat to build Panda3d from the cmd prompt.
My big concern now is using msvcprt.lib which I found on the web (http://root.cern.ch/root/Procedure/Procedure%20to%20install%20the%20free%20Microsoft%20Visual%20C.htm), thanks to HughPerkins nice little wiki. I am uncertain as to whether this pollutes the method such that it is not truly “free”.
Further update:
Tonight I repeated the process on a clean machine, from scratch, but this time I replaced the version of python distributed with the source with 2.4.1 and built it using my modified makepanda.py. It seems to have worked fine. So far the samples seem to work. Time for bed.
So now I have what I wanted…a free way to build panda 3d from source with python 2.4.1. Now I just need to replace FMOD =)
-price