Comments (3)
Great.
The fixes work.
Tried all the builds.
I get errors for snake spectrum
, but that is not related to this issue,
>:~/Z80/CROSS-LIB/src$ ./xl snake spectrum
----------------------------
Cross-Lib `xl` helper script
----------------------------
Platform: linux2
GNU MAKE command: make
----------------------------
['./xl', 'snake', 'spectrum']
Project name : snake
Project type : game
Number of threads : 4
Extra optimization :
Compiler's options :
run command : make spectrum ZSDCC_MAKEFILE_THREADS_OPTS='-j 4' ZSDCC_MAKEFILE_COMPILATION_OPTS= -f games/snake/Makefile.snake
zcc +zx -DFORCE_NARROW -DFULL_LOWER_BORDER -DNO_WALL -DNO_BLINKING -Icross_lib -Icross_lib/sleep -Icross_lib/display -Icross_lib/display/graphics_mode -Icross_lib/display/alt_print -Icross_lib/include -Icross_lib/sound -Icross_lib/sound/cc65/atmos -Icross_lib/sound/cc65/c264 -Icross_lib/sound/cc65/pokey -Icross_lib/sound/cc65/sid -Icross_lib/sound/cc65/vic20 -Icross_lib/sound/cc65/gamate -Icross_lib/sound/cc65/creativision -Icross_lib/sound/cc65/pet -Icross_lib/sound/z88dk/bit_bang -Icross_lib/sound/z88dk/gb -Icross_lib/sound/z88dk/psg -Icross_lib/sound/lcc1802/comx -Icross_lib/sound/cmoc/mo5 -Icross_lib/sound/generic -Icross_lib/text -Icross_lib/input -Icross_lib/rand -Icross_lib/display/redefine_characters -Icross_lib/display/tiles -Igames/snake/generated_assets -Igames/snake \
-pragma-include:cross_lib/cfg//z88dk/zpragma_clib.inc \
-pragma-redirect:getk=getk_inkey \
-DALT_SLEEP \
-DANIMATE_PLAYER \
-DSOUNDS \
-DZ88DK_JOYSTICK \
-D_XL_SLOW_DOWN_FACTOR=3300 \
\
-D__SPECTRUM__ \
-lndos -create-app \
-DCONIO \
-DUDG_GRAPHICS \
-pragma-redirect:fputc_cons=fputc_cons_generic \
-o ../build/Xsnake_spectrum_48k.prg \
cross_lib/display/init_graphics/z88dk/udg/udg_init_graphics.c \
games/snake/generated_assets/z88dk_xchase.asm \
cross_lib/sleep/sleep_macros.c cross_lib/display/display_macros.c cross_lib/input/input_macros.c cross_lib/text/text_macros.c games/snake/main.c games/snake/control_player.c games/snake/move_snake.c games/snake/snake.c games/snake/game_text.c games/snake/variables.c
games/snake/main.c:931:1: error: Missing token, expecting ( got {
games/snake/main.c:931:1: error: Illegal Argument Name:
games/snake/main.c:932:7: error: Illegal Argument Name:
games/snake/main.c:932:10: error: Illegal Argument Name:
games/snake/main.c:932:12: error: Illegal Argument Name:
games/snake/main.c:933:1: error: Illegal Argument Name:
games/snake/main.c:934:15: error: Illegal Argument Name:
games/snake/main.c:935:14: error: Illegal Argument Name:
games/snake/main.c:935:16: error: Illegal Argument Name:
games/snake/main.c:935:17: error: Illegal Argument Name:
Maximum (10) number of errors reached, aborting!
Compilation aborted
make: *** [games/snake/Makefile.snake:1992: spectrum_48k] Error 1
>:~/Z80/CROSS-LIB/src$
from cross-lib.
@feilipu thanks for helping me find an issue :-)
Thanks again for reporting the issue with Cross Snake. I found the problem and the trivial fix, i.e., dos2unix games/snake/main.c
.
By the way, Cross-Lib can be used to build the very same games on 200 targets over several different dev-kits, not just Z88DK, but also CC65, CMOC (6809), LCC1802 (RCA 1802), etc... and even native builts (target ncurses
or empty target).
from cross-lib.
Thanks a lot for providing the details.
The problem is in the asset generation. My bad.
xl
uses a makefile target which:
- generates assets for a specific game (same for all targets with the same tile geometry)
- builds the binary/image
- cleans things up
The problem is that I forgot to include step 1 for these target targets.
It is now fixed.
Please do a git pull
to see if you can build these targets.
By the way, the standard games for the spectrum are build with:
xl chase spectrum
xl bomber spectrum
xl shoot spectrum
xl snake spectrum
xl horde spectrum
All the examples in examples
are build the same way, i.e., xl <game/example>
from cross-lib.
Related Issues (20)
- make: *** No rule to make target 'examples/color/generated_assets/cmoc_udc_25_tiles_and_fonts.s', needed by 'coco'. Stop. HOT 11
- [new feature] chase coco has no color output HOT 3
- ld65: Warning: cross_lib/cfg//cc65/vic20-8k_GFX.cfg(17): Segment 'CODE' overflows memory area 'RAMEXP' by 3 bytes HOT 6
- MO5/TO7 makefile error "cmoc_udc_25_tiles" HOT 2
- MO5/TO7 f2k5.exe is not running on Cygwin HOT 6
- Cygwin Perl last version have no "perl.exe" HOT 1
- "./xl build chase zx81" errors HOT 11
- [new feature] Build tools automatically from C source for both Cygwin/Windows and Unix flavors (Linux, FreeBSD)
- Xsnake_coleco.rom Not Working HOT 9
- [z88dk-zsdcc] - testing v4.3.0 HOT 4
- No known emulator HOT 2
- How to build for the Sega SG 1000? HOT 4
- corrections/clarifications in documentation HOT 7
- Loaded question: output to emulators, webassembly + canvas? HOT 6
- Please add SDCC support HOT 3
- Case issue with src/Makefile.common when building c128 targets in Linux HOT 3
- xl script missing
- Linker error when compiling for 'mc10' target HOT 4
- Cannot find definition for -clib=gencon (when building for c128) HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cross-lib.