开源3d引擎WildMagic4p7编译方法

来源:互联网 发布:新概念英语软件安卓版 编辑:程序博客网 时间:2024/04/30 00:47

看这个文件就行 WildMagic4p7/GeometricTools/WildMagic4/Wm4p7InstallationRelease.pdf

1.环境变量(1.3 Environment Variables)

   WM4_PATH     我的是      E:/TDDOWNLOAD/Code/WildMagic4p7/GeometricTools/WildMagic4/

   还有下面三个(要看Sample的话就需要)(1.6 Finding Windows Dynamic Link Libraries at Run-Time)

   WM4_PATH_BIN= E:/TDDOWNLOAD/Code/WildMagic4p7/GeometricTools/WildMagic4/Bin
   WM4_PATH_DEBUG_DLL= E:/TDDOWNLOAD/Code/WildMagic4p7/GeometricTools/WildMagic4/SDK/Library/DebugDLL
   WM4_PATH_RELEASE_DLL= E:/TDDOWNLOAD/Code/WildMagic4p7/GeometricTools/WildMagic4/SDK/Library/ReleaseDLL


   然后把上面三个加到Path里面(红色的加到现在的path后面就行了)
   PATH=<currentpath>;%WM4_PATH_BIN%;%WM4_PATH_DEBUG_DLL%;%WM4_PATH_RELEASE_DLL%

2.编译(3.1 Microsoft Windows Vista or XP with Visual Studio)
   在公司我的外网机上

E:/TDDOWNLOAD/Code/WildMagic4p7/GeometricTools/WildMagic4>Wm4Installer
The Wild Magic Installer must be executed from the WildMagic4 folder 
in
the GeometricTools distribution.  The usage 
is:
    Wm4Installer
        
-m [msvc80, msvc80e, msvc90, msvc90e]
        
-g [opengl, directx, soft]
        
-c [debug, debugdll, debugmem, release, releasedll, releasemem]
All options are required.  For example, to use Microsoft Visual C
++ 9.0,
OpenGL, 
static libraries, and release mode, you must execute:
    Wm4Installer 
-m msvc90 -g opengl -c release
The compiler location 
is looked up in the Windows Registry.  If it cannot
be found, the installer will display a message to that effect.


要用msvc80(vs2005)和directx生成debugdll,就是

E:/TDDOWNLOAD/Code/WildMagic4p7/GeometricTools/WildMagic4>Wm4Installer -m msvc80
 -g directx -c debugdll

原创粉丝点击