Skip to content

Commit 7088efa

Browse files
committed
Update build instructions on Windows and Linux
1 parent df81e45 commit 7088efa

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

doc/howto/build-linux.txt

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,43 @@ TITLE: X-Ray 1.6 build and setup on Linux
22

33
Required packages:
44
------
5-
OpenSSL
5+
GLEW
6+
FreeImage
7+
LockFile
8+
OpenAL
9+
TBB
10+
Crypto++
11+
pugixml
612
Theora
713
OGG
814
SDL2
915
LZO
1016
JPEG
1117

18+
1219
Ubuntu 18.04 build dependencies:
13-
sudo apt install git cmake libssl-dev libogg-dev libtheora-dev libvorbis-dev libsdl2-dev liblzo2-dev libjpeg-dev libncurses5-dev
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
1421

1522
Build commands:
1623
------
1724
cd xray-16
1825
git submodule update --init --recursive
1926
mkdir bin && cd bin
2027
cmake ..
21-
(or export CC=clang && export CXX=clang++ && cmake ..)
2228
make
2329

24-
Libraries:
30+
#To enable debugging:
31+
cmake .. -DCMAKE_BUILD_TYPE=Debug
32+
#To use clang:
33+
CC=clang CXX=clang++ cmake ..
34+
#To enable all instruction for the local machine:
35+
CFLAGS="-march=native" CXXFLAGS="-march=native" cmake ..
36+
#To output log and error to different files:
37+
make >out.log 2>error.log
38+
39+
Libraries (OLD LIST !!! ):
2540
------
2641
To build X-Ray Engine you'll need following libraries:
27-
* Windows SDK
2842
* BugTrap: https://github.com/Xottab-DUTY/BugTrap
2943
* CryptoPP: https://github.com/weidai11/cryptopp
3044
* FreeImage: http://freeimage.sourceforge.net

doc/howto/build.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ Build:
55
Currently, the only compiler supported is Visual C++ 2017. If you don't have Visual Studio yet, you can
66
download and install Visual Studio 2017 Community Edition - it's absolutely free for open source projects.
77

8-
By default, all libraries mentioned below (except Windows SDK) are assumed to be in
9-
the src\Externals directory.
10-
118
Windows SDK is available from Visual Studio 2017 installer. You will definitely need to install the following items:
129
* Windows 8.1 SDK (or newer)
1310
* Visual C++ MFC for x86 and x64
11+
* C++/CLI support
1412
* NuGet package manager
1513

1614
You will need following extension to save files in Visual Studio with encoding UTF-8 without BOM:

0 commit comments

Comments
 (0)