mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Improved README and build script. Now build RelWithDebInfo, that do works
This commit is contained in:
parent
29ed139802
commit
921c0736d5
19
README.md
19
README.md
|
@ -28,6 +28,8 @@ These have been modified to run correctly under the recent version of Windows. (
|
||||||
Building
|
Building
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Note that DEBUG build will certainely not work. There are still many assert in the engine, most of them are irrelevent and should be removed, but while it's not done, the assert will effectively kiils the engine when triger in Debug build. Use Release or RelWithDebInfo build if you intend to play (automatically set as RelWithDebInfo in the build scripts)
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
To build Serious Engine 1, you'll need Visual Studio 2013 or 2015, Professional or Community edition ( https://www.visualstudio.com/post-download-vs?sku=community ).
|
To build Serious Engine 1, you'll need Visual Studio 2013 or 2015, Professional or Community edition ( https://www.visualstudio.com/post-download-vs?sku=community ).
|
||||||
|
@ -53,6 +55,8 @@ If you have access to a copy of the game (either by CD or through Steam),
|
||||||
you can copy the *.gro files from the game directory to the repository.
|
you can copy the *.gro files from the game directory to the repository.
|
||||||
Not that for running SS:TFE, you don't need the ModEXT.txt file, it's only for SS:TSE.
|
Not that for running SS:TFE, you don't need the ModEXT.txt file, it's only for SS:TSE.
|
||||||
|
|
||||||
|
Alternativelly, you can simply copy the whole content of the Windows install as base dir, add the `SE1_10.gro` from the repo in the root folder of the install, and then copy the binary built in `Bin` folder
|
||||||
|
|
||||||
#### Building (only for SS:TSE)
|
#### Building (only for SS:TSE)
|
||||||
|
|
||||||
Type this in your terminal:
|
Type this in your terminal:
|
||||||
|
@ -60,19 +64,20 @@ Type this in your terminal:
|
||||||
```
|
```
|
||||||
Sources/build-linux64.sh # use build-linux32.sh for 32-bits
|
Sources/build-linux64.sh # use build-linux32.sh for 32-bits
|
||||||
cp Sources/cmake-build/ssam Bin/
|
cp Sources/cmake-build/ssam Bin/
|
||||||
cp Sources/cmake-build/Debug/* Bin/Debug/
|
cp Sources/cmake-build/Debug/* Bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Building (only for SS:TFE)
|
#### Building (only for SS:TFE)
|
||||||
|
|
||||||
Same as SS:SE, but note the following:
|
Same as SS:TSE, but note the following:
|
||||||
|
|
||||||
- Before running build-linux64.sh, modify the file by passing `-DTFE=TRUE` to cmake.
|
```
|
||||||
- After building, you need to copy 'ssam**-tfe**' instead of 'ssam', as shown:
|
Sources/build-linux64.sh -DTFE=TRUE # use build-linux32.sh for 32-bits
|
||||||
|
cp Sources/cmake-build/ssam-tfe Bin/
|
||||||
|
cp Sources/cmake-build/Debug/* Bin/
|
||||||
|
```
|
||||||
|
|
||||||
```
|
Note that the CD version of SS:TSE used MP3 for music. You will need to build / get `libamp11lib.so` and copy it inside `Bin` with the other libs to have music. Steam version is ogg and don't need this library.
|
||||||
cp Sources/cmake-build/ssam-tfe Bin/
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Running
|
#### Running
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ cd $_
|
||||||
#cmake -DCMAKE_BUILD_TYPE=Debug ..
|
#cmake -DCMAKE_BUILD_TYPE=Debug ..
|
||||||
|
|
||||||
# Right now we force x86, though...
|
# Right now we force x86, though...
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DUSE_I386_NASM_ASM=TRUE .. $1
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DUSE_I386_NASM_ASM=TRUE .. $1
|
||||||
|
|
||||||
make -j$NCPU
|
make -j$NCPU
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ cd $_
|
||||||
#ninja
|
#ninja
|
||||||
|
|
||||||
# This is the eventual path for amd64.
|
# This is the eventual path for amd64.
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug .. $1
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. $1
|
||||||
|
|
||||||
# Right now we force x86, though...
|
# Right now we force x86, though...
|
||||||
#cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
|
#cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 ..
|
||||||
|
|
|
@ -9,6 +9,6 @@ set -x
|
||||||
rm -rf cmake-build
|
rm -rf cmake-build
|
||||||
mkdir $_
|
mkdir $_
|
||||||
cd $_
|
cd $_
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=i386 -DUSE_I386_NASM_ASM=TRUE -DUSE_SYSTEM_SDL2=FALSE ..
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_OSX_ARCHITECTURES=i386 -DUSE_I386_NASM_ASM=TRUE -DUSE_SYSTEM_SDL2=FALSE .. $1
|
||||||
make -j$NCPU
|
make -j$NCPU
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ set -x
|
||||||
rm -rf cmake-build
|
rm -rf cmake-build
|
||||||
mkdir $_
|
mkdir $_
|
||||||
cd $_
|
cd $_
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=x86_64 ..
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_OSX_ARCHITECTURES=x86_64 .. $1
|
||||||
make -j$NCPU
|
make -j$NCPU
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user