Homebrew Help including NightFox’s Lib into hello world example

pistone

Well-Known Member
OP
Member
Joined
Feb 18, 2010
Messages
503
Trophies
0
Age
36
Location
in your heart...coz secretly you love me !!!!
XP
242
Country
Albania
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?
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,854
Trophies
3
Location
Gaming Grotto
XP
29,944
Country
Poland
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.
 

madeinair

Well-Known Member
Newcomer
Joined
Jul 16, 2011
Messages
50
Trophies
0
XP
81
Country
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 !
 

pistone

Well-Known Member
OP
Member
Joined
Feb 18, 2010
Messages
503
Trophies
0
Age
36
Location
in your heart...coz secretly you love me !!!!
XP
242
Country
Albania
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 ?
 

Attachments

  • error.txt
    827 bytes · Views: 256

madeinair

Well-Known Member
Newcomer
Joined
Jul 16, 2011
Messages
50
Trophies
0
XP
81
Country
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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • pball79 @ pball79:
    I originally came here to get themes for my vWii, but I got distracted by these chatrooms
  • pball79 @ pball79:
    so I made an account
    +1
  • Xdqwerty @ Xdqwerty:
    @pball79, here im mostly active in the chat btw
    +1
  • pball79 @ pball79:
    I'm probably gonna stay here as well
    +1
  • Xdqwerty @ Xdqwerty:
    Coming back to my house in 30 min
    +1
  • a_username_that_is_cool @ a_username_that_is_cool:
    Concept: pinocchio but instead of his nose growing, everything BUT his nose grows
  • NinStar @ NinStar:
    everything else you say?
  • DTApple @ DTApple:
    Except that.
  • Psionic Roshambo @ Psionic Roshambo:
    I would do anything for love, but I won't do that? Lol
  • K3Nv2 @ K3Nv2:
    Each time psi lies his penis does in fact get bigger
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Lol damn so that's why it's tiny... Lol
  • K3Nv2 @ K3Nv2:
    Looks pretty massive to me
  • BigOnYa @ BigOnYa:
    Looks don't matter, you gotta sample the product first
    +1
  • K3Nv2 @ K3Nv2:
    If it didn't then why won't your wife leave my place
  • BigOnYa @ BigOnYa:
    rick james- Cocaine is a hella of a drug
    +1
  • BigOnYa @ BigOnYa:
    Nuh for real tho, tell her to get food on her way home, I feel like cheeseburgers tonight
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Tried to get McDonald's on the way home app glitched lol
  • Psionic Roshambo @ Psionic Roshambo:
    Now I'm like ughh what to eat....
  • K3Nv2 @ K3Nv2:
    They keep bringing back $1 big macs the bastards know how to fuel addiction
  • K3Nv2 @ K3Nv2:
    Apps should allow us to use deals and rewards two sperate things
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah for sure lol
  • K3Nv2 @ K3Nv2:
    I tried frozen pf changes for $5 not really worth it
  • Psionic Roshambo @ Psionic Roshambo:
    Hell the normal restaurant kinda sucks too
    Psionic Roshambo @ Psionic Roshambo: Hell the normal restaurant kinda sucks too