Results 1 to 10 of 12

Thread: Is it possibe to use Lazarus fir NDS development

Hybrid View

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

    Re: Is it possibe to use Lazarus fir NDS development

    Quote Originally Posted by AAG
    PS :
    I've got a few screen shots/instructions of how I got it installed - I'll post the instructions here over the next week as it might help others new to the world of lazarus/fpc and targeting different cpus to get up and running.
    Hey that'd be awesome. Also if you are interested in making a magazine article out of it I can see about putting it into issue 3 of Pascal Gamer Magazine. I'm always on the look out for some good solid articles like this.

    Glad you got your platform setup now go show us some NDS games!
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #2
    I got it working too thanks
    Last edited by slenkar; 13-11-2010 at 06:17 PM.

  3. #3
    the examples work except for the ones that need an include like texture.bin.inc
    I have the texture.bin file but it needs to be texture.bin.inc
    if i rename it I get errors

  4. #4
    Remember, you need to convert it into delphi code from binary data

    There should be a tool that can do that. I cant remember the name. bin2inc or something
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  5. #5
    texture.bin is converted in an include file by using the provided makefile:

    Code:
    set PATH=%PATH%;c:\fpc4nds\bin\arm-nds
    make OS_TARGET=nds CPU_TARGET=arm BINUTILSPREFIX=arm-eabi- PP=ppcarm.exe
    I don't know if "make" can be called by Lazarus; however you could call "make" the very first time, in order to generate the inc files, then use Lazarus as usual
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #6
    so the executable that makes the bin into an inc is in the arm-nds folder and it begins with arm-eabi ??

    How do I make an image into a BIN file?

  7. #7
    No, there is a little neat program called bin2s, that produces assembly files from binaries (texture.bin.s), then the makefile uses a "trick" to generate a pascal include file (texture.bin.inc). In the last step it calls the assembler to make an object file (texture.bin.o) from texture.bin.s.

    About your other question, grit or wingrit should do the trick
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

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
  •