Some Newbie Questions


Hmm, that's odd... the program started the first time, but when I try starting it again after quiting it, it appears briefly on the screen, then immediately closes.

Code:
=======================================================================================
PND             : /media/mmcblk1p1/pandora/menu/eatuner.pnd
PND_FSTYPE      : Squashfs
APPDATADIR      : /media/mmcblk1p1/pandora/appdata/eatuner
APPDD_FSTYPE    : vfat
PND_CPUSPEED    : <unset>
EXENAME         : eatuner.sh
ARGUMENTS       : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
WARNING Union already mounted, using it
+++++++
Loopback devices :
/dev/loop0: [b309]:2847 (/media/mmcblk1p1/pandora/menu/eatuner.pnd)
/dev/loop2: [b309]:1870 (/media/mmcblk1p1/pandora/menu/links.pnd)
Are mounted on :
/dev/loop0 on /mnt/utmp/eatuner type squashfs (ro)
/dev/loop2 on /mnt/utmp/links type squashfs (ro)
For these Union :
none on /mnt/utmp/eatuner type aufs (rw,si=6650d937,noplink)
none on /mnt/utmp/links type aufs (rw,si=6650d437,noplink)
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application (eatuner.sh ) ----------
/dev/dsp: Device or resource busy
eatuner 0.41 - free music instruments tuner
Copyright (C) 2008 Zasenko Sergey
Bug-report: d3fin3@gmail.com

[ FAILED]--- Starting the application (eatuner.sh ) ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
 
Question: if I DON'T hardcode /mnt/utmp in the eatuner.sh file, so it looks like this...
Code:
#!/bin/bash

pwd=$(pwd)
export HOME=$pwd
export LD_LIBRARY_PATH=$pwd/lib

./bin/eatuner

...what should my "./configure" prefix look like?

I did it like this:
Code:
./configure --prefix=/mnt/utmp/eatuner

You did it like this:
Code:
./configure --prefix=/home/debian/eatunerpnd
but that doesn't seem right since you're not going to be running it from Debian...

Looking at what other people are doing, some of the .sh scripts are a lot more complex, like this one from Phantomas:
Code:
#!/bin/sh
export PATH="$PWD/bin:${PATH:-"/usr/bin:/bin:/usr/local/bin"}"
export LD_LIBRARY_PATH="/mnt/utmp/phantomas/lib:${LD_LIBRARY_PATH:-"/usr/lib:/lib"}"
export HOME="/mnt/utmp/phantomas" XDG_CONFIG_HOME="/mnt/utmp/phantomas"

if [ -d /mnt/utmp/phantomas/share ];then
	export XDG_DATA_DIRS=/mnt/utmp/phantomas/share:$XDG_DATA_DIRS:/usr/share
fi
export SDL_AUDIODRIVER="alsa"
cd $HOME
[ -e "$HOME/scripts/pre_script.sh" ] && . $HOME/scripts/pre_script.sh
if [ -e "$HOME/scripts/post_script.sh" ];then
	./phantomaspc $*
	. $HOME/scripts/post_script.sh
else
	exec ./phantomaspc $*
fi
 
Back
Top