Coder Social home page Coder Social logo

bijman / srb2bld Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 425 KB

POSIX shell script that eases compiling, installing or creating AppImage/Flatpak/App Bundle/Android APKs of Sonic Robo Blast 2 related builds.

License: MIT License

Makefile 0.04% Shell 99.96%
posix build-tool appimage linux windows macos shell-script cli terminal srb2

srb2bld's Issues

Custom builds change folder after updating

Example, using Spectrum's uncapped remake, it uses the folder .srb2customuncapped-remake but after updating the build using srb2bld -up a new folder is created .srb2custom

Error on line 895 - "arch: command not found"

Preparing directories to store Sonic Robo Blast 2's source code, assets and libraries. Please wait...
/usr/local/bin/srb2bld: line 895: arch: command not found
/usr/local/bin/srb2bld: line 895: arch: command not found
/usr/local/bin/srb2bld: line 895: arch: command not found

Error installing dependencies on nixos-unstable

Installing missing dependencies for Sonic Robo Blast 2 Custom srb2ucpr to the system. Please wait...
installing 'nix-index-unstable-2022-03-07'
this derivation will be built:
  /nix/store/2x8m03b23kw9cxmi209xy89v6js0r45s-nix-index-unstable-2022-03-07.drv
this path will be fetched (2.37 MiB download, 11.20 MiB unpacked):
  /nix/store/ir90192wdrk5da5p880cxxz8kd06f8lq-nix-index-unstable-2022-03-07
copying path '/nix/store/ir90192wdrk5da5p880cxxz8kd06f8lq-nix-index-unstable-2022-03-07' from 'https://cache.nixos.org'...
building '/nix/store/2x8m03b23kw9cxmi209xy89v6js0r45s-nix-index-unstable-2022-03-07.drv'...
error: this derivation has bad 'meta.outputsToInstall'

2.2.12 won't be supported due to outdated SDL2 version, lacking "SDL_OpenURL"

Linking lsdl2srb2.debug...
../make/linux/64/SDL/objs/sdl/i_system.o: In function `I_ReportSignal':
/home/zesi/.local/share/srb2bld/builds/srb2/src/sdl/i_system.c:411: undefined reference to `SDL_OpenURL'
collect2: error: ld returned 1 exit status
Makefile:325: recipe for target '../bin/lsdl2srb2.debug' failed
make: *** [../bin/lsdl2srb2.debug] Error 1
make: Target 'all' not remade because of errors.
make: Leaving directory '/home/zesi/.local/share/srb2bld/builds/srb2/src'

This is an issue that occurs when trying to compile SRB2 2.2.12, that happens due to the SDL2 version in this being outdated, and not supporting SDL_OpenURL. If I remove the offending line, then SRB2 successfully compiles despite this. Had to resort to doing this to upload a compatible appimage to the SRB2 discord, since I'm unfamiliar with how docker works.

For clarity, I'm using the "2212-pre1" branch to compile this, you'll encounter the same issue if you try this branch.

[SDL_Mixer_X] binary unable to locate library

built Uncapped Plus with Discord RPC and Mixer X
I get this error when trying to launch:

srb2ucp: error while loading shared libraries: libSDL2_mixer_ext.so.2: cannot open shared object file: No such file or directory

Local Asset Path isn't actually supported when making AppImages

While trying to compile srb2 2212 pre2 (still isn't working, had to remove that sdl_openurl line) I tried to point the asset file to a local one, since the prompt for it claims it supports it:

Please enter Sonic Robo Blast 2's assets path, or just press enter to download and extract the latest SRB2/SRB2Kart stable release assets. Supported links/paths:

        ...

        - full path to downloaded archived file in formats supported by p7zip (https://www.7-zip.org) or full path to directory with build's assets, for example /home/zesi/Downloads/SRB2.zip for Linux and macOS or C:\Downloads\SRB2.zip for Windows.

When I try to do just that, i.e. point to /home/zesi/Downloads/srb2win_v2212-pre2.zip, it straight up doesn't work, and produces an AppImage without those assets bundled in. However when I supply, say, a Google Drive link, that works fine. Not sure what's up with that, but, it's definitely a bug.

Installing HEP on Almalinux loops a DNF error message

This happens post compilation while trying to install HEP on Almalinux 9

Refreshing package database for Sonic Robo Blast 2 Kart HEP to find packages matching missing library. Please wait...

Installing missing dependencies for Sonic Robo Blast 2 Kart HEP to the system. Please wait...
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
usage: dnf install [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins]
                   [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER] [--setopt SETOPTS]
                   [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]]
                   [--debugsolver] [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
                   [--rpmverbosity [debug level name]] [-y] [--assumeno] [--enablerepo [repo]] [--disablerepo [repo] |
                   --repo [repo]] [--enable | --disable] [-x [package]] [--disableexcludes [repo]]
                   [--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh] [-4] [-6]
                   [--destdir DESTDIR] [--downloadonly] [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage]
                   [--security] [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]
                   [--sec-severity {Critical,Important,Moderate,Low}] [--forcearch ARCH]
                   PACKAGE [PACKAGE ...]
dnf install: error: the following arguments are required: PACKAGE

Refreshing package database for Sonic Robo Blast 2 Kart HEP to find packages matching missing library. Please wait...

Installing missing dependencies for Sonic Robo Blast 2 Kart HEP to the system. Please wait...
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
usage: dnf install [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins]
                   [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER] [--setopt SETOPTS]
                   [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]]
                   [--debugsolver] [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
                   [--rpmverbosity [debug level name]] [-y] [--assumeno] [--enablerepo [repo]] [--disablerepo [repo] |
                   --repo [repo]] [--enable | --disable] [-x [package]] [--disableexcludes [repo]]
                   [--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh] [-4] [-6]
                   [--destdir DESTDIR] [--downloadonly] [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage]
                   [--security] [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]
                   [--sec-severity {Critical,Important,Moderate,Low}] [--forcearch ARCH]
                   PACKAGE [PACKAGE ...]
dnf install: error: the following arguments are required: PACKAGE

[...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.