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,797
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,797
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,797
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
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I have a rom of the ds version of impossible mission
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, I have a rom of the ds version of impossible mission