[Coco] building xroar

Ciaran Anscomb cocomalt at 6809.org.uk
Sun Dec 5 11:19:01 EST 2021


Joel Rees wrote:
> Okay, I got it installed under ~/usr/bin , and it created xroar/roms
> under ~/usr/share , but, of course, it doesn't know to look there.

So the default search path from ROMs is always first, "~/.xroar/roms/"
(i.e. in your home directory), and then "{prefix}/share/xroar/roms/",
where {prefix} is from the --prefix option to configure.

If you're wanting to keep ROMs in your home directory, I'd choose
the former.  If you want it system-wide; the latter.

> I can, of course, specify that on the command line,
> 
>   xroar -m mc10 -bas ~/usr/share/xroar/roms/mc10.bin
> 
> works just fine, but it would be nice if there were a configuration to
> have it look in a user-local install directory.

You want the rompath config var.  So in your ~/.xroar/xroar.conf, a line
like this should do the job:

rompath ~/usr/share/xroar/roms

(if that is indeed where you want to keep them).

Or, set the XROAR_ROM_PATH environment variable (similarly,
XROAR_CONF_PATH points to the directory your xroar.conf can be found).

There are, if anything, too _many_ ways of specifying all this ;)

HTH,

..ciaran


More information about the Coco mailing list