The videomode is defined in the main.c:
s=SDL_SetVideoMode(XS,YS,16,flags);
And in the makefile with this:
-DXS=320 -DYS=240
Guess that?s right?
Thanks for that strace idea, it?s bundled with the windows toolchain by SiENcE i use, but i always get an error "error while creating process yellow_rose"... Only works on the target system?
Now i tried your strace on the Dingoo and it works fine, i get this at the end, guess this is where the program crashes:
open("/etc/fb.modes", O_RDONLY) = -1 ENOENT (No such file or directory)
ioctl(6, 0x4b46, 0x7f9e0214) = 0
ioctl(6, 0x4b46, 0x7f9e0214) = 0
etc.pp.
Further upwards are more of these errors:
open("/dev/vc/2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tty2", O_RDWR) = 6
open("/dev/tty", O_RDWR) = -1 ENXIO (No such device or address)
Interesting is this one, why does it try to open a file in usr/lib?
open("/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 5
So it seems the compiler "forgot" to add something to the binary, or better i forgot to tell him. Will try to work it out...
Incase you or someone else want to take a look, i attached the file (- 50,000 times the last line). But you don?t have to, i?ll get it somehow. I hope.
Edit: After thinking and thinking, i guess the problem is that those files are not on the Dingoo. Will try copying all wanted files and then see if it helps. Could compiling statically help? I don?t get it to work somehow, i set the LDFLAG --static-libs but the compiled file is the same size...
Sorry for all those newbie questions...
edit2: oh well, i have to specify the lib directories...
edit3: OK, got it to compile statically (now 983kb instead of 118) but it still does not run... probably missed some libs, strace only gives two missing directories now. Advance!
But now i am lost, strace has still these errors:
open("/etc/fb.modes", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
...
open("/dev/vc/2", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/tty2", O_RDWR|O_LARGEFILE) = 6
open("/dev/tty", O_RDWR|O_LARGEFILE) = -1 ENXIO (No such device or address)
Googling tty leads to serial port, wtf? vc means virtual console... So the demo looks for those devices, but can?t find them and crashes?