Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 69

Thread: GP2X Issues...

  1. #31

    GP2X Issues...

    Quote Originally Posted by savage
    Quote Originally Posted by paul_nicholls
    GP2X can use sdl_image, and thus load png files...I haven't tried it under freepascal yet, this is my next trick :-)

    I will get a screenshot posted soon :-)
    Looking forward to the screen shots.

    Does libpng exist on GP2X machines?
    I was getting errors when trying to use SDL_Image when compiling for the GP2X

    [code]]

    Also, with the later source code I used to re-create the cross-compiler, I don't seem to now be able to use the SDL_getenv function anymore...returns blank for some reason (not that I need it currently anyway)

    On a side note, I have started up a web page (no downloads or screenies yet) here http://fpc4gp2x.eonclash.com/ as my own start for a fpc4gp2x initiative

    And I have done a small update to the http://wiki.freepascal.org/GP2X page.

    cheers,
    Paul.

  2. #32

    GP2X Issues...

    the pow error sounds like a lib or .h file has not been linked in.

    Sorry to hear about the loss of GetEnv, but sometimes you take a step back so you can get a better run up to jump over the obstacles .

    I was thinking on Friday that it would be cool to get SoAoS working on GP2X and since we've also added GBA support to JEDI-SDL, that would be nice as well.

    Btw, do you own or have you played any GP2X commercial ( http://gp2x.co.uk/commercial.html ) games like Wind & Water: Puzzle Battles ( http://www.yuan-works.com/WindAndWater/ ), or Payback
    <object><param name="movie" value="http://www.youtube.com/v/J0M4IcAczQc"></param><embed src="http://www.youtube.com/v/J0M4IcAczQc" type="application/x-shockwave-flash" width="316" height="260"></embed></object>
    or
    VEKTAR
    They all look fairly polished.

    Anyway, keep us posted about your progress.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  3. #33

    GP2X Issues...

    pow should come from math lib, so I think you can resolve this issue by linking it by -lm
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  4. #34

    GP2X Issues...

    I've just ordered PayBack on the GBA. As my son has 2 of these I can at least grab one and use that.

    Paul, I've added some fpc4gp2x info at http://wiki.gp2x.org/wiki/Alternative_SDKs

    If you would like me to change anything there, please let me know.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  5. #35

    GP2X Issues...

    [quote="Legolas"]pow should come from math lib, so I think you can resolve this issue by ]

    hmm..I am pretty sure I am already linking in -lm (see below)

    Code:
    arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res -lm -lstdc++ -lgcc_eh -lpthread -lvorbisidec -lmikmod -lpng -lpng12 -lz -lSDL -ljpeg -lfreetype -lc -lgcc
    Paul.

  6. #36

    GP2X Issues...

    Quote Originally Posted by savage
    the pow error sounds like a lib or .h file has not been ]http://gp2x.co.uk/commercial.html[/url] ) games like Wind & Water: Puzzle Battles ( http://www.yuan-works.com/WindAndWater/ ), or Payback
    <object><param name="movie" value="http://www.youtube.com/v/J0M4IcAczQc"></param><embed src="http://www.youtube.com/v/J0M4IcAczQc" type="application/x-shockwave-flash" width="316" height="260"></embed></object>
    or
    VEKTAR
    They all look fairly polished.

    Anyway, keep us posted about your progress.
    I have played Vektar as it comes with the GP2X installed into the NAND memory. It is pretty cool :-)

    What is SoAoS again?
    Paul.

  7. #37
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    GP2X Issues...

    Quote Originally Posted by paul_nicholls
    What is SoAoS again?
    Siege of Avalon Open Source.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #38

    GP2X Issues...

    [quote="paul_nicholls"]
    Quote Originally Posted by Legolas
    pow should come from math lib, so I think you can resolve this issue by ]

    hmm..I am pretty sure I am already linking in -lm (see below)

    Code:
    arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res -lm -lstdc++ -lgcc_eh -lpthread -lvorbisidec -lmikmod -lpng -lpng12 -lz -lSDL -ljpeg -lfreetype -lc -lgcc
    Paul.
    Sometimes I had similar issues due to lib linking order. Try moving -lm at the end of the line, but before -lc -lgcc:

    Code:
    arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res -lstdc++ -lgcc_eh -lpthread -lvorbisidec -lmikmod -lpng -lpng12 -lz -lSDL -ljpeg -lfreetype -lm -lc -lgcc
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  9. #39

    GP2X Issues...

    [quote="Legolas"]
    Quote Originally Posted by paul_nicholls
    Quote Originally Posted by Legolas
    pow should come from math lib, so I think you can resolve this issue by ]

    hmm..I am pretty sure I am already linking in -lm (see below)

    Code:
    arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res -lm -lstdc++ -lgcc_eh -lpthread -lvorbisidec -lmikmod -lpng -lpng12 -lz -lSDL -ljpeg -lfreetype -lc -lgcc
    Paul.
    Sometimes I had similar issues due to lib linking order. Try moving -lm at the end of the line, but before -lc -lgcc:

    Code:
    arm-linux-ld.exe -static --no-warn-mismatch -s -L. -o%1.gpe link.res -lstdc++ -lgcc_eh -lpthread -lvorbisidec -lmikmod -lpng -lpng12 -lz -lSDL -ljpeg -lfreetype -lm -lc -lgcc
    Thanks Legolas, it now compiles!
    I can now compile and use SDL_Image under freepascal/delphi, and compile under GP2X (needs testing in the handheld itself yet)

    cheers,
    Paul.

  10. #40

    GP2X Issues...

    Wow it really is like magic programming, or am I missing something here? You need to move the -lm flag to a specific place?
    Does that also fix the GetEnv issue?
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

Page 4 of 7 FirstFirst ... 23456 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •