Author Topic: Sparrow Compo4All Manager  (Read 8575 times)

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #20 on: September 15, 2013, 10:31:04 pm »
Ignoring that problem, I'm now facing the question as to whether I'll link directly to your lib or I'll use a simple SC client. using a SC client would let me use the same source as the pandora version. but I'm not sure writing myself a SC client would be a good idea as, as I get it, all pandora software ported over would also need that. do you plan to provide such client with your lib?

If I have to write some code specific for my platform it would be some code to directly link with the lib rather than a SC client that I wouldn't really know how to distribute for all other developers...
I don't think, that I will clone SC on my own. However: you saw, that it should be quite easy to write it on your own. So feel free to share your work. Or just use my library. I had reasons to avoid another spaghetti client port. Personally I don't like the idea of calling an application inside my application... I like libraries more. Easier to return stuff. ;)

However, I took a look at your output and I have NO idea, what goes wrong. Really... It crashs at spDeleteTextBlock... That doesn't even make sense! I only call this at program end... Have to take a deeper look at the code and maybe try it on my gp2x...
« Last Edit: September 15, 2013, 10:32:35 pm by Ziz »
I am a leaf on the wind - watch how I soar. Wash

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #21 on: September 16, 2013, 04:56:53 am »
I completely agree concerning SC, but on other hand, having a SC client would mean less change in all game supporting C4All ported from the pandora... writing a tiny client would be trivial, but distributing it wouldn't be so quick... hosting a new project supporting it. In my opinion a SC client should either be part of your sparrow project or should not exist at all... guess I'll go to "linking your binary directly" way, that's good I don't like the idea of calling an external executable either...

edit: noticed I was able to publish a score from puzzletube... strange, I've tryed to publish two scores.. and only one worked, but well at least I can start working on opentyrian-c4all... tell me if you want me to run some test, now I've understood how to do some (basic) gdb I can test things for you...

offtopic: wooot gold medal: http://c4a.openpandora.org/#/puzzletube_race

edit: just build opentyrian with c4all, I hadn't really the time to test, but unlike what you wrote it seems it require libsparrow3d.so too...
« Last Edit: September 16, 2013, 01:32:23 pm by elwing »

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #22 on: September 17, 2013, 08:17:16 pm »
your tiny "sc" untested code gives a SIGSEGV the commit call accept a pointer to a NULL value, not a NULL pointer, but well, once that is fixed I was able to build OpenTyrian with c4all support, and more important I made the first place this month :) http://skeezix.wallednetworks.com:13001/scoreboard_1/opentyrian_ep_1B/ (ok, I guess the lack of competition explain that... well...)

thanks for all, and I'd gladely run some test for sparrow Compo4All manager once you'll get new builds.

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #23 on: September 18, 2013, 12:51:01 pm »
offtopic: wooot gold medal: http://c4a.openpandora.org/#/puzzletube_race
That's a bug in skeezix script. The race mode should be sorted in the other direction: Smaller scores / times are better (as "race" suggests).

Quote
edit: just build opentyrian with c4all, I hadn't really the time to test, but unlike what you wrote it seems it require libsparrow3d.so too...
Could you please specify, how do you see that? Does is complain about a missing function while linking? If so: Which is it?
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #24 on: September 18, 2013, 12:56:18 pm »
your tiny "sc" untested code gives a SIGSEGV the commit call accept a pointer to a NULL value, not a NULL pointer, but well, once that is fixed I was able to build OpenTyrian with c4all support, and more important I made the first place this month :) http://skeezix.wallednetworks.com:13001/scoreboard_1/opentyrian_ep_1B/ (ok, I guess the lack of competition explain that... well...)

thanks for all, and I'd gladely run some test for sparrow Compo4All manager once you'll get new builds.
Oh crap, you are right. I didn't check, whether I get a pointer at all. Fixed it in the repository. :D

If I find time, I will test the Sparrow C4A Manager on my gp2x. For now we have to live with the bugs, although I have no idea, why they exist. :\
I am a leaf on the wind - watch how I soar. Wash

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #25 on: September 18, 2013, 01:03:14 pm »
Could you please specify, how do you see that? Does is complain about a missing function while linking? If so: Which is it?

at link:
Code: [Select]
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spReadUntil'
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spRemoveFile'
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spSleep'
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spCreateDirectoryChain'

I can also confirm that if libSparrow3d.so is not bundled with my application I also get error about that during execution...

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #26 on: September 18, 2013, 06:46:51 pm »
Could you please specify, how do you see that? Does is complain about a missing function while linking? If so: Which is it?

