GP32 Mr.mirkos Sdk Replacement

Discussion in 'General Discussions' started by mr.mirko, Jan 27, 2004.

  1. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    Mhh, works here...

    make
    gcc zda_compressor.c -o zda_compressor zlib/zlib.a -O2 -s
    root:/opt/gp32-arm-elf/projecte/SDK/gp32_SDK/tool.zda_compressor#

    please post the COMPLETE error...
     
    Last edited by a moderator: Dec 17, 2015
  2. Tharo

    Tharo Still Fresh

    Joined:
    Apr 18, 2004
    Messages:
    23
    Location:
    Mannheim
    How did you made the "sync" wait?
    It seems to waits at 100Hz lcd rate the same time as at 50Hz <_<
     
  3. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    No,

    please check your real vsync rate.

    short gp_initFramebuffer ( u32 addr, u16 bitmode, u16 refreshrate )
    RETURNS
    The real set Refreshrate.
     
    Last edited by a moderator: Dec 17, 2015
  4. bobintrees

    bobintrees Still Fresh

    Joined:
    Feb 7, 2004
    Messages:
    35
    Here is the complete error:
    Code:
    $ make
    gcc zda_compressor.c -o zda_compressor zlib/zlib.a  -O2 -s
    /Temp/ccHlaOEe.o(.text+0x1ce):zda_compressor.c: undefined reference to `_compress'
    collect2: ld returned 1 exit status
    make: *** [all] Error 1
     
  5. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    If youre on windows, you need to compile zlib again. The provided zlib.a in zlib
    is compiled under linux.

    So go to zlib
    type make there too.
     
    Last edited by a moderator: Feb 2, 2016
  6. Tharo

    Tharo Still Fresh

    Joined:
    Apr 18, 2004
    Messages:
    23
    Location:
    Mannheim
    great work mirko :))
     
  7. no_skill

    no_skill gp2x! bananas! mayhem! mayham!

    Joined:
    Jan 9, 2004
    Messages:
    646
    Location:
    Austria
    you shoudl note somewhere that you can acces gp32 functions via cpp per

    Code:
    #include "cpp_prototypes.h"
    and i've got a question: how can i use new / delete with your sdk?

    and: can i use abstract classes/inheritance with your sdk?
     
  8. generalnmx

    generalnmx Playful/Fascist Mod

    Joined:
    Apr 18, 2003
    Messages:
    2,128
    Location:
    Maryland, USA
    Hmm, the MOD player included, can that only play Amiga Pro Tracker or also S3M, XM, and IT?
     
  9. no_skill

    no_skill gp2x! bananas! mayhem! mayham!

    Joined:
    Jan 9, 2004
    Messages:
    646
    Location:
    Austria
    if you want to use c++ with mrmirko's sdk you should check this thread.

    i'm going to ask mr mirko if he could add a new c++ example to the sdk.

    my topic

    btw: what about chaning the api to something like this:

    you have a new type
    Code:
    struct gpSurface{
    int width;
    int height;
    u16 *pixeldata}
    and let your bmp2bin converter spit out a gpSurface.

    and then use functions like:

    Code:
    //blits the whole surface
    void gp_blitFull(gpSurface dest, gpSurface target, int x, int y);
    //blits a part of the surface
    void gp_blitPart(gpSurface dest, gpSurface target, int x, int y, int sourcestartx, int sourcestarty, int sourceendx, int sourceendy);
    
    //the same with a transparent color
    void gp_blitFullTransparentColor(gpSurface dest, gpSurface target, int x, int y, u16 transpcolor);
    void gp_blitPartTransparentColor(gpSurface dest, gpSurface target, int x, int y, int sourcestartx, int sourcestarty, int sourceendx, int sourceendy, u16 transpcolor);
    
    //the same with an alpha value
    void gp_blitFullAlpha(gpSurface dest, gpSurface target, int x, int y, int Alpha);
    void gp_blitPartAlpha(gpSurface dest, gpSurface target, int x, int y, int sourcestartx, int sourcestarty, int sourceendx, int sourceendy, int Alpha);
    advantages are:
    • you don't have to remember w,h for every surface
    • you can also blit parts of a surface (eg: for big tilesets where you want to blit a small part)
    this is just a suggestions.

    i think it would be far more convenient if the converter also stores the height and width of a surface and you're able to only blit a part of it.
     
    Last edited by a moderator: Dec 19, 2015
  10. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    Only 4 channel amiga mod files are supported.
     
    Last edited by a moderator: Feb 2, 2016
  11. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    and i've got a question: how can i use new / delete with your sdk?
    and: can i use abstract classes/inheritance with your sdk?

    c++ has nothing to do with the SDK, its a compiler issue.
    You can use all c++ things you want..

    yes, new/delete is supported by newlib.


    If you run into some compile problems with your c++ project, try
    a other crt0.S file. ( the one in the help dir )
     
    Last edited by a moderator: Feb 2, 2016
  12. CrazyDesi

    CrazyDesi Member

    Joined:
    Apr 13, 2004
    Messages:
    446
    Last edited by a moderator: Dec 19, 2015
  13. no_skill

    no_skill gp2x! bananas! mayhem! mayham!

    Joined:
    Jan 9, 2004
    Messages:
    646
    Location:
    Austria
    thanks. i'll try the other crt0.s

    new/delete was really just a compiler issue. the c++ example isn't really a c++ example :)

    have you got my new one? will you put it in the next release? (after i fully got c++ working (there's still a strange bug that may be caused by the crt0)
     
  14. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    yes, there was a bug in my makefile, but it depends on what you want.
    Plain c++, or a mixture of c and c++.
    My example is more a mixture of c and c++,
    yours is full c++, i update the Makefile to use the c++ as linker..
     
    Last edited by a moderator: Feb 2, 2016
  15. no_skill

    no_skill gp2x! bananas! mayhem! mayham!

    Joined:
    Jan 9, 2004
    Messages:
    646
    Location:
    Austria
    i need full c++. (and i think that's what most c++ programmers want).

    i wasn't able to use the other crt0s. (don't wanted to add the new mmu lib and the ads makefile is for ads aparently). only spent 5 minutes on that though.

    but i have more imporant stuff todo atm anyway.
     
  16. Tharo

    Tharo Still Fresh

    Joined:
    Apr 18, 2004
    Messages:
    23
    Location:
    Mannheim
    Hm... Im not sure that this question makes reason but: Is your chatboard code nigel browns implementation of another one?

    So everyone is yelling about the "nigel brown version" but i do not found another one now ...
     
  17. mr.mirko

    mr.mirko Certified Guru

    Joined:
    Nov 24, 2003
    Messages:
    471
    Location:
    Germany
    The chatboard driver is a complete rewritten from spivvys original code.
    I only use spivvys keymapping file.

    Why you ask ?
     
    Last edited by a moderator: Feb 2, 2016
  18. Tharo

    Tharo Still Fresh

    Joined:
    Apr 18, 2004
    Messages:
    23
    Location:
    Mannheim
    Hm because i would add script support in my engine the next week and think about it would be very smart to code the scripts while running the gp...

    or generaly scripting support for some other stuff linke window guis and so on, too.
     
  19. Vimacs

    Vimacs Don't be evil!

    Joined:
    Oct 23, 2003
    Messages:
    5,211
    Location:
    Germany
    there isnt a " nigel brown chatboard version" all chatboards are the same (more or less)
     
  20. the_Diabologic

    the_Diabologic Member

    Joined:
    Jan 16, 2004
    Messages:
    297
    Location:
    hell
    i think, he ment the drivers :S
     

Share This Page

Loading...