testing custom script
-
im working on teaching myself how to make my own install scripts for ports that i managed to get working.
i did find some help here with what different commands do what. and of course im looking at other scripts that people have made.
my question is now to i manually run the script to see if it will work or not. i know i have errors in it, but i dont know what so its hard for me to pin point it.
i did drop it in to the RetroPie setup, but it shows a error for a splt second when i go in the setup menu to try to install it, so thats not much help and due to the error its not in the list for me to try and run
thanks for any pointers
-
You can run 'run' the script from the command line by using the
retropie_packages.sh
script, adding the name of your script and - optionally - the function to be called. For instancecd $HOME/RetroPie-Setup # installing dependencies for package `hatari` sudo ./retropie_packages.sh hatari depends # downloading sources sudo ./retropie_packages.sh hatari sources # building the package sudo ./retropie_packages.sh hatari build # installing the package sudo ./retropie_packages.sh hatari install # configuring the package sudo ./retropie_packages.sh hatari configure # removing the package, will run configure with $md_mode set to `remove` sudo ./retropie_packages.sh hatari remove # running with no parameter will run depends,sources,build and configure at once sudo ./retropie_packages.sh hatari
-
@mitu thank you that does help
question
if there is something else that a port needs to run that needs to be installed, like a different program all together. does it need to be in its own script or can it be combined into one
like with openMW. you need to have OSG installed for openMW to even compile, and OSG is something that you
make install
.i just dont know if for the sake of making things more streamline if it can be done in one shot
-
You can combine both installations if there's a dependency, though I'd probably look to see if the dependency already has a package in Debian/Raspbery Pi OS that can be installed via
depends
. -
@mitu i dont think its a dependency. it is something that the guys who made OpenMW, built to help with the running the game
this is what quicksliver said about in on the forum page about installing OpenMW
Also a couple notes about running OpenMW on the raspberry pi. You cant use open scene graph from the apt repository, it has to be manually compiled against OpenGL NOT OpenGL ES otherwise the game will not run. OpenMW devs recommend using their fork of OSG for better performance though that is not strictly necessary (I used their fork and it works great https://github.com/OpenMW/osg). The following cmake arguments can be used to prevent building unneeded OSG plugins and prevent bloat
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.