|
19 | 19 | Ubuntu 18.04 build dependencies:
|
20 | 20 | sudo apt install git cmake libglew-dev libfreeimage-dev liblockfile-dev libopenal-dev libtbb-dev libcrypto++-dev libpugixml-dev libogg-dev libtheora-dev libvorbis-dev libsdl2-dev liblzo2-dev libjpeg-dev libncurses5-dev libreadline-dev
|
21 | 21 |
|
| 22 | +Clone command: |
| 23 | +``` |
| 24 | +git clone https://github.com/OpenXRay/xray-16.git --recurse-submodules |
| 25 | +``` |
| 26 | + |
22 | 27 | Build commands:
|
23 | 28 | ------
|
| 29 | +``` |
24 | 30 | cd xray-16
|
25 |
| -git submodule update --init --recursive |
26 |
| -mkdir bin && cd bin |
| 31 | +mkdir bin |
| 32 | +cd bin |
27 | 33 | cmake ..
|
28 |
| -make |
| 34 | +make -jX # where X is the number of cores in your system |
| 35 | +``` |
29 | 36 |
|
30 | 37 | #To enable debugging:
|
31 |
| -cmake .. -DCMAKE_BUILD_TYPE=Debug |
| 38 | +cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo # Building with Debug flag isn't supported now |
32 | 39 | #To use clang:
|
33 | 40 | CC=clang CXX=clang++ cmake ..
|
34 | 41 | #To enable all instruction for the local machine:
|
@@ -63,13 +70,28 @@ All mentioned libraries are already in repository as submodules!
|
63 | 70 |
|
64 | 71 | Setup:
|
65 | 72 | ------
|
66 |
| -- Install S.T.A.L.K.E.R Call of Pripyat |
| 73 | +- Install S.T.A.L.K.E.R Call of Pripyat using wine. |
| 74 | +For example if you have a cd-rom you can type `wine setup.exe` to start installation. |
| 75 | +It's recommended do not use path with spaces, for instance you can use "c:\cop" as |
| 76 | +an installation path (it will be `~/.wine/drive_c/cop` path on your host linux machine). |
67 | 77 | - Install patch 1.6.02 (only for russian locale, worldwide release should have it included):
|
68 | 78 | http://cop.stalker-game.ru/?page=patches#2
|
69 |
| -- Clone the repository (you should not download it as an archive) |
70 |
| - You can just push `Open in Desktop` if you are using Github Desktop. |
71 |
| - If you are using Git console, here's the command: |
72 |
| - `git clone https://github.com/OpenXRay/xray-16.git --recurse-submodules` |
73 |
| -- If you are using git client, make sure all submodules are initialized. |
74 |
| - Type this command in the Git console `git submodule update --init --recursive` |
75 |
| -- Now you can build the engine! |
| 79 | + |
| 80 | +After building in the engine folder do (assuming you installed CoP in "c:\cop"): |
| 81 | +``` |
| 82 | +mkdir ~/.wine/drive_c/cop/bin-linux-dbg # here will be installed binaries with dbg symbols |
| 83 | +make DESTDIR=~/.wine/drive_c/cop/bin-linux-dbg install |
| 84 | +cd ~/.wine/drive_c/cop/bin-linux-dbg |
| 85 | +``` |
| 86 | +if you want to debug the game you need to prevent input grabbing: |
| 87 | +``` |
| 88 | +setxkbmap -option grab:break_actions |
| 89 | +``` |
| 90 | +now you can run the game using |
| 91 | +``` |
| 92 | +./xr_3da.sh -fsltx ../fsgame.ltx |
| 93 | +``` |
| 94 | +or if you want to debug using gdb: |
| 95 | +``` |
| 96 | +DEBUGGER="gdb --ex=r --args" ./xr_3da.sh -fsltx ../fsgame.ltx |
| 97 | +``` |
0 commit comments