Panda3D Manual: Troubleshooting ppremake on WindowsThis page describes potential build issues that may arise when building Panda3D using the PPremake build system on the Windows platform, and possible solutions.
ppremake doesnt run (access violation 0xc0000005)The April/May 2005 version of Cygwin may have had an issue with getopt. Simply open config.h in the ppremake directory, replace "#define HAVE_GETOPT 1" with "#undef HAVE_GETOPT", then rerun "make" and "make install". invalid link option /DEBUG, when running makeThis error (or something similar) is caused by the make running Cygwin's link rather than your msvc link.exe. Simply rename /usr/bin/link to /usr/bin/_link, and rerun make. Building using Microsoft Visual C++ Toolkit 2003Basically follow the official build instructions, using Cygwin as configuration platform and Microsoft Visual C++ Toolkit 2003 as compiler (you have to pretty much, this is very close to the primary configuration they support). Pre-requisites:
The Panda source-code zip contains Python.
PATH=$PATH:"/cygdrive/f/Program Files/Microsoft Visual C++ Toolkit 2003/bin" PATH=$PATH:/usr/local/panda/bin PATH=$PATH:/usr/local/panda/lib PATH=$PATH:/cygdrive/f/dev/panda3d-1.0.2-cyg/thirdparty/win-python export CL=" /I\"F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\" " export CL="$CL /I\"F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\" " export CL="$CL /I\"F:\program Files\Microsoft SDK\include\" " export CL="$CL /I\"F:\Program Files\Microsoft DirectX 9.0 SDK\include\" " export CL="$CL /I\"F:\dev\panda3d-1.0.2-cyg\thirdparty\win-python\include\" " export LINK=" /LIBPATH:\"F:\Program Files\Microsoft Visual C++ Toolkit 2003\lib\" " export LINK="$LINK /LIBPATH:\"F:\Program Files\Microsoft Visual C++ Toolkit 2003\lib\" " export LINK="$LINK /LIBPATH:\"F:\Program Files\Microsoft SDK\lib\" " export LINK="$LINK /LIBPATH:\"F:\Program Files\Microsoft DirectX 9.0 SDK\lib\" " export LINK="$LINK /LIBPATH:\"F:\dev\panda3d-1.0.2-cyg\thirdparty\win-python\libs\" " export PANDA_ROOT='F:\Cygwin' export PYTHONPATH="f:\dev\panda3d-1.0.2-cyg\thirdparty\win-python;f:\cygwin\usr\local\panda\lib"
. /usr/local/panda/bin/setvars (note that there's a . at the start, and a space between the . and the rest of the command)
#define HAVE_DX
#define LIBBER lib with #define LIBBER link /lib
(These notes taken from: http://manageddreams.com/osmpwiki/index.php?title=Panda3D). © Carnegie Mellon University 2010 |