From 921c0736d55eee104743732788ce3add03ab8dda Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 17 Aug 2019 09:37:58 +0200 Subject: [PATCH] Improved README and build script. Now build RelWithDebInfo, that do works --- README.md | 19 ++++++++++++------- Sources/build-linux32.sh | 2 +- Sources/build-linux64.sh | 2 +- Sources/build-mac.sh | 2 +- Sources/build-mac64.sh | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1c4811a..a478a4d 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ These have been modified to run correctly under the recent version of Windows. ( 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 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. 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) 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 cp Sources/cmake-build/ssam Bin/ -cp Sources/cmake-build/Debug/* Bin/Debug/ +cp Sources/cmake-build/Debug/* Bin/ ``` #### 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/ +``` - ``` - cp Sources/cmake-build/ssam-tfe 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. #### Running diff --git a/Sources/build-linux32.sh b/Sources/build-linux32.sh index 1022252..b1690fb 100755 --- a/Sources/build-linux32.sh +++ b/Sources/build-linux32.sh @@ -17,7 +17,7 @@ cd $_ #cmake -DCMAKE_BUILD_TYPE=Debug .. # 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 diff --git a/Sources/build-linux64.sh b/Sources/build-linux64.sh index 66b1c40..ef88670 100755 --- a/Sources/build-linux64.sh +++ b/Sources/build-linux64.sh @@ -14,7 +14,7 @@ cd $_ #ninja # 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... #cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 .. diff --git a/Sources/build-mac.sh b/Sources/build-mac.sh index 1f01255..cba53b8 100755 --- a/Sources/build-mac.sh +++ b/Sources/build-mac.sh @@ -9,6 +9,6 @@ set -x rm -rf cmake-build mkdir $_ 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 diff --git a/Sources/build-mac64.sh b/Sources/build-mac64.sh index 5265cdc..9838430 100755 --- a/Sources/build-mac64.sh +++ b/Sources/build-mac64.sh @@ -9,6 +9,6 @@ set -x rm -rf cmake-build mkdir $_ 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