Mac OSX

Problems installing on other platforms
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Forgot to say, you need to run "make config" to create the missing cfg files.
decfreak
New member
Posts: 3
Joined: Wed Sep 12, 2012 6:25 pm

Post by decfreak »

Hello Stefano,

yes, also with the last nightly build (downloading and testing every morning) the problem ist still there.
decfreak
New member
Posts: 3
Joined: Wed Sep 12, 2012 6:25 pm

Post 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.
Last edited by decfreak on Thu Nov 01, 2012 4:49 pm, edited 1 time in total.
ensjo
Member
Posts: 15
Joined: Sat Mar 09, 2013 2:14 pm

Post 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.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Ok, I just added the three lines in the Makefile, they don't look dangerous in after all :D
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Do to my error they harmed a little the nightly batch, but now they're up and running ;)
wintermute
Member
Posts: 16
Joined: Thu Feb 24, 2011 7:03 pm

Post 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.
Last edited by wintermute on Mon Sep 16, 2013 8:57 am, edited 1 time in total.
wintermute
Member
Posts: 16
Joined: Thu Feb 24, 2011 7:03 pm

Post 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.
garrafonsoftware
Member
Posts: 14
Joined: Fri Oct 04, 2013 10:50 am

Post 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. :)
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Post 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.
pasi
New member
Posts: 3
Joined: Fri Nov 22, 2013 11:06 pm

Post 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
Last edited by pasi on Sat Nov 23, 2013 8:52 am, edited 1 time in total.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post 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 ?
pasi
New member
Posts: 3
Joined: Fri Nov 22, 2013 11:06 pm

Post 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
garrafonsoftware
Member
Posts: 14
Joined: Fri Oct 04, 2013 10:50 am

Post 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
Post Reply