Page 2 of 2

Posted: Thu Nov 01, 2012 2:51 pm
by stefano
Forgot to say, you need to run "make config" to create the missing cfg files.

Posted: Thu Nov 01, 2012 4:42 pm
by decfreak
Hello Stefano,

yes, also with the last nightly build (downloading and testing every morning) the problem ist still there.

Posted: Thu Nov 01, 2012 4:47 pm
by decfreak
These posts have interfered.

As I'm using the default Makfefile the config is done within that, and the config are generated perfectly.
The problem is that they are not copied to the proper directory in /usr/local/lib/z88dk/lib/ .
That's why I added these three lines to the Makefile.

Posted: Sun Mar 10, 2013 1:22 pm
by ensjo
Trying to install z88dk into my MacBook with OS X Mountain Lion, I had the same "Can't open config file" as decfreak, and his "3-lines patch" worked for me.

Posted: Mon Mar 11, 2013 1:02 pm
by stefano
Ok, I just added the three lines in the Makefile, they don't look dangerous in after all :D

Posted: Wed Mar 13, 2013 3:07 pm
by stefano
Do to my error they harmed a little the nightly batch, but now they're up and running ;)

Posted: Mon Sep 16, 2013 7:22 am
by wintermute
Hi!

With the addition of the GLIB dependancy of Z80ASM, the latest CVS source code doesn?t compile on Mac OS X.

Which would be the steps to solve this? Installing a GLIB dev build on OS X?

Edit: I found this webpage: http://rudix.org/packages.html with GLib prebuilt packages for Mac OS X. Will try them to see if they solve something.

Regards.

Posted: Wed Sep 18, 2013 7:22 pm
by wintermute
Hello again,

Tried it and I didn't succeed. :-(

I've installed glib and pkg-config packages from the webpage above for Mountain Lion and everything goes fine until this perl script is executed:

Code: Select all

perl tools/make_init.pl memalloc.h strpool.h errors.h codearea.h
It fails finding these imports:

Code: Select all

use Modern::Perl;
...
use Win32::Autoglob;
use Template::Tiny;
Any clues about how to go one step beyond? I am quite lost with Perl things. :rolleyes:

Hope someone has better luck!

Kind regards.

Posted: Fri Oct 04, 2013 11:08 am
by garrafonsoftware
wintermute wrote:Hope someone has better luck!
Seems that the z80asm modules is still being updated, maybe you'd better wait until it's finished. :)

Posted: Mon Nov 11, 2013 11:11 am
by dom
There's now a nightly build being produced for Mac OSX that includes the glib dependency - let me know how you get on with it.

Posted: Sat Nov 23, 2013 8:41 am
by pasi
The build fails. I'm on OSX Lion.

I'm using:

Code: Select all

cd z88dk
./build.sh
And I'll get:

Code: Select all

rm -f strlcat_callee.o
rm -f strlcpy_callee.o
rm -f strlen.o
cd printflike ; make ; cd ..
make[1]: Nothing to be done for `all'.
cd time ; make lz88 ; cd ..
cd z88 ; make ; cd ..
make[2]: Nothing to be done for `all'.
cd rs232 ; make lz88 ; cd ..
cd z88 ; make ; cd ..
make[2]: Nothing to be done for `all'.
cd setjmp ; make ; cd ..
make[1]: Nothing to be done for `all'.
cd assert ; make ; cd ..
make[1]: Nothing to be done for `all'.
z80asm -d -ns -nm -Mo -x./z88net_clib @./z88net.lst
Error at file 'strings/string.lst' line 60: cannot read file 'strings/strrchr_callee.o'
1 errors occurred during assembly
make: *** [z88net_clib.lib] Error 1
cp ./*.lib ../lib/clibs
EDit: I scrolled up the result, there are more errors earlier, like

Code: Select all

rm -f strlcat_callee.o
rm -f strlcpy_callee.o
rm -f strlen.o
cd printflike ; make ; cd ..
make[2]: Nothing to be done for `all'.
cd time ; make lz88 ; cd ..
cd z88 ; make ; cd ..
make[3]: Nothing to be done for `all'.
cd rs232 ; make lz88 ; cd ..
cd z88 ; make ; cd ..
make[3]: Nothing to be done for `all'.
cd setjmp ; make ; cd ..
make[2]: Nothing to be done for `all'.
cd assert ; make ; cd ..
make[2]: Nothing to be done for `all'.
z80asm -d -ns -nm -Mo -x./z88net_clib @./z88net.lst
Error at file 'stdlib/stdlib.lst' line 45: cannot read file 'stdlib/delay.asm'
Error at file 'stdlib/stdlib.lst' line 47: cannot read file 'stdlib/sleep.asm'
Error at file 'stdlib/stdlib.lst' line 48: cannot read file 'stdlib/csleep.asm'
Error at file 'strings/string.lst' line 63: cannot read file 'strings/strrstr_callee.o'
4 errors occurred during assembly
make[1]: *** [z88net_clib.lib] Error 1
make: *** [libs] Error 2
Then, there are plenty of warnings, like

Code: Select all

--- Building Z88 Network Aware Library ---
cd fcntl ; make lz88 ; cd ..
cd z88 ; make z88_fcntl ; cd ..
make[2]: Nothing to be done for `z88_fcntl'.
cd stdio ; make lz88net ; cd ..
zcc +z88 -O3 -vn -make-lib -Wn43 -DNET_STDIO fclose.c
zcc +z88 -O3 -vn -make-lib -Wn43 -DNET_STDIO fgetc.c
zcc +z88 -O3 -vn -make-lib -Wn43 -DNET_STDIO fputc_callee.c
zcc +z88 -O3 -vn -make-lib -Wn43 -DNET_STDIO freopen_z88.c
sccz80:"freopen_z88.c" L:51 Warning:#36:In function: freopen_z88() line 29
sccz80:"freopen_z88.c" L:51 Warning:#12:Converting far ptr to near ptr
sccz80:"freopen_z88.c" L:56 Warning:#9:Converting pointer to integer without cast

Posted: Sat Nov 23, 2013 8:58 am
by stefano
Warnings are normal, missing files aren't.
It is looking for delay.asm because delay.o is missing.
A bit before you should see the calls to zcc to build delay.c and the others.. could you post the error messages ?

Posted: Sat Nov 23, 2013 4:12 pm
by pasi
I don't have the screenbuffer of that compilation saved, so I did "make clean" and ./build.sh again.

And this time it doesn't show those 'cannot read file 'stdlib/delay.asm' etc anymore. Weird.

But the "cannot read file 'strings/strrchr_callee.o'" stays.

And I can see that "missing" file strrchr_callee.o, it's under libsrc/strings

Posted: Tue Dec 17, 2013 5:55 pm
by garrafonsoftware
Hil folks,
dom wrote:There's now a nightly build being produced for Mac OSX that includes the glib dependency - let me know how you get on with it.
Sorry for the delay in testing this. I've downloaded a nightly (16/12/1013) and seems to be working fine. :)

The steps I've used are these: uncompress the TGZ file to a directory in my $HOME directory, then the directory 'z88dk' is created. Then I run once to reconfigure paths:

Code: Select all

$ cd $HOME/z88dk
$ sh config.sh $HOME/z88dk/
(the last slash in 'config.sh' parameter is important)

And start using it with:

Code: Select all

$ PATH=$HOME/z88dk/bin:$PATH
$ Z80_OZFILES=$HOME/z88dk/lib/
$ ZCCCFG=$HOME/z88dk/lib/config/
$ export PATH
$ export Z80_OZFILES
$ export ZCCCFG