From faaa59f58bc7f85ec52735b385b6e538be8fa5da Mon Sep 17 00:00:00 2001 From: zmxhawrhbg Date: Mon, 30 Apr 2018 08:12:30 -0700 Subject: [PATCH 1/3] add some sort of building instructions --- buildingfirsttime.md | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 buildingfirsttime.md diff --git a/buildingfirsttime.md b/buildingfirsttime.md new file mode 100644 index 0000000..f4b63e4 --- /dev/null +++ b/buildingfirsttime.md @@ -0,0 +1,69 @@ +# Building Setup + +##### G3D is super delicate, meaning that you have to go about building in a special way + +1. Install Visual Studio 2005. [This link here](http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe) is a web installer, but it works. + +2. Download and install G3D from [this link here](https://sourceforge.net/projects/g3d/files/g3d-cpp/6.10/g3d-6_10_win32.exe/download). + +3. 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\bin` is under executable files + +* `g3d-6_10\include` is under include files + +* `g3d-6_10\bin` is under executable files + +* `g3d-6_10\win32-vc8-lib` is under library files + +* Ex: `C:\libraries\g3d-6_10\bin` + +4. Download SDL version 1.2.7 from [this link](http://www.libsdl.org/release/SDL-devel-1.2.7-VC6.zip) + +5. Extract the file to a folder on your computer. Keep note of this folder. + +6. 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) + +7. Download and install the [platform SDK](https://www.microsoft.com/en-us/download/details.aspx?id=6510). + +8. 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` + +9. Right click Source files -> Dialogs.rc -> View Code + +10. Edit line 10 to say +``` +#include "WinResrc.h" +#define IDC_STATIC -1 +``` + +instead of + +`#include "afxres.h"` + +11. Right click the project -> Properties -> Configuration Properties -> Linker -> Input, and add `AdvAPI32.lib` under Additional Dependencies. + +(Continue back here if you're skipping steps 7-11) + +12. Right click the project -> Properties -> Configuration Properties -> Linker -> General, and make sure Additional Library Directories is blank. + +13. 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,class std::allocator > 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! From ce66ec6f5d8b0bd213634a8d5d634254ff778b93 Mon Sep 17 00:00:00 2001 From: zmxhawrhbg Date: Mon, 30 Apr 2018 08:23:18 -0700 Subject: [PATCH 2/3] do some stuff to the file now it can properly exist --- buildingfirsttime.md => building.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) rename buildingfirsttime.md => building.md (59%) diff --git a/buildingfirsttime.md b/building.md similarity index 59% rename from buildingfirsttime.md rename to building.md index f4b63e4..93f11de 100644 --- a/buildingfirsttime.md +++ b/building.md @@ -2,11 +2,15 @@ ##### G3D is super delicate, meaning that you have to go about building in a special way +#### Skip to steps 7-13 if you have already built this program + 1. Install Visual Studio 2005. [This link here](http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe) is a web installer, but it works. +* The above link is for Visual Studio Express, which is faster to download and install. If you'd like to skip some steps, but have a slower download, get [Visual Studio Professional](https://archive.org/details/Microsoft_Visual_Studio_2005_180-Days_Trial) and skip steps 7-11. + 2. Download and install G3D from [this link here](https://sourceforge.net/projects/g3d/files/g3d-cpp/6.10/g3d-6_10_win32.exe/download). -3. Make sure G3D is included under your build directories by going under Tools -> Options -> Projects and Solutions -> VC++ Directories and check and see if +3. 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\bin` is under executable files @@ -30,7 +34,7 @@ * 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) +#### Steps 7-11 are optional if you are using Visual Studio Professional. Check the Error stuff section if it doesn't work, most reference steps from here. 7. Download and install the [platform SDK](https://www.microsoft.com/en-us/download/details.aspx?id=6510). @@ -40,18 +44,20 @@ Ex: `$(VCInstallDir)PlatformSDK\include` -> `C:\Program Files\Microsoft Platform 9. Right click Source files -> Dialogs.rc -> View Code 10. Edit line 10 to say -``` +```cpp #include "WinResrc.h" #define IDC_STATIC -1 ``` instead of -`#include "afxres.h"` +```cpp +#include "afxres.h" +``` 11. Right click the project -> Properties -> Configuration Properties -> Linker -> Input, and add `AdvAPI32.lib` under Additional Dependencies. -(Continue back here if you're skipping steps 7-11) +### Continue back here if you're skipping steps 7-11 12. Right click the project -> Properties -> Configuration Properties -> Linker -> General, and make sure Additional Library Directories is blank. @@ -60,10 +66,12 @@ instead of ## 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) +```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,class std::allocator > 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) +```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,class std::allocator > 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 +```.\Dialogs.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.``` > Perform steps 9-10 Enjoy! + +please report unfriendliness of this page From d810c213f6eae90e9185e4f147a42727fb134886 Mon Sep 17 00:00:00 2001 From: zmxhawrhbg Date: Mon, 30 Apr 2018 11:27:53 -0700 Subject: [PATCH 3/3] remove linkes --- building.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/building.md b/building.md index 93f11de..2d0c619 100644 --- a/building.md +++ b/building.md @@ -4,9 +4,7 @@ #### Skip to steps 7-13 if you have already built this program -1. Install Visual Studio 2005. [This link here](http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe) is a web installer, but it works. - -* The above link is for Visual Studio Express, which is faster to download and install. If you'd like to skip some steps, but have a slower download, get [Visual Studio Professional](https://archive.org/details/Microsoft_Visual_Studio_2005_180-Days_Trial) and skip steps 7-11. +1. Install Visual Studio 2005. Google where to find it. Make note of which version you downloaded. 2. Download and install G3D from [this link here](https://sourceforge.net/projects/g3d/files/g3d-cpp/6.10/g3d-6_10_win32.exe/download).