3.1 KiB
Building Setup
G3D is super delicate, meaning that you have to go about building in a special way
-
Install Visual Studio 2005. This link here is a web installer, but it works.
-
Download and install G3D from this link here.
-
Make sure G3D is included under your build directories by going under Tools -> Options -> Projects and Solutions -> VC++ Directories and check and see if
-
g3d-6_10\binis under executable files -
g3d-6_10\includeis under include files -
g3d-6_10\binis under executable files -
g3d-6_10\win32-vc8-libis under library files -
Ex:
C:\libraries\g3d-6_10\bin
-
Download SDL version 1.2.7 from this link
-
Extract the file to a folder on your computer. Keep note of this folder.
-
Include the extracted files by going to Tools -> Options -> Projects and Solutions -> VC++ Directories and adding the following links:
-
Include files - extractpath`include`
-
Library files - extractpath`lib`
-
Ex:
C:\libraries\SDL-1.2.7\bin
(The steps 7-11 are optional if you have installed Visual Studio Professional. If you used the link above, you are using express, but check step 9 if it doesn't work)
-
Download and install the platform SDK.
-
Put the platform SDK into your directories (Tools -> Options -> Projects and Solutions -> VC++ Directories) by replacing all mentions of $(VCInstallDir)PlatformSDK with the actual path. Ex:
$(VCInstallDir)PlatformSDK\include->C:\Program Files\Microsoft Platform SDK\Include -
Right click Source files -> Dialogs.rc -> View Code
-
Edit line 10 to say
#include "WinResrc.h"
#define IDC_STATIC -1
instead of
#include "afxres.h"
- Right click the project -> Properties -> Configuration Properties -> Linker -> Input, and add
AdvAPI32.libunder Additional Dependencies.
(Continue back here if you're skipping steps 7-11)
-
Right click the project -> Properties -> Configuration Properties -> Linker -> General, and make sure Additional Library Directories is blank.
-
Try building using Build -> Build G3DTest.
Error stuff
c:\libraries\g3d-6_10\include\G3D/platform.h(235) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory -> Download and install platform SDK (lines 7-8)
G3D-debug.lib(RegistryUtil.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "public: static bool __cdecl G3D::RegistryUtil::keyExists(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?keyExists@RegistryUtil@G3D@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) -> Add AdvAPI32.lib under Additional Dependencies (step 11)
.\Dialogs.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'. -> Perform steps 9-10
Enjoy!