Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
I'm making a program that uses graphx.h to draw a sprite that is moved with the arrow keys. However, when I `make` the project, all I get is this:

Code:
make
C CE SDK Version 8.5
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
preloader: Warning: failed to reserve range 00007fff40000000-00007fff41ff0000
Z:\Users\~\Desktop\Image\src\gfx\orange.c
Z:\Users\~\Desktop\Image\src\main.c
flat assembler  version g.ice6x-ez80
Usage: fasmg source [output]
Optional settings:
    -p limit    Set the maximum allowed number of passes (default 100)
    -e limit    Set the maximum number of displayed errors (default 1)
    -r limit    Set the maximum depth of stack (default 10000)
    -v flag     Enable or disable showing all lines from the stack (default 0)
    -i command  Insert instruction at the beginning of source
make: *** [bin/IMAGEC.bin] Error 1

I don't know what's causing the error, since it doesn't tell me anything about what's happening with IMAGEC.bin.
This was run right after `make clean`ing.
Is this a problem with the toolchain, or is it my code?
If you could post code, that would help see if the code is broken Smile
Otherwise, we don't know much...
https://hastebin.com/ixoyegulit.cpp
It's a problem with your mac setup. I don't support mac, so you'll have to ask someone that does.

Are you sure you downloaded a release and not what is on master?
If you go to ~/CEDev/examples and type make in a terminal, do all the examples get built successfully?
Reinstalling CEdev worked, now it's doing something about my sprite's color palette:

Code:
make
C CE SDK Version 8.5
flat assembler  version g.ice6x-ez80
/Users/~/CEdev/include/fasmg-ez80/ld.fasmg [760] macro ? [637] macro handle [5] macro parse [303] obj/main.src [221]:
   XREF _orange_pal:ROM
macro ? [6] macro XREF [3] macro ? [1]:
   . def
Processed: . := global._orange_pal
Error: symbol '_orange_pal' is undefined or out of scope.
make: *** [bin/IMAGEC.bin] Error 2
Are you sure orange_pal exists in the gfx directory, and isn't named incorrectly? Wink
MateoConLechuga wrote:
Are you sure orange_pal exists in the gfx directory, and isn't named incorrectly? Wink

yes. Also, should the gfx directory be in the src directory with main.c? Because I put it there.
Well you may need to upload the files somewhere so we can test.
https://github.com/Zexxerd/ImageC
I have no idea what you tried to do, but the issue is for some reason you copied windows_convpng.exe into the gfx folder... you do not need to download convpng, convtile, convhex, or any of the others as they are provided in the toolchain. Simply run 'make gfx' instead of just 'make' to build your graphics properly.

Helpful guide: https://github.com/CE-Programming/toolchain/wiki/GraphX-Library:-Creating-sprites
I'm trying to draw an image that the user can move across the screen using the arrow keys. The player's X and Y positions are drawn on the top end of the screen. If the player goes past the screen, they warp to the other side. Pressing clear leaves the program.
The "orange" sprite is included from "gfx/orange.h".
It may be worthwhile to start with the example gfx_sprite_keys, as this closely (nearly exactly) describes what you want to do.

Also, can you please confirm that your issue is fixed please Razz
ok.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement