You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: INSTALL
+32-16
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ cd build
19
19
cmake .. # ".." refers to the parent directory of "build"
20
20
make
21
21
make install
22
-
Note: This will make changes to /usr/bin, and you have to either run "sudo make install" instead, or log in as root.
22
+
23
+
Note: This will make changes to /usr/bin, and you have to either run "sudo make install" instead, or log in as root.
23
24
Note: Wizard Mode is disabled by default. To enable it run:
24
25
25
26
mkdir build
@@ -40,19 +41,19 @@ like this: CMAKE_CXX_FLAGS="-DFELIST_WAITKEYUP"
40
41
41
42
Under DOS:
42
43
43
-
If you have DJGPP 2.03+ and gcc 2.952+
44
-
installed, type:
44
+
If you have DJGPP 2.03+ and gcc 2.952+ installed, type:
45
45
46
46
make -f ivandj.mak
47
47
48
48
--------------------------------------
49
49
50
-
Under Windows - Microsoft Visual Studio 2017 (or better):
50
+
Under Windows - Microsoft Visual Studio 2022:
51
51
52
-
You will need to install the C++ tools with CMake support, along with Git integrations from the Visual Studio Installer.
53
-
We will not be using Visual Studio in the traditional way with everything squished into a solution file.
54
-
Instead we will use Visual Studio to open a repo folder with a top-level CMakeLists.txt, in conjunction with a CMakeSettings.json file to create the cmake build files.
55
-
Then we will use msvc to compile ivan.exe, with the help of libraries we install from vcpkg using Powershell (PS).
52
+
You will need to install the C++ tools with CMake support, along with Git integrations from the Visual Studio Installer.
53
+
We will not be using Visual Studio in the traditional way with everything squished into a solution file.
54
+
Instead we will use Visual Studio to open a repo folder with a top-level CMakeLists.txt, in conjunction with
55
+
a CMakeSettings.json file to create the cmake build files.
56
+
Then we will use msvc to compile ivan.exe, with the help of libraries we install from vcpkg using Powershell (PS).
56
57
57
58
Install vcpkg and install the needed libraries using Powershell:
58
59
Here is a condensed summary of applicable instructions from https://github.com/microsoft/vcpkg
@@ -76,15 +77,16 @@ zlib:x86-windows 1.2.11-5 A compressio
76
77
77
78
Clone attnam/ivan into a directory (for example C:\Users\yourname\source\repos\ivan)
78
79
79
-
Open Microsoft Visual Studio (2017)
80
+
Open Microsoft Visual Studio 2022
80
81
81
82
Go File->Open Folder
82
83
83
84
Select C:\Users\yourname\source\repos\ivan
84
85
85
86
Some stuff will happen automatically. The CMakeSettings.json file will be found, and the CMake cache will be generated.
86
87
87
-
Next to the green "play" button is some text (Select Startup Item...) in a gray dropdown menu. Select "ivan.exe (Install) (ivan\ivan.exe)".
88
+
Next to the green "play" button is some text (Select Startup Item...) in a gray dropdown menu.
89
+
Select "ivan.exe (Install) (ivan\ivan.exe)".
88
90
89
91
"Build" will appear in the menu next to "CMake". Click Build->ivan.exe (Install) (ivan\ivan.exe) F7
90
92
@@ -93,6 +95,14 @@ This will build ivan.exe and install all the components, automatically copying t
93
95
The build folder is located in C:\Users\yourname\CMakeBuilds\some-long-code-here-abcdef123456\install\x86-Release\ivan
94
96
Go there and hit ivan.exe, and you're playing IVAN built using Microsoft Visual Studio!!!
95
97
98
+
--------------------------------------
99
+
100
+
Under Windows - Microsoft Visual Studio OTHER THAN 2022:
101
+
102
+
Instructions are the same as for Microsoft Visual Studio 2022, except that you must open CMakeSettings.json
103
+
in the project folder and change the generator to your version of VS. For example:
104
+
105
+
"generator": "Visual Studio 15 2017"
96
106
97
107
--------------------------------------
98
108
@@ -136,11 +146,13 @@ Follow instructions on the page to install correctly.
136
146
137
147
Run MSYS2.exe from either the "-msys64" or "-msys32" folder, depending on your system, and type these commands
138
148
$ pacman -Syu
139
-
Proceed with installation (option Y), then exit by closing the terminal window. The terminal window will crash and burn eventually but may take some time to do so.
149
+
Proceed with installation (option Y), then exit by closing the terminal window.
150
+
The terminal window will crash and burn eventually but may take some time to do so.
140
151
141
152
Run MSYS2.exe again:
142
153
$ pacman -Su
143
-
proceed with installation (option Y). This will take a long time to download all the packages, depending on your download speed
154
+
Proceed with installation (option Y).
155
+
This will take a long time to download all the packages, depending on your download speed.
Navigate to \ivan\inst_msys2\ivan and you will find the ivan.exe executable!
172
185
173
-
You will probably need to copy a bunch of DLLs into the directory where ivan.exe is located. These may include the following, likely not an exhaustive list, but they can be found under for example C:\-msys64\mingw32\bin:
186
+
You will probably need to copy a bunch of DLLs into the directory where ivan.exe is located. These may include
187
+
the following, likely not an exhaustive list, but they can be found under for example C:\-msys64\mingw32\bin:
174
188
libpng16-16.dll
175
189
libstdc++-6.dll
176
190
libwinpthread-1.dll
@@ -180,7 +194,9 @@ libSDL2_mixer-2-0-0.dll
180
194
libmad-0.dll
181
195
182
196
183
-
Use dependencywalker if you need to check for missing libraries, and if you get the message: "error cannot find entrypoint inflateValidate (in dll libpng16-16.dll)" then you need to include zlib1.dll
197
+
Use dependencywalker if you need to check for missing libraries, and if you get the message:
198
+
"error cannot find entrypoint inflateValidate (in dll libpng16-16.dll)"
0 commit comments