at link:
Code: [Select]
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spReadUntil'
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spRemoveFile'
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spSleep'
../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spCreateDirectoryChain'

I can also confirm that if libSparrow3d.so is not bundled with my application I also get error about that during execution...
Thanks. Buck it, I really forgot about that functions.

I fixed it in the repository - I hope. ;)
I am a leaf on the wind - watch how I soar. Wash

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #27 on: September 18, 2013, 07:45:28 pm »
Thanks, will test it later before releasing everything, but I have other things to fix first... including libSparrow3d.so, while not great is not a big deal at the moment.

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #28 on: September 27, 2013, 08:14:40 am »
Ok, sorry for the long delay, I can confirm you that using almost(I just miss the "Virtualbox joysticks are ignored now" changes) the latest sparrow library still raise theses link issue with sparrow3d.
Code: [Select]
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spReadUntil'
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spRemoveFile'
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spSleep'
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spCreateDirectoryChain'

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #29 on: September 27, 2013, 02:42:10 pm »
Ok, sorry for the long delay, I can confirm you that using almost(I just miss the "Virtualbox joysticks are ignored now" changes) the latest sparrow library still raise theses link issue with sparrow3d.
Code: [Select]
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spReadUntil'
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spRemoveFile'
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spSleep'
../../sparrow3d/build/gcw/sparrow3d/libsparrowNet.so: undefined reference to `spCreateDirectoryChain'

Hi elwing. Don't worry, I don't do much these days, too. :) I am still quite glad, that someone is really interested in the stuff I do. :D

I made two new examples programs for sparrowNet, which work in the terminal and don't use any part of sparrow3d itself, just libsparrowNet and they work like a charme. In fact they do the same as "testnet". The server reads some HTTP stuff (as example) and then waits for a client. The client tests some C4A stuff (loading a profile file and receiving scores) and afterwards just sends messages to the server.

Maybe I forgot to push my changes? Could you please test, whether it works for you now?

Greetings,
Ziz
I am a leaf on the wind - watch how I soar. Wash

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #30 on: September 27, 2013, 08:26:24 pm »
Ok, I tested with the latest git and it's worst. at first it looks well, it link with only libSparrowNet.
but during execution I get this:
Code: [Select]
_________________________
< Welcome to OpenDingux ! >
 -------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

opendingux:/boot/local/home # LD_LIBRARY_PATH=. gdb ./powermanga.dge
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-gcw0-linux-uclibc".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
./powermanga.dge: No such file or directory.
(gdb) q
opendingux:/boot/local/home # cd PowerManga/
opendingux:/boot/local/home/PowerManga # LD_LIBRARY_PATH=. gdb ./powermanga.dge
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-gcw0-linux-uclibc".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /boot/local/home/PowerManga/powermanga.dge...done.
(gdb) run
Starting program: /boot/local/home/PowerManga/powermanga.dge
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
(II) configuration filename: /usr/local/home/.config/tlk-games/powermanga.conf [config_file.c:231, configfile_load]
/boot/local/home/PowerManga/powermanga.dge: can't resolve symbol 'spCreateDirectoryChain'
[Thread 0x779be380 (LWP 217) exited]

This result in a completely frozen GCW...

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #31 on: September 28, 2013, 11:13:29 am »
I can find any occurrence of spCreateDirectoryChain in the whole sparrowNet.c code.  ???

Do YOU use this in your code somewhere? Did you really recompile everything?

I will try this later on my gp2x. What exactly does powermanga do?
I am a leaf on the wind - watch how I soar. Wash

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #32 on: September 28, 2013, 07:05:25 pm »
I don't use this code anywhere, I just keep it at the basic init/quit and getprofile something + commit score... not sure of the exact name but you get the idea...

I'm not sure if I had something old still lingering, but I'm sure I did at least a "make clean" before a "make TARGET=gcw".

I'll delete completely your library from my disk and take it again...

edit: by the way the HEAD do not compile successfully, I don't think it pose problem for me as the lib compile successfully, it's only some exemples:
(not the full log the boards don't let me put over 20000 characters...
Code: [Select]
[email protected]:~/Documents/GCW_PROJ/sparrow3d$ make TARGET=gcw

....

/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -shared -Wl,-soname,libsparrow3d.so -rdynamic -o ./build/gcw/sparrow3d/libsparrow3d.so sparrowFont.o sparrowCore.o sparrowMath.o sparrowPrimitives.o sparrowMesh.o sparrowSprite.o sparrowFile.o sparrowGUI.o sparrowPrimitivesAsm.o sparrowRenderer.o sparrowText.o -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c sparrowSound.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -shared -Wl,-soname,libsparrowSound.so -rdynamic -o ./build/gcw/sparrow3d/libsparrowSound.so sparrowSound.o -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c sparrowNet.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
sparrowNet.c: In function 'spNetC4AGetGame':
sparrowNet.c:716:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_getgame_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
sparrowNet.c: In function 'spNetC4AGetScore':
sparrowNet.c:897:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_getscore_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
sparrowNet.c: In function 'spNetC4AGetScoreOfMonth':
sparrowNet.c:928:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_getscore_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
sparrowNet.c: In function 'spNetC4ACommitScore':
sparrowNet.c:1050:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_commit_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
sparrowNet.c: In function 'spNetC4ACreateProfile':
sparrowNet.c:1198:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_create_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
sparrowNet.c: In function 'spNetC4ADeleteAccount':
sparrowNet.c:1284:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_delete_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
sparrowNet.c: In function 'spNetC4AEditProfile':
sparrowNet.c:1392:4: warning: passing argument 1 of 'SDL_CreateThread' from incompatible pointer type [enabled by default]
    spNetC4AThread = SDL_CreateThread(spNetC4AUberThread,c4a_edit_thread);
    ^
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_audio.h:35:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL.h:32,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_net.h:27,
                 from sparrowNet.h:22,
                 from sparrowNet.c:18:
/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL/SDL_thread.h:88:38: note: expected 'int (*)(void *)' but argument is of type 'int (*)(int (*)(void *))'
 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data);
                                      ^
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -shared -Wl,-soname,libsparrowNet.so -rdynamic -o ./build/gcw/sparrow3d/libsparrowNet.so sparrowNet.o -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_cube.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_fill.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_gears.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_mesh.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_primitives.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_sprites.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_tube.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_yinyang.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_text.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC -fPIC -c test_target.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I.
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC testsparrow.c test_cube.o test_fill.o test_gears.o test_mesh.o test_primitives.o test_sprites.o test_tube.o test_yinyang.o test_text.o test_target.o -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d -L.  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net -lsparrow3d -o ./build/gcw/sparrow3d/testsparrow
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC testfile.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d -L.  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net -lsparrow3d -o ./build/gcw/sparrow3d/testfile
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC testnet.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d -L.  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net -lsparrow3d -lsparrowNet -o ./build/gcw/sparrow3d/testnet
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC testreal3d.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -Wl,-rpath=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib -L./build/gcw/sparrow3d -L.  -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL -lm -lSDL_net -lsparrow3d -o ./build/gcw/sparrow3d/testreal3d
/opt/gcw0-toolchain/usr/bin/mipsel-linux-gcc -DMOBILE_DEVICE -DGCW -ffast-math  -DFAST_MULTIPLICATION -DFAST_DIVISION  -O2 -fsingle-precision-constant -fPIC testnet_terminal_server.c -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include  -I. -L. -lSDL_net -lsparrowNet -o ./build/gcw/sparrow3d/testnet_terminal_server
/opt/gcw0-toolchain/usr/lib/gcc/mipsel-gcw0-linux-uclibc/4.8.1/../../../../mipsel-gcw0-linux-uclibc/bin/ld: cannot find -lsparrowNet
collect2: error: ld returned 1 exit status
make: *** [testnet_terminal_server] Error 1
« Last Edit: September 29, 2013, 04:53:01 pm by elwing »

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #33 on: September 29, 2013, 05:21:26 pm »
Ok, apart from the example not compiling it seems ok now... guess I had something old lingering... but I'm pretty sure I was doing a make clean... not sure what happened...

Thanks for the fix

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #34 on: September 29, 2013, 10:43:04 pm »
Ok, apart from the example not compiling it seems ok now... guess I had something old lingering... but I'm pretty sure I was doing a make clean... not sure what happened...

Thanks for the fix
I know this. Most of the time I fail at syncing / unmounting the sd card. So the old version is still on my gp2x and I wonder, why my change doesn't have any effect. XD

However, I (hopefully) fixed the issue about the fail of compilation of the new examples. Forget a $(LIB). ;)
I am a leaf on the wind - watch how I soar. Wash

mth

  • *
  • Posts: 298
Re: Sparrow Compo4All Manager
« Reply #35 on: October 05, 2013, 06:15:17 am »
There is a small bug in the editing:
  • choose "Account Management" (A)
  • move edit focus to the second line (R)
  • go back (B)
  • choose "Account Management" (A)
  • enter a letter (A)
At this point, the cursor is shown on the second row, but the letter appears on the first row. So the edit focus and the cursor got out of sync somehow. I'd prefer the edit focus to stay where it was, so on the second row in this example.

Also note that the ziz.gp2x.de serves OPK files as text/plain; that is probably not a good idea. Plus it makes my browser attempt to display it instead of saving it to disk. The proper mimetype for OPK files is "application/x-opk+squashfs".

Edit: And it would be useful to have "@" in a non-shift position on the virtual keyboard, since you ask people to fill in their email address.

Edit 2: When trying to view online highscores, the application crashes:
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00407110 in spDeleteTextBlock () at sparrowFont.c:930
Backtrace stopped: frame did not save the PC
I haven't submitted any scores yet, maybe it cannot deal with an empty list?

Edit 3: I have submitted some scores now and the highscore view still crashes the manager application.
« Last Edit: October 05, 2013, 07:12:44 am by mth »

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #36 on: October 05, 2013, 08:25:19 am »
Edit 3: I have submitted some scores now and the highscore view still crashes the manager application.

Woot some other PowerManga score... but meh, I'm beaten... got to make better... :)


edit: now beat that!
« Last Edit: October 05, 2013, 05:50:18 pm by elwing »

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #37 on: October 07, 2013, 01:54:14 pm »
There is a small bug in the editing:
  • choose "Account Management" (A)
  • move edit focus to the second line (R)
  • go back (B)
  • choose "Account Management" (A)
  • enter a letter (A)
At this point, the cursor is shown on the second row, but the letter appears on the first row. So the edit focus and the cursor got out of sync somehow. I'd prefer the edit focus to stay where it was, so on the second row in this example.
I can reproduce it. Thanks for the report, I will fix it, when I find time. (Most of the time will be spend for updating the package and uploading it. ^^)

Quote
Also note that the ziz.gp2x.de serves OPK files as text/plain; that is probably not a good idea. Plus it makes my browser attempt to display it instead of saving it to disk. The proper mimetype for OPK files is "application/x-opk+squashfs".
I don't own the server. Can I add the mime type to the <a href="?" >?[/url] HTML URL tag somehow?

Quote
Edit: And it would be useful to have "@" in a non-shift position on the virtual keyboard, since you ask people to fill in their email address.
Good point. I will think about it and probably change it.

Quote
Edit 2: When trying to view online highscores, the application crashes:
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00407110 in spDeleteTextBlock () at sparrowFont.c:930
Backtrace stopped: frame did not save the PC
I haven't submitted any scores yet, maybe it cannot deal with an empty list?
Edit 3: I have submitted some scores now and the highscore view still crashes the manager application.
Thanks for the bug report, but this bug is known and not solved yet. If you look a bit earlier in this thread, you will see, that elwing already posted this bug. Even with the same crash report, but however, it still doesn't make sense. Until now I didn't have time to have a look at it, sorry. It doesn't matter, whether you have a score submitted in a game or not. It always shows you all scores, not just yours. You can have a look at scores of games, that even didn't exist for the GCW. ;)
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • *
  • Posts: 284
    • http://ziz.gp2x.de
Re: Sparrow Compo4All Manager
« Reply #38 on: October 07, 2013, 01:56:03 pm »
Edit 3: I have submitted some scores now and the highscore view still crashes the manager application.

Woot some other PowerManga score... but meh, I'm beaten... got to make better... :)


edit: now beat that!
Did you build and release a game, which uses my library on the GCW zero for committing scores? :D And did you write to skeezix to get your game added to the server's games list?
I am a leaf on the wind - watch how I soar. Wash

elwing

  • *
  • Posts: 186
Re: Sparrow Compo4All Manager
« Reply #39 on: October 07, 2013, 02:13:14 pm »
Did you build and release a game, which uses my library on the GCW zero for committing scores? :D And did you write to skeezix to get your game added to the server's games list?

only PowerManga was released yet:
http://boards.dingoonity.org/gcw-releases/powermanga-port-with-compo4all-support-rc1/
I did contact skeezix to ask him to add the game and I did contact Milkshake for an artwork for his fancy c4a frontend

I have a working OpenTyrian with c4all integrated but I'm still trying to find out how to make the game shorter and well balanced for c4all, I'm waiting from return from TrashyMG on what I did yet... actually one c4all game is a full episode which should takes not far from 1hour to do... it's too long, it's also still possible to save between all levels. I'm not sure how to make that better.

 

Post a new topic