Steam Link

Steam Link

.snipah Feb 23, 2019 @ 2:18am
Super Mario War (Fan Made)
Anyone know if we can somehow compile this to work natively for the steamlink? it looks like there is a "cross compiling for arm" tutorial, but i have no idea how i would even do it
https://github.com/mmatyas/supermariowar/wiki/Cross-compiling-to-ARM
< >
Showing 1-5 of 5 comments
Zarzy Jul 22, 2019 @ 5:04am 
It could be nice to play SMW
garbalen Feb 11, 2020 @ 3:17pm 
I got it built. Just needs the usual USB install

https://drive.google.com/open?id=1ISbHCj5TuQutzY3pOEwseka1Mm-6Ctwl

Built from https://github.com/mmatyas/supermariowar

You will need a keyboard the first time you start it to change the settings to controller.
It has the editors and networking files but they are untested and I didn't package them to create startup icons or anythuing.
The build script is pretty ugly and there's a lot of extra junk I added while trying to figure this one out. If anyone wants to clean it up feel free.

#!/bin/bash # TOP=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd) if [ "${MARVELL_SDK_PATH}" = "" ]; then MARVELL_SDK_PATH="$(cd "${TOP}/../.." && pwd)" fi if [ "${MARVELL_ROOTFS}" = "" ]; then source "${MARVELL_SDK_PATH}/setenv.sh" || exit 1 fi BUILD="${PWD}" SRC="${PWD}/smw-src" # Extra environment variables for this build export OS=Linux export CC="${CROSS}gcc" export CPP="${CROSS}cpp" export CXX="${CROSS}g++" export CFLAGS="--sysroot=$MARVELL_ROOTFS -DLINUX=1 -DEGL_API_FB=1 -Ofast -ffast-math -mfpu=vfpv3 -march=armv7-a -fomit-frame-pointer -mfloat-abi=hard -I$MARVELL_ROOTFS/usr/include -I$MARVELL_ROOTFS/usr/include/SDL2" export CXXFLAGS="-std=c++11 --sysroot=$MARVELL_ROOTFS -DLINUX=1 -DEGL_API_FB=1 -Ofast -ffast-math -mfpu=vfpv3 -march=armv7-a -fomit-frame-pointer -mfloat-abi=hard -I$MARVELL_ROOTFS/usr/include -I$MARVELL_ROOTFS/usr/include/SDL2" export LDFLAGS="--sysroot=$MARVELL_ROOTFS -static-libgcc -static-libstdc++ -lEGL -lSDL2 -lz -lGLESv2 -lSDL2_image -lSDL2_mixer" export INCLUDE_DIRS="-I$MARVELL_ROOTFS/usr/include -I$MARVELL_ROOTFS/usr/include/EGL -I$MARVELL_ROOTFS/usr/include/SDL2 -I${MARVELL_ROOTFS}/include/GLES2 -I$MARVELL_ROOTFS/usr/include/freetype2" export LIBRARY_DIRS="-L$MARVELL_ROOTFS/usr/lib -L$MARVELL_ROOTFS/lib" export PKG_CONF_PATH=pkg-config export CMAKE_SYSROOT=$MARVELL_ROOTFS export CMAKE_LIBRARY_PATH="$MARVELL_ROOTFS/usr/lib $MARVELL_ROOTFS/lib" export CMAKE_INCLUDE_PATH="$MARVELL_ROOTFS/usr/include $MARVELL_ROOTFS/usr/include/SDL2" export SDL2_DIR="$MARVELL_ROOTFS/usr/include/SDL2" export OPENGL_opengl_LIBRARY="$MARVELL_ROOTFS/usr/lib" export OPENGL_egl_LIBRARY="$MARVELL_ROOTFS/usr/lib" export ZLIB_INCLUDE_DIR="$MARVELL_ROOTFS/usr/include" export ZLIB_LIBRARY="$MARVELL_ROOTFS/usr/lib" export CMAKE_INSTALL_PREFIX="Install" export DISABLE_SYSLIB_CHECKS=1 export ZLIB_FOUND=1 export SMW_DATADIR="data" export SDL2MAIN_LIBRARY="$MARVELL_ROOTFS/usr/lib" # # Download the source # if [ ! -d "${SRC}" ]; then git clone --recursive https://github.com/mmatyas/supermariowar.git "${SRC}" fi # # Build it # pushd "${SRC}" unzip data.zip mkdir -p build && cd build cmake .. -DDISABLE_SYSLIB_CHECKS=1 -DUSE_SDL2_LIBS=1 -DSDL2_FORCE_GLES=1 -DSMW_DATADIR="data" make -j4 # -jN = build on N threads #./Binaries/Release/smw ../data popd # # Install it # export DESTDIR="${BUILD}/steamlink/apps" # Copy the files to the app directory mkdir -p "${DESTDIR}" cp -vr "${SRC}/build/Binaries/Release" "${DESTDIR}/smwar" cp -vr "${SRC}/data" "${DESTDIR}/smwar" cp -v "${SRC}/data/gfx/packs/Retro/powerups/3uppowerup.png" "${DESTDIR}/smwar/icon.png" # Create the table of contents and icon cat >"${DESTDIR}/smwar/toc.txt" <<__EOF__ name=Super Mario War icon=icon.png run=smw __EOF__ # Pack it up name=$(basename ${DESTDIR}/smwar) pushd "$(dirname ${DESTDIR}/smwar)" tar zcvf $name.tgz $name || exit 3 rm -rf $name popd # All done! echo "Build complete!" echo echo "Put the steamlink folder onto a USB drive, insert it into your Steam Link, and cycle the power to install."
Last edited by garbalen; Feb 12, 2020 @ 9:57am
garbalen Feb 12, 2020 @ 9:51am 
Fixed Fullscreen mode.
.snipah Jun 23, 2020 @ 8:07pm 
Originally posted by garbalen:
Fixed Fullscreen mode.
Awesome!! thank you so much for this! it worked perfect.

I created an icon that fits the home screen of steam and updated the file through SSH, but don't know how to update the compiler:
https://drive.google.com/file/d/1PVWiFhtMDv-mOcKJpXVXiDNm22koZ2Rr/view?usp=sharing
garbalen Jun 24, 2020 @ 12:36pm 
It should update fine over SSH but you need to restart the Steamlink to reload it. It saves the icons until forced to reload them again with a restart. I have a problem with my virtual machine right now so I won't be updating the file.
< >
Showing 1-5 of 5 comments
Per page: 1530 50