on Nautilus, i associated .p files to run on /usr/bin/sz81 ('open with' from properties) - and i copied './data' folder into '/usr/share/sz81/'
sz81 runs fine when i enter 'sz81' alone on the terminal, but when i try to open a .p file on that, i got some errors like this, from the terminal:
guest@macbookxubuntu2:/mnt/sda4/tralha/emulation/zx81/jogos_melhores/n$ sz81 Nanako_MojonTwins_InClassicJapaneseMonsteastle_zx81.p
sdl_init: Cannot load window manager icon ./data/sz81.bmp: Couldn't open ./data/sz81.bmp
PACKAGE_DATA_DIR is ./data
fonts_init: Cannot load font image ./data/zx80font.bmp: Couldn't open ./data/zx80font.bmp
guest@macbookxubuntu2:/mnt/sda4/tralha/emulation/zx81/jogos_melhores/n$
it seems to be not cheking '/data/' also from '/usr/share/sz81/'?
Hello (is that Paulo?)
The problem is that you compiled the project using the default "Run from current folder" settings and then moved the data folder so that the sz81 binary can't find it anymore.
Towards the top of the Makefile, comment-out the "Run from current folder" variable group and at the very top of the Makefile uncomment the "System wide installation" variable group. Then change the PREFIX?="/usr/local" to PREFIX?="/usr" and type:
make clean
make
sudo make install
Regards,
Thunor