Results 1 to 10 of 11

Thread: Fpc4Nds on ubuntu 10.10

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Here:

    ftp://ftp.freepascal.org/fpc/snapshot/trunk/arm-nds/

    I have uploaded the i386-linux package only, but a win32 version will follow soon.

    I'll upload the very last fpc4nds version from now on at this address, every time it is needed to update it, e.g. in case of devkitARM updates, so it should be easier to get a fresh working copy.

    Out of topic, I have made a small bash script to compile and make the i386-linux package. Because I'm not in linux at all, I can't find a way to copy only executable files from a directory to another. Any advice?
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  2. #2
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    you may have to use sudo to get root access so:

    Code:
    sudo cp -r source_directory destination_directory

    should so. Giving fpc4nds a spin, but I get some access denied and segfaults. Trying to fix it atm.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  3. #3
    Of course you will need to install devkitARM following this guide:

    http://devkitpro.org/wiki/Getting_Started/devkitARM

    then add the fpc4nds path to ~/.bashrc:

    export PATH=/opt/fpc4nds/bin/arm-nds:$PATH

    and reload it:

    source ~/.bashrc

    Add a file .fpc.cfg in your home directory:

    Code:
    #IFDEF nds
    -Tnds 
    -XParm-eabi- 
    -Fu/opt/fpc4nds/units/$fpctarget
    -Fu/opt/fpc4nds/units/$fpctarget/*
    -Fu/opt/fpc4nds/units/$fpctarget/rtl
    -Fu/opt/fpc4nds/units/$fpctarget/libndsfpc
    -FD/opt/fpc4nds/bin/arm-nds
    -Fl/opt/devkitPro/libnds/lib
    #IFDEF __THUMB__ 
     -Fl/opt/devkitPro/devkitARM/lib/gcc/arm-eabi/4.5.1/thumb
     -Fl/opt/devkitPro/devkitARM/arm-eabi/lib/thumb
    #ELSE 
     -Fl/opt/devkitPro/devkitARM/lib/gcc/arm-eabi/4.5.1
     -Fl/opt/devkitPro/devkitARM/arm-eabi/lib
    #ENDIF 
    #ENDIF nds
    I forgot to add a readme in the package...

    BTW, this is for 32 bit (tested on Ubuntu 10.10)


    About cp -r, I need to copy executable files only from a directory with mixed execs and .pas files. In windows I can do something like copy *.exe, but I can't find a suitable way to do the same thing in linux
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  4. #4
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    cp -r recursively copies files. you can always do:
    [/code]
    sudo cp -r *.* /opt/fpc4nds/
    [/code]

    which will copy ALL files in the current directory to /opt/fpc4nds...


    About that .fpc.cfg - if you do that it compiles all your code to nds... I think I will set up a fpc4nds user and dump everything there
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  5. #5
    That, or (just read here) you can ignore the default fpc.cfg and pass another cfg file to the compiler:

    fpc -n @myconfigfile.cfg hello.pp
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #6
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    sweet, I missed that one lets get started... Shame I have to use gnome to code: my kde keeps crashing geany? I mean whaaaat?
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

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
  •