mega happy sprite version 1 is out!
Posted: Wed Aug 01, 2012 2:59 am
Sega Megadrive/Genesis development
https://gendev.spritesmind.net/forum/
https://gendev.spritesmind.net/forum/viewtopic.php?f=7&t=1211
Hi. Long time no seesigflup wrote:oh! ./mega -w starts windowed mode. Maybe you're right- I'll change the default to windowed mode
EDIT: ok, the default is now windowed-mode. No saving what your preference is as of yet, I'll do that later
tristanseifert wrote:Hey, that's very nice. I was gonna write a sprite editor but now it seems I don't have to =P
I'm gonna try to see if I can compile this on OS X - it just links to SDL, so porting this to Windows should not be too hard unless some platform specific features are going to be used.
Thanks! Much better.sigflup wrote:oh! ./mega -w starts windowed mode. Maybe you're right- I'll change the default to windowed mode
EDIT: ok, the default is now windowed-mode. No saving what your preference is as of yet, I'll do that later
I can confirm that xxd does exist on OSX from trying it on Terminal.app. I have not tried compiling your app yet, though, but I will try later today.sigflup wrote:Holy crap! keep me informed if it compiles on OSX. Mind you you also need lex and perl in adition to SDL. Does OSX have the command, "xxd"? if so I can get rid of the perl dependency
ok, cool. I got rid of the perl dependency. I also changed the download-link, btw. since I just put it up on github. again, thank yousasuke wrote:I can confirm that xxd does exist on OSX from trying it on Terminal.app. I have not tried compiling your app yet, though, but I will try later today.sigflup wrote:Holy crap! keep me informed if it compiles on OSX. Mind you you also need lex and perl in adition to SDL. Does OSX have the command, "xxd"? if so I can get rid of the perl dependency
It does look like a well-made app, though. Good job.
Code: Select all
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 draw.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 mega.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 proc.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 vdp.c
./bin2head char\ help_text\[\] < MANUAL > help_text.h
printf "int help_text_len = %d;\n" `wc -c < MANUAL` >> help_text.h
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 bottom.c
lex mega_file.l
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 lex.yy.c
cc -c -I./gui/ `sdl-config --cflags` -O2 -w -ggdb -DDOXRANDR -m32 uu.c
cd gui && make
cc -c draw.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c font.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c gui.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c link.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c std_dialog.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c drop.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c timer.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -c load_save.c -I./ `sdl-config --cflags` -w -m32 -ggdb
cc -I./ `sdl-config --cflags` -w -m32 -ggdb -c -o menu.o menu.c
rm -rf libgui.a
ar -q -v libgui.a draw.o font.o gui.o link.o std_dialog.o drop.o timer.o load_save.o menu.o
ar: creating archive libgui.a
q - draw.o
q - font.o
q - gui.o
q - link.o
q - std_dialog.o
q - drop.o
q - timer.o
q - load_save.o
q - menu.o
ranlib libgui.a
cc -o mega draw.o mega.o proc.o vdp.o bottom.o lex.yy.o uu.o gui/libgui.a `sdl-config --libs` -O2 -ggdb -lSDL_image ./gui/libgui.a -m32
Undefined symbols for architecture i386:
"_getdirentries_is_not_available_when_64_bit_inodes_are_in_effect", referenced from:
_read_dir in libgui.a(load_save.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [mega] Error 1
ok, I got rid of getdirentries. try it nowsasuke wrote:Ok. I attempted to compile this and got this error
I googled what this message meant and it turns out that the function getdirentries is not supported on OS X Lion and newer, at least when the kernel is 64 bit. Instead, the man page suggested to use opendir and readdir instead. I might try it out and see if it works.
If you need more info, here is the man page for readdir on the apple website.
ossum!!sasuke wrote:Ok. It compiled sucessfully.