Rigs-of-rods: Setup Travis CI for autobild AppImage (as binary for Linux)

Created on 19 Nov 2017  路  20Comments  路  Source: RigsOfRods/rigs-of-rods

Since AppImage now is widely used for providing portable binary that could run on most widely Linux-based distributives, please, setup your .travis.yml for autobuild AppImages for Rigs-of-Rods.

P.S.: Not all Linux users can build games from source: https://www.linuxmintusers.de/index.php?topic=41689.0

800

Linux build enhancement

All 20 comments

Hello and thanks for the suggestion. Although I'm not familiar with the AppImage toolkit, it feels like something that RoR should consider.

Unfortunately, I've bee using only Windows for many years and currently I'm unable to maintain our linux scripts/guides/CIs in any way. Your best bet is to get ahold of @AnotherFoxGuy

P.S.: Not all Linux users can build games from source. https://www.linuxmintusers.de/index.php?topic=41689.0

The topic you linked is rather chaotic, but the problem I see is the "v0.38" and "v04???" installation instructions in the early posts. The 0.3x versions are obsolete, all developers involved with it have left RoR long ago. I'm not sure what "v044" is supposed to be, but I've only been involved with v0.4.5 and later and I wouldn't recommend even touching anything earlier.

The first test build: http://prdownloads.sourceforge.net/rigs-of-rods/Rigs_of_Rods-x86_64.AppImage

Look like you should bundle libfreeimage3 inside AppImage too:

$ ./Rigs_of_Rods-x86_64.AppImage
RoRConfig: error while loading shared libraries: libfreeimage.so.3: cannot open shared object file: No such file or directory

OS: Debian 9.x

and wxgtk also would be nice to be bundled

How did you produce the AppImage? It is missing libraries:

$ export LD_LIBRARY_PATH=squashfs-root/usr/lib/ ; ldd squashfs-root/usr/bin/RoR | grep not
    libfreeimage.so.3 => not found
    libzzip-0.so.13 => not found

Runs fine. Issues:

  • No caelum
  • No pagedgeometry
  • Going to Multi Player crashes the game. If it is a Debug build its expected. Build with Release or RelWithDebInfo will fix the issue probably.

Previous testing i did:

build ror-dependencies and ror normally: open multiplayer from the main menu -> crash
build ror-dependencies and ror with cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo or cmake -DCMAKE_BUILD_TYPE=Release: open multiplayer from the main menu -> it works!

No Caelum
No pagedgeometry

Caelum && pagedgeometry will return after OGRE 1.11

Going to Multi-Player crashes the game. If it is a Debug build its expected. Build with Release or RelWithDebInfo will fix the issue probably.

This build should fix it:
https://dl.bintray.com/anotherfoxguy/Rigs-of-Rods-CI-Build/RoR-V0.4.8.0-CIBuild-119.1.AppImage
Forgot to add the release build flag to CMake

Great
2018-10-13-182235_1366x768_scrot

The requested path was not found.

Which one is latest build?

Also, add link to Bintray repo into the header of README.md.

@Symbian9 There is a thread on the forums with info on how to download it
https://forum.rigsofrods.org/development-discussion/1339-rigs-rods-ci-builds-windows-linux.html

RoRConfig: error while loading shared libraries: libwx_baseu-3.0.so.0: cannot open shared object file: No such file or directory

@AnotherFoxGuy yes it would be nice to bundle wxgtk also
some distros have 2.8, some 3.0, some both

Also, need bundle libfreeimage3

$ ./RoR-V0.4.8.0-CIBuild-2790.1.AppImage
RoRConfig: error while loading shared libraries: libfreeimage.so.3: cannot open shared object file: No such file or directory

hmm its already https://github.com/RigsOfRods/rigs-of-rods/pull/1576/files#diff-1ae3bfbdd3ef50680c8301951fd421a6R16

Edit

Indeed, removing package freeimage produces the same error. So rorconfig searches system's lib and not AppImage's one

it would be nice to bundle wxgtk also

Actually we recommend to bundle all libraries except those explicitly listed on
https://github.com/AppImage/AppImages/blob/master/excludelist

@tritonas00 copying in just a few libraries by hand does not make it a sufficiently self-standing AppDir; tools like linuxdeployqt or linuxdeploy could help you there by automating this process.

@probonopd

@AnotherFoxGuy made it working now and in a just plain zip archive
https://github.com/RigsOfRods/rigs-of-rods/pull/1660

If the plain zip folder from @AnotherFoxGuy is working as intended, then it should be easy to turn the contents of that zip into an AppImage by running appimagetool on it (after placing desktop files and icons in the usual locations).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KinG-InFeT picture KinG-InFeT  路  3Comments

only-a-ptr picture only-a-ptr  路  11Comments

tritonas00 picture tritonas00  路  10Comments

Speciesx picture Speciesx  路  9Comments

ghost picture ghost  路  7Comments