Help including NightFox’s Lib into hello world example

Discussion in 'NDS - Emulation and Homebrew' started by pistone, Dec 7, 2013.

  1. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    2
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    i would like to put (include) nflib into a simple hello world example but i cant :wacko:
    I dont know where to put nflib directory i cant find any info also i must say i am on linux so i cant find a IDE making the dirty work for my , now im with gedit. :tpi:
    Does anyone have any idea?
     
  2. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    26
    Sep 13, 2009
    Poland
    Gaming Grotto
    This is a good place to start, although I haven't updated it in a while and it needs some editing. The tutorial is Windows-oriented, but including NFLib does not require you to jump through hoops, as far as I know, you just need to toss it into the devkitPro installation folder and you're good to go. As for the Makefile, look through the template provided with the library.
     
  3. madeinair

    madeinair Advanced Member

    Newcomer
    1
    Jul 16, 2011
    A good tip for making a compatible make file is using the example makefiles, just run the current makefile and the example makefile through a text difference checker (e.g. http://www.diffchecker.com/), find the differences and merge the changes of the example makefile into your current makefile, it should work then.
    P.S. remember to backup your original makefile incase this trick doesn't work.
    Hope that helped !
     
  4. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    2
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    Hello all :lol:
    And thank you for your reply :wub:

    Foxi4 i have read you awesome post , thats why i made a new thread as it was windows oriented
    also i put the nflib folder on the root of devkitPro folder and then tried to "make" a example (text16)
    but this errors shows up :
    arm-none-eabi/bin/ld: cannot find -lfilesystem
    bad code ...very bad code...:whip:
    madeinair what if a take the nflib makefile and put it on a libnds example shouldn't that work ?
     

    Attached Files:

  5. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    26
    Sep 13, 2009
    Poland
    Gaming Grotto
    That's not a NightFox error, that's a devkitPro error. Make sure that your toolchain is complete.
     
  6. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    2
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    i have tried "make" on the default devkitPro examples and they work :unsure:
    Do you think i need to re-download devkitPro?
     
  7. madeinair

    madeinair Advanced Member

    Newcomer
    1
    Jul 16, 2011
    The makefile of libnds might have it's own resources included, if you were to overwrite it with nflib you would lose libnds makefile references throwing out errors.
    That's why you need to combine them, combine references from both makefiles to get it to compile.
    Hope that helped
     
  8. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    26
    Sep 13, 2009
    Poland
    Gaming Grotto
    If the default compilation doesn't work, it means the toolchain is borked. Re-install. ;)
     
  9. pistone
    OP

    pistone GBAtemp Advanced Fan

    Member
    2
    Feb 18, 2010
    Albania
    in your heart...coz secretly you love me !!!!
    Thank you all i used the automatic script installer and everything now works like a charm :D
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice