hth313 / Calypsi-CX16-hello-world

Example "Hello World" project for Calypsi and Commander X16
Other
0 stars 0 forks source link

Make file error and missing file. #1

Open SplitSpine opened 7 months ago

SplitSpine commented 7 months ago

Installed 5.2 deb on Ubuntu 23.10

I think there is a typo in your make file, for CX16:

cc6502 --target=x16 -O2 --list-file=obj/main.lst -o obj/main.o src/main.c option --target: unexpected 'x' expecting "C64", "CX16", "Foenix", or "MEGA65"

Fixed that, but now I get this: ln6502 --target=cx16 cx16-plain.scm -o hello.prg obj/main.o --output-format=prg --list-file=hello-cx16.lst clib-65cnr02-cx16.a: openBinaryFile: does not exist (No such file or directory)

Can't find that file anywhere?

hth313 commented 7 months ago

There are two problem due to late changes to Calypsi related to Commander X16.

First x16 was renamed cx16 as it seemed to be more commonly used name, you already appear to have worked around that and I updated the project as well.

Second, it was decided to migrate the X16 towards support for 65816, so it ended up with the 65cnr02 core by default (65c02 without Rockwell extensions). This requires other libraries, but they were not packed with the final Calypsi product due to that I forgot to update it. I have fixed that for the next release.

To work around the issue, add --core=65c02 to enable 65c02 (instead of 65cnr02), this has to be done at every command line with --target=cx16 that you already fixed. This works if your X16 has a 65c02 and not the 65816.

hth313 commented 7 months ago

I decided to update the project to 65C02, better have it working and most machines are on the 65C02 at the moment. So now it should compile if you update the project.