INSTALL
author unc0rr
Sat, 14 Jan 2017 00:46:52 +0300
changeset 12136 e25a82ce2374
parent 11862 fbe9bb9602eb
child 12751 838515c4e6c5
permissions -rw-r--r--
- Render messages to string - Respond to PING messages
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
273
3cc5b4dd6770 Add installation manual
unc0rr
parents:
diff changeset
     1
To compile and install you need:
8120
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
     2
 - CMake >= 2.6.0
10487
b69b91779f10 raise/fix build reqs
sheepluva
parents: 10238
diff changeset
     3
 - FreePascal >= 2.2.4
b69b91779f10 raise/fix build reqs
sheepluva
parents: 10238
diff changeset
     4
 - Qt >= 4.7.0
11360
7a7611adf715 drop support for SDL 1.2
sheepluva
parents: 8552
diff changeset
     5
 - SDL >= 2.0
7a7611adf715 drop support for SDL 1.2
sheepluva
parents: 8552
diff changeset
     6
 - SDL_net >= 2.0
7a7611adf715 drop support for SDL 1.2
sheepluva
parents: 8552
diff changeset
     7
 - SDL_mixer >= 2.0
7a7611adf715 drop support for SDL 1.2
sheepluva
parents: 8552
diff changeset
     8
 - SDL_image >= 2.0
470
86ca84d5da74 Update instructions
unc0rr
parents: 457
diff changeset
     9
 - SDL_ttf >= 2.0
10487
b69b91779f10 raise/fix build reqs
sheepluva
parents: 10238
diff changeset
    10
 - Lua = 5.1.0
9992
1773ef634b78 PhysicsFS 2.0.0 seems to be sufficient; also fix a typo
sheepluva
parents: 9991
diff changeset
    11
 - Physfs >= 2.0.0
2141
3b06505dbd5d Fix some cake bugs
unc0rr
parents: 2107
diff changeset
    12
For server:
5053
a767954cfa03 this should help people hacking the cmake files
koda
parents: 4274
diff changeset
    13
 - Glasgow Haskell Compiler >= 6.10
11862
fbe9bb9602eb also update ghc info in INSTALL file
sheepluva
parents: 11839
diff changeset
    14
 - sandi package
2141
3b06505dbd5d Fix some cake bugs
unc0rr
parents: 2107
diff changeset
    15
 - hslogger package
11862
fbe9bb9602eb also update ghc info in INSTALL file
sheepluva
parents: 11839
diff changeset
    16
 - regex-tdfa package
7954
a5f0a6d46c52 advice from hasufell
koda
parents: 7562
diff changeset
    17
For videorecording:
a5f0a6d46c52 advice from hasufell
koda
parents: 7562
diff changeset
    18
 - FFmpeg or LibAV
8120
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    19
For compressed screenshots:
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    20
 - libpng
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    21
8125
814cc5cf0b66 koda, koda... could have checked your claims
unc0rr
parents: 8120
diff changeset
    22
Lua will be automatically built if not found.
8120
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    23
8552
6c63c2833866 upd doc
koda
parents: 8546
diff changeset
    24
PhysFS will internally built unless -DPHYSFS_SYSTEM=on is passed to cmake
6c63c2833866 upd doc
koda
parents: 8546
diff changeset
    25
(also allows to set PHYSFS_LIBRARY and PHYSFS_INCLUDE_DIR if needed).
1006
8a0ed701eafb Some fixes
unc0rr
parents: 680
diff changeset
    26
470
86ca84d5da74 Update instructions
unc0rr
parents: 457
diff changeset
    27
1. Configure:
1006
8a0ed701eafb Some fixes
unc0rr
parents: 680
diff changeset
    28
$ cmake .
273
3cc5b4dd6770 Add installation manual
unc0rr
parents:
diff changeset
    29
or
5053
a767954cfa03 this should help people hacking the cmake files
koda
parents: 4274
diff changeset
    30
$ cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" \
7562
a79082c2a28e koda changed the CMake flag w/o updating the wiki or INSTALL file :(
nemo
parents: 5053
diff changeset
    31
-DDATA_INSTALL_DIR="data_dir" -DNOSERVER=1 .
470
86ca84d5da74 Update instructions
unc0rr
parents: 457
diff changeset
    32
8120
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    33
Add -DNOSERVER=0 to compile net server (remember to check out the additional
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    34
dependencies with the hedgewars-server.cabal configuration file. If you have
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    35
Qt installed but it is not found, you can set it up with
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    36
-DQT_QMAKE_EXECUTABLE="path_to_qmake".
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    37
To get a glimpse of the main configuration options, you may use this command
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    38
`cat CMakeLists.txt | grep option`
1415
6fbfee0e113a Allow build without net game server: introduce -DWITH_SERVER configuration parameter
unc0rr
parents: 1006
diff changeset
    39
470
86ca84d5da74 Update instructions
unc0rr
parents: 457
diff changeset
    40
2. Compile:
478
487cc99af415 users should compile and configure package under user account :)
displacer
parents: 470
diff changeset
    41
$ make
470
86ca84d5da74 Update instructions
unc0rr
parents: 457
diff changeset
    42
86ca84d5da74 Update instructions
unc0rr
parents: 457
diff changeset
    43
3. Install:
273
3cc5b4dd6770 Add installation manual
unc0rr
parents:
diff changeset
    44
# make install
3cc5b4dd6770 Add installation manual
unc0rr
parents:
diff changeset
    45
2220
110266ba2ef7 -new openal api for setting sound position
koda
parents: 2141
diff changeset
    46
457
35cc5a6c0e45 Don't let text file to confuse a terminal
unc0rr
parents: 456
diff changeset
    47
That's all! Enjoy!
8120
67c3201365b1 INSTALL and README updates
koda
parents: 7954
diff changeset
    48