Installation problem/Linux Ubuntu Gutsy

Problems installing on other platforms
Post Reply
jp44
New member
Posts: 5
Joined: Fri Nov 28, 2008 11:40 am

Installation problem/Linux Ubuntu Gutsy

Post by jp44 »

Hi,

I've tried to install z88dk to my Ubuntu, have made both HOME and system root installations, tried also two versions (1.7, 1.8),
have defined both Z80_OZFILES and ZCCFG and PATH variables but I'm still getting this error message when trying to compile
programs:

zcc +zx synthdemo.c
cp /wd/emu/z88dk/lib/spec_crt0.opt /tmp/tmpXXo4Ye2a.opt
cp /tmp/tmpXXo4Ye2a.opt /tmp/tmpXXo4Ye2a.asm
zcpp -I. -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -DSCCZ80 -I/wd/emu/z88dk/include synthdemo.c /tmp/tmpXXDRzdIc.i
sccz80 -// /tmp/tmpXXDRzdIc.i
copt /wd/emu/z88dk/lib/z80rules.2 < /tmp/tmpXXDRzdIc.asm > /tmp/tmpXXDRzdIc.op1
copt /wd/emu/z88dk/lib/z80rules.1 < /tmp/tmpXXDRzdIc.op1 > /tmp/tmpXXDRzdIc.opt
z80asm -eopt -ns -Mo /tmp/tmpXXDRzdIc.opt
z80asm -a -m -Mo -oa.bin -i/wd/emu/z88dk/lib/clibs/zx_clib -i/wd/emu/z88dk/lib/clibs/z80_crt0 /tmp/tmpXXo4Ye2a.opt /tmp/tmpXXDRzdIc.o
2 errors occurred during assembly
Key to filenames:
/tmp/tmpXXDRzdIc.o = synthdemo.c
File '/wd/emu/z88dk/lib/clibs/zx_clib.lib', Module 'FCLOSE', Symbol not defined
Error in expression CLOSE

File '/wd/emu/z88dk/lib/clibs/zx_clib.lib', Module 'FPUTC', Symbol not defined
Error in expression WRITEBYTE


Any advices ?


Best and thanks, Jukka
Last edited by jp44 on Fri Nov 28, 2008 12:05 pm, edited 1 time in total.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

You simply miss to include the I/O library.
Since z88dk is able to support several mass storage device it is possible to bind your favourite Spectrum expansion libraries (i.e. the microdrives).
The synthdemo module doesn't need disk I/O, so you can use the "ndos" foo stub:

zcc +zx -lndos synthdemo.c

For detailed information on the fcntl drivers, you can have a look here:

http://www.z88dk.org/wiki/doku.php/libr ... trum:fcntl
jp44
New member
Posts: 5
Joined: Fri Nov 28, 2008 11:40 am

Post by jp44 »

Thanks, works now, I thougt it was something simple, tried other libraries but not this.

-Jukka
Last edited by jp44 on Fri Nov 28, 2008 2:32 pm, edited 1 time in total.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Fine. Have also a look at the other ZX Spectrum related pages:

http://www.z88dk.org/wiki/doku.php/platform:zx


See also point 5 in the main wiki menu.

http://www.z88dk.org/wiki/doku.php/start
Post Reply