Homebrew DevkitPro error

  • Thread starter Thread starter Astrr
  • Start date Start date
  • Views Views 5,079
  • Replies Replies 13

Astrr

Member
Newcomer
Joined
Feb 10, 2017
Messages
8
Reaction score
2
Trophies
0
XP
86
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.
 
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 :)
 
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?
 
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
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)
 
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
 
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
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.
 
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
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
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