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
    I got it working too thanks
    Last edited by slenkar; 13-11-2010 at 06:17 PM.

  2. #2
    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

  3. #3
    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

  4. #4
    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!

  5. #5
    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?

  6. #6
    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
  •