Skip to content

Commit 7d57b8d

Browse files
authored
Merge pull request #253 from drug007/patch-1
Update build-linux.txt
2 parents fcea4a1 + a25b5c1 commit 7d57b8d

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

doc/howto/build-linux.txt

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ JPEG
1919
Ubuntu 18.04 build dependencies:
2020
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
2121

22+
Clone command:
23+
```
24+
git clone https://github.com/OpenXRay/xray-16.git --recurse-submodules
25+
```
26+
2227
Build commands:
2328
------
29+
```
2430
cd xray-16
25-
git submodule update --init --recursive
26-
mkdir bin && cd bin
31+
mkdir bin
32+
cd bin
2733
cmake ..
28-
make
34+
make -jX # where X is the number of cores in your system
35+
```
2936

3037
#To enable debugging:
31-
cmake .. -DCMAKE_BUILD_TYPE=Debug
38+
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo # Building with Debug flag isn't supported now
3239
#To use clang:
3340
CC=clang CXX=clang++ cmake ..
3441
#To enable all instruction for the local machine:
@@ -63,13 +70,28 @@ All mentioned libraries are already in repository as submodules!
6370

6471
Setup:
6572
------
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).
6777
- Install patch 1.6.02 (only for russian locale, worldwide release should have it included):
6878
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

Comments
 (0)