Difference between revisions of "Buildbot"

Jump to navigation Jump to search
391 bytes added ,  08:53, 23 November 2018
→‎Rebuilding Toolchain Libraries: Added note on MinGW toolchain patches to sdl-config / pkg-config output
m (Text replacement - "</source>" to "</syntaxhighlight>")
(→‎Rebuilding Toolchain Libraries: Added note on MinGW toolchain patches to sdl-config / pkg-config output)
(One intermediate revision by one other user not shown)
Line 51: Line 51:
When the buildbot config files are changed, a user with shell access and sudo privileges needs to run the following commands. It's good practice to do this once buildbot is idle:
When the buildbot config files are changed, a user with shell access and sudo privileges needs to run the following commands. It's good practice to do this once buildbot is idle:


<source lang="bash">
<syntaxhighlight lang="bash">
sudo -s
sudo -s
systemctl stop buildslave
systemctl stop buildslave
Line 65: Line 65:
* stop the daemons (see above)
* stop the daemons (see above)
* fix the permissions with
* fix the permissions with
<source lang="bash">
<syntaxhighlight lang="bash">
chown -R buildbot:buildbot ~buildbot/scummvm-master/*
chown -R buildbot:buildbot ~buildbot/scummvm-master/*
chown -R buildbot:buildbot ~buildbot/scummvm-slave/*
chown -R buildbot:buildbot ~buildbot/scummvm-slave/*
Line 93: Line 93:


* /opt/toolchains is actually a symlink to the real location of the external storage drive, but /opt/toolchains should be used in all configuration to ensure that this can be freely moved in future if necessary.
* /opt/toolchains is actually a symlink to the real location of the external storage drive, but /opt/toolchains should be used in all configuration to ensure that this can be freely moved in future if necessary.
* Check for any platform specific library build instructions at the relevant page [[Compiling_ScummVM|here]].


libSDL:
libSDL:
Line 98: Line 100:
* Decompress the latest libSDL tarball to a temporary location i.e.
* Decompress the latest libSDL tarball to a temporary location i.e.


<source lang="bash">
<syntaxhighlight lang="bash">
tar -xvzf SDL-1.2.15.tar.gz -d /home/digitall
tar -xvzf SDL-1.2.15.tar.gz -d /home/digitall
</syntaxhighlight>
</syntaxhighlight>
Line 104: Line 106:
* Apply any required patches i.e. Currently libSDL-1.2.15 snapshot has a error in the Win32 version strings.. This may occur again on future releases :/
* Apply any required patches i.e. Currently libSDL-1.2.15 snapshot has a error in the Win32 version strings.. This may occur again on future releases :/


<source lang="bash">
<syntaxhighlight lang="bash">
patch -p0 < SDL-1.2.15-Fix-Windows-DLL-Version.patch
patch -p0 < SDL-1.2.15-Fix-Windows-DLL-Version.patch
</syntaxhighlight>
</syntaxhighlight>
Line 110: Line 112:
* Add toolchain binaries directory to path.
* Add toolchain binaries directory to path.


<source lang="bash">
<syntaxhighlight lang="bash">
PATH=/opt/toolchains/x86_64-w64-mingw32/bin:$PATH
PATH=/opt/toolchains/x86_64-w64-mingw32/bin:$PATH
export PATH
export PATH
Line 117: Line 119:
* Add out of tree build directory and configure the SDL codebase here with the host target and prefix to use the correct cross toolchain and target for make install.
* Add out of tree build directory and configure the SDL codebase here with the host target and prefix to use the correct cross toolchain and target for make install.


<source lang="bash">
<syntaxhighlight lang="bash">
mkdir SDL-1.2.15-x86_64-w64-mingw32
mkdir SDL-1.2.15-x86_64-w64-mingw32
cd SDL-1.2.15-x86_64-w64-mingw32
cd SDL-1.2.15-x86_64-w64-mingw32
Line 125: Line 127:
* Compile the codebase.
* Compile the codebase.


<source lang="bash">
<syntaxhighlight lang="bash">
make
make
</syntaxhighlight>
</syntaxhighlight>
Line 131: Line 133:
* Install the compiled files. As you become root, you need to make the same modification to the path to get the required cross toolchain tools such as ranlib.
* Install the compiled files. As you become root, you need to make the same modification to the path to get the required cross toolchain tools such as ranlib.


<source lang="bash">
<syntaxhighlight lang="bash">
sudo bash
sudo bash
PATH=/opt/toolchains/x86_64-w64-mingw32/bin:$PATH
PATH=/opt/toolchains/x86_64-w64-mingw32/bin:$PATH
Line 137: Line 139:
make install
make install
</syntaxhighlight>
</syntaxhighlight>
* IMPORTANT: If installing libSDL for Win32 / Win64 MinGW toolchains, please check the note [[Compiling_ScummVM/MinGW#SDL|here]] and make the relevant fixes to bin/sdl-config and lib/pkg-config/sdl2.pc etc.
TrustedUser
574

edits

Navigation menu