Homebrew DevkitPro error

Astrr

Member
OP
Newcomer
Joined
Feb 10, 2017
Messages
8
Trophies
0
XP
66
Country
Serbia, Republic of
When I tried to compile a 3dsx homebrew, this error appeared.
Code:
linking TSOI.elf
g:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lctru
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/g/tsoy/TSOI.elf] Error 1
"make": *** [build] Error 2
What should I do to fix it? Ask any questions if you need more info.
 

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,512
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,796
Country
Spain
You don't have ctrulib installed but that also means you don't have devkitpro installed as ctrulib is installed with the environment. Btw, as said above, reinstall devkitpro with everything selected (PSP is not needed) or make install un ctrulib máster to install It :)
 

Astrr

Member
OP
Newcomer
Joined
Feb 10, 2017
Messages
8
Trophies
0
XP
66
Country
Serbia, Republic of
It means you haven't yet installed ctrulib. (https://github.com/smealum/ctrulib)

Just download the repository, and run "make install" in the root of the libctru folder, then it should install to your DevkitPro installation. After that, try again.

I've tried. Error appears.
Code:
C:\Users\XXX>make install G:\libb\libctru
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>make G:\libb\libctru
make: Nothing to be done for `G:\libb\libctru'.

C:\Users\XXX>make install G:\libb\libctru\
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>make install G:\libb\libctru
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>
What am i doing wrong?
 

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,512
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,796
Country
Spain
I've tried. Error appears.
Code:
C:\Users\XXX>make install G:\libb\libctru
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>make G:\libb\libctru
make: Nothing to be done for `G:\libb\libctru'.

C:\Users\XXX>make install G:\libb\libctru\
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>make install G:\libb\libctru
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>
What am i doing wrong?
Seem you're trying to compile the wrong folder. You must do the make install where the makefile is
 
  • Like
Reactions: Astrr
D

Deleted User

Guest
I've tried. Error appears.
Code:
C:\Users\XXX>make install G:\libb\libctru
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>make G:\libb\libctru
make: Nothing to be done for `G:\libb\libctru'.

C:\Users\XXX>make install G:\libb\libctru\
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>make install G:\libb\libctru
make: *** No rule to make target `install'.  Stop.

C:\Users\XXX>
What am i doing wrong?
In CMD, "cd" to the directory where the makefile is.
Code:
cd g:\libb\libctru

Then just run "make install" (and nothing else)
 

Astrr

Member
OP
Newcomer
Joined
Feb 10, 2017
Messages
8
Trophies
0
XP
66
Country
Serbia, Republic of
Seem you're trying to compile the wrong folder. You must do the make install where the makefile is
upload_2017-2-26_13-26-52.png

I think everything is in the right place, but it doesn't work
 
D

Deleted User

Guest
I think everything is in the right place, but it doesn't work
In Windows Explorer, go to File -> Open Command Prompt while inside the directory with the Makefile, then type "make install". Alternatively, you can do what I said earlier and "cd" to that directory.
Can't stress this enough.
 
Last edited by ,
  • Like
Reactions: Astrr

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,512
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,796
Country
Spain
View attachment 79532
I think everything is in the right place, but it doesn't work
Okay, do this: delete C:\devkitPro (if you got It installed there), download devkitpro installer and run it (install It normally). It should come with ctrulib installed by default.
 

Astrr

Member
OP
Newcomer
Joined
Feb 10, 2017
Messages
8
Trophies
0
XP
66
Country
Serbia, Republic of
In Windows Explorer, go to File -> Open Command Prompt while inside the directory with the Makefile, then type "make install". Alternatively, you can do what I said earlier and "cd" to that directory.
Can't stress this enough.
IT WORKS! Thank you!)
 
Last edited by Astrr,
  • Like
Reactions: Deleted User
D

Deleted User

Guest
Maybe copying libctru.a to "/DevkitPro/DevkitARM/arm-none-eabi/lib/" will do the trick, since the Makefile scans for specified lib files in that specific directory. This should be considered a temporary workaround though, since the Makefile should also pick up libctru from /Devkitpro/libctru/lib as well, but it sometimes doesn't for some weird reason (probably user error during setup)... I had that problem once, and I still do to this day, but that's how I worked aroud that issue anyway...

If it returns a bunch of different errors after that, try also merging the whole "include" folder from ctrulib with the one located at /DevkitPro/DevkitARM/arm-none-eabi/include/ as well.

EDIT: This is replying to the below post.
 
Last edited by ,
  • Like
Reactions: Astrr

Astrr

Member
OP
Newcomer
Joined
Feb 10, 2017
Messages
8
Trophies
0
XP
66
Country
Serbia, Republic of
But still,
Code:
> "make"
linking TSOI.elf
g:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lctru
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/g/tsoy/TSOI.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01
this appears. I used make through CMD and Prog's Notepad
P.S. I can't use forums, sorry for re-posting etc

--------------------- MERGED ---------------------------

Maybe copying libctru.a to "/DevkitPro/DevkitARM/arm-none-eabi/lib/" will do the trick, since the Makefile scans for specified lib files in that specific directory. This should be considered a temporary workaround though, since the Makefile should also pick up libctru from /Devkitpro/libctru/lib as well, but it sometimes doesn't for some weird reason (probably user error during setup)... I had that problem once, and I still do to this day, but that's how I worked aroud that issue anyway...

If it returns a bunch of different errors after that, try also merging the whole "include" folder from ctrulib with the one located at /DevkitPro/DevkitARM/arm-none-eabi/include/ as well.

EDIT: This is replying to the below post.

Another error
Code:
> "make"
linking TSOI.elf
g:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/6.3.0/../../../../arm-none-eabi/lib/armv6k/fpu/3dsx_crt0.o: In function `ClrLoop':
(.crt0+0x8c): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/g/tsoy/TSOI.elf] Error 1
"make": *** [build] Error 2
Maybe i'll send you makefile/the whole project and you will check it?
 
Last edited by Astrr,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Slower speeds for gen4
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=1hp24nDVKvY