I prefixed the build to /mnt/utmp/xu4 and make install from the makefile generates bin, lib and share directories and I copied these into mcobits PND using PNDTools and then updated the PXML with a new version number. Putting this PND into menu/ on SD gives me a new menu entry, but clicking this yields nothing.
pnd_run /media/GAMES/pandora/xu4-u4-1894.pnd returns
Starting the application (scripts/u4.sh) [ FAILED]
Missing config.xml .
I do not yet understand how mcobits PND generates the directories that it creates in appdata and /mnt/utmp. My /mnt/utmp just contains bin, lib and share but mcobits' contains many more files including mid, scripts, README etc. Confusing indeed.
EDIT Would anyone object if we included the freely distributable ulrima4.zip in the package? I am afraid that many pandora users will not take the trouble to download ultima4.zip and copy it to appdata.
I still have the original Ultima 4 cloth map. This game was inspiring.
EDIT: Now my PND errors with cannot find config.xml, although my version has it under lib/u4 just like mcobits.
To test whether PNDTools is the source of the problem, i loaded mcobits' xu4-u4-1893.pnd and clicked "create pnd" and saved to xu4-u4-1893b.pnd. Then i ran
pnd_run /media/mmcblk1p1/xu4-u4-1893b.pnd
which errored with
xu4: error: Failed to open file charset.ega for reading.
EDIT: OKAY WORKS NOW. Instead of using bin/ and lib/ i just copied the working build I had into the root dir of the PND and now xu4 finds everything it needs. I have a PND that runs and includes the ultima4. data right in the pnd, but I dont know if I can share it here. This
http://www.thatfleminggent.com/ultima/boomer.txt seems to indicate we could distribute it in a PND just fine.
But to make a GPL PND without the Ultima4 game data, my problem now is that the u4 binary sits in
/mnt/utmp/xu4 and expects the ultima4.zip files to be in
/mnt/utmp/xu4/ultima4 not in /media/GAMES/pandora/appdata/xu4/ultima4. How is this supposed to work? Can I make u4.sh symlink that dir?