TIC-80 : Retroarch lr-tic80 Core Installation Script
-
I figured I'd give this build a try, even if my efforts are unsuccessful.
I attempted to set up a script module based on the lr-retro8 (Pico-8). I thought this would be a good place to start because the retro8 and TIC-80 repositories look relatively similar (both have CMake files, both have src folders). I might be totally off the money though.
Here is my first attempt at an install, which completely failed.
#!/usr/bin/env bash # This file is part of The RetroPie Project # # The RetroPie Project is the legal property of its developers, whose names are # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. # # See the LICENSE.md file at the top-level directory of this distribution and # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md # rp_module_id="lr-tic80" rp_module_desc="TIC-80 console - port for libretro" rp_module_help="ROM Extensions: .tic .zip\n\nCopy your roms to $romdir/tic80\n\n" rp_module_repo="git https://github.com/libretro/TIC-80.git master" rp_module_section="exp" function sources_lr-tic80() { gitPullOrClone } function build_lr-tic80() { make md_ret_require="$md_build/tic80_libretro.so" } function install_lr-tic80() { md_ret_files=( 'tic80_libretro.so' 'README.md' ) } function configure_lr-tic80() { mkRomDir "tic80" ensureSystemretroconfig "tic80" addEmulator 1 "$md_id" "tic80" "$md_inst/tic80_libretro.so" addSystem "tic80" "TIC-80" ".tic .zip " }
The error I got specifically was:
Could not successfully build lr-tic80 - TIC-80 console - port for libretro
(/home/pi/RetroPie-Setup/tmp/build/lr-tic80/tic80_libretro.so not found).Is anyone able to point out the errors here?
-
@ln_rc that error message should have also pointed out the build log location so you can see the error. (it’s
~/RetroPie/logs/
) -
The build step is not correct. TIC-80 uses a CMake build system, so running
make
is not enough. Use this as the build function instead:function build_lr-tic80() { mkdir -p build cd build cmake -DBUILD_PLAYER=OFF -DBUILD_SOKOL=OFF -DBUILD_SDL=OFF -DBUILD_DEMO_CARTS=OFF -DBUILD_LIBRETRO=ON .. make md_ret_require="$md_build/build/lib/tic80_libretro.so" }
-
Just installed and it's working.
But I had to use this, otherwise it was't installed :
function install_lr-tic80() { md_ret_files=( 'build/lib/tic80_libretro.so' 'README.md' 'LICENSE' ) }
-
@mitu @Folly This works beautifully! I included both pieces of code, and all the issues were resolved, the libretro core runs seamlessly, it reads my games...fantastic! The retro8 doesn't even run this well.
I'll put an updated version of the installation script at the top of this thread so others can use it.
-
Nice !
Can you also add the licence after the help line :
rp_module_help="ROM Extensions: .tic .zip\n\nCopy your roms to $romdir/tic80\n\n" rp_module_licence="MIT https://raw.githubusercontent.com/libretro/TIC-80/master/LICENSE"
-
@folly Absolutely! I meant to include it from the beginning but I didn't know how haha. Let me know if there are errors in the edited first post of this thread, and I'll be happy to make any fixes necessary.
-
I think it's looking good, for now !
-
TIC-80 has been added to the cygnus-blue-flames theme which is install-able from the RetroPie-Setup.
-
post error . Wrong thread. Sorry
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.