Hacking Tutorial: Compile your own USB Loader!

  • Thread starter Thread starter JussiPik
  • Start date Start date
  • Views Views 21,073
  • Replies Replies 86
No I mean this:
aa.png

You see, when usbloader is loaded, it creates a black rectangle there. So I wanted to know if that rectangle (the one usbloader creates, not the one in the background) can be made transparent.

I see, okay MightyMouse, I'll be waiting
wink.gif
 
I followed your tutorial, and I am receiving errors (see below). How can I fix this?

Code:
> "make"
apploader.c
powerpc-gekko-gcc.exe: CreateProcess: No such file or directory
make[1]: *** [apploader.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01


Thanks!
unsure.gif
 
TiMeBoMb4u2 said:
I followed your tutorial, and I am receiving errors (see below). How can I fix this?

Code:
> "make"
apploader.c
powerpc-gekko-gcc.exe: CreateProcess: No such file or directory
make[1]: *** [apploader.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01


Thanks!
unsure.gif

delete the BUILD-folder (c:\USBLoader\build) completely and try compiling again,if that doesn`t work check that you have the correct
folder structure which is c:\USBLoader. (it should not be c:\USBLoader\blahblahblah\woot etc etc..)
 
inking ... USBLoader.elf
wpad.o: In function `Wpad_Init':
wpad.c:(.text.Wpad_Init+0x28): undefined reference to `WPAD_SetPowerButtonCallback'
collect2: ld returned 1 exit status
make[1]: *** [/c/USBLoader/USBLoader.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:03

Can you think any possible cause of this?Thanks
 
snaker said:
inking ... USBLoader.elf
wpad.o: In function `Wpad_Init':
wpad.c:(.text.Wpad_Init+0x28): undefined reference to `WPAD_SetPowerButtonCallback'
collect2: ld returned 1 exit status
make[1]: *** [/c/USBLoader/USBLoader.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:03

Can you think any possible cause of this?Thanks


if you messed with the source then i can`t.
 
JussiPik said:
snaker said:
inking ... USBLoader.elf
wpad.o: In function `Wpad_Init':
wpad.c:(.text.Wpad_Init+0x28): undefined reference to `WPAD_SetPowerButtonCallback'
collect2: ld returned 1 exit status
make[1]: *** [/c/USBLoader/USBLoader.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:03

Can you think any possible cause of this?Thanks


if you messed with the source then i can`t.

I didnt touch anything.I have compiled other programs before.Seriously i have no idea why i get this message!
Is there a possibility that i miss something in libogc?
 
Little question do i still need a older devkitpro to compile this like with the Backup Loaders !?

aquarion said:
No I mean this:
aa.png

You see, when usbloader is loaded, it creates a black rectangle there. So I wanted to know if that rectangle (the one usbloader creates, not the one in the background) can be made transparent.

I see, okay MightyMouse, I'll be waiting
wink.gif

Dont let the Usbloader make this rectangle or is it a console !?

@snaker: You most likely don´t have the actuall libogc
 
WiiMonkey said:
JussiPik said:
btw, did you have any errors while installing devkitpro?

No none it all went fine

EDIT: Noob proof but not WiiMonkey proof
frown.gif
cry.gif
wacko.gif

Let me guess your using VISTA

some people will get these problems when complying with vista when others dont,
 
JussiPik said:
TiMeBoMb4u2 said:
I followed your tutorial, and I am receiving errors (see below). How can I fix this?

Code:
> "make"
apploader.c
powerpc-gekko-gcc.exe: CreateProcess: No such file or directory
make[1]: *** [apploader.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01


Thanks!
unsure.gif

delete the BUILD-folder (c:\USBLoader\build) completely and try compiling again,if that doesn`t work check that you have the correct
folder structure which is c:\USBLoader. (it should not be c:\USBLoader\blahblahblah\woot etc etc..)
Deleted the "build" folder. My folder structure is correct. Same issue!

Any other ideas?

unsure.gif
 
WiiBlaster said:
WiiMonkey said:
JussiPik said:
btw, did you have any errors while installing devkitpro?

No none it all went fine

EDIT: Noob proof but not WiiMonkey proof
frown.gif
cry.gif
wacko.gif

Let me guess your using VISTA

some people will get these problems when complying with vista when others dont,
I am using Vista, but I had NO problems installing devkitpro. I'm still having build problems.


unsure.gif
 
TiMeBoMb4u2 said:
I am using Vista, but I had NO problems installing devkitpro. I'm still having build problems.


unsure.gif

He didn't say people with Vista would have issues installing DevkitPro, he said they would occur when compiling the source code (building).

Try running "Programmers Notepad" as Adminstrator (right click the short cut and choose "Run as Admin" etc). I can't test to see if this will resolve it for you or not as I'm still using XP.
 
Thanks dude!
smile.gif


But when I try I get a error:
Code:
> "make" 
apploader.c
In file included from c:/USBLoader/source/apploader.c:1:
c:/devkitPro/libogc/include/stdio.h:46:27: warning: crtdll/stddef.h: No such file or directory
In file included from c:/USBLoader/source/apploader.c:1:
c:/devkitPro/libogc/include/stdio.h:176: error: expected declaration specifiers or '...' before 'size_t'
c:/devkitPro/libogc/include/stdio.h:198: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:198: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:212: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:212: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:213: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:213: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:214: error: expected ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:215: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:215: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:216: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:216: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:217: error: expected ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:228: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:228: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:229: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:229: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:230: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:230: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:250: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fgetwc'
c:/devkitPro/libogc/include/stdio.h:251: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fputwc'
c:/devkitPro/libogc/include/stdio.h:252: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getwc'
c:/devkitPro/libogc/include/stdio.h:253: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ungetwc'
c:/devkitPro/libogc/include/stdio.h:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_filwbuf'
c:/devkitPro/libogc/include/stdio.h:256: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_flswbuf'
c:/devkitPro/libogc/include/stdio.h:278: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
c:/devkitPro/lib> "make" 
apploader.c
In file included from c:/USBLoader/source/apploader.c:1:
c:/devkitPro/libogc/include/stdio.h:46:27: warning: crtdll/stddef.h: No such file or directory
In file included from c:/USBLoader/source/apploader.c:1:
c:/devkitPro/libogc/include/stdio.h:176: error: expected declaration specifiers or '...' before 'size_t'
c:/devkitPro/libogc/include/stdio.h:198: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:198: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:212: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:212: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:213: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:213: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:214: error: expected ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:215: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:215: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:216: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:216: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:217: error: expected ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:228: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:228: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:229: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:229: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:230: warning: type defaults to 'int' in declaration of 'wchar_t'
c:/devkitPro/libogc/include/stdio.h:230: error: expected ';', ',' or ')' before '*' token
c:/devkitPro/libogc/include/stdio.h:250: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fgetwc'
c:/devkitPro/libogc/include/stdio.h:251: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fputwc'
c:/devkitPro/libogc/include/stdio.h:252: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getwc'
c:/devkitPro/libogc/include/stdio.h:253: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ungetwc'
c:/devkitPro/libogc/include/stdio.h:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_filwbuf'
c:/devkitPro/libogc/include/stdio.h:256: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_flswbuf'
c:/devkitPro/libogc/include/stdio.h:278: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
c:/devkitPro/libogc/include/stdio.h:280: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
make[1]: *** [apploader.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:00ogc/include/stdio.h:280: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
make[1]: *** [apploader.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01
What is this?

I've placed it all in: C:\USBLoader...
(Yes, only the Build , Makefile , Data etc folders/files in there...)

Thanks
smile.gif
 
Guyz, do you all understand what you are doing ? We are talking here about recompiling a software. That means to have a little understanding about what compiling and setting up a compiler means. So when I see how you all don't understand why you have linking errors once you run "make", I really wonder if you know what you are doing.

If you don't know what it does, and how to do it, don't use it, and that's all ...
 
u4Wii said:
TiMeBoMb4u2 said:
I am using Vista, but I had NO problems installing devkitpro. I'm still having build problems.


unsure.gif

He didn't say people with Vista would have issues installing DevkitPro, he said they would occur when compiling the source code (building).

Try running "Programmers Notepad" as Adminstrator (right click the short cut and choose "Run as Admin" etc). I can't test to see if this will resolve it for you or not as I'm still using XP.
Tried that. Same problem. Thanks, though.

unsure.gif
 
substring said:
Guyz, do you all understand what you are doing ? We are talking here about recompiling a software. That means to have a little understanding about what compiling and setting up a compiler means. So when I see how you all don't understand why you have linking errors once you run "make", I really wonder if you know what you are doing.

If you don't know what it does, and how to do it, don't use it, and that's all ...
I compiled MANY times in the past (not recently)! Normally, I would compile from a Linux command-line, though. So, I understand I'm getting errors, but I don't know why?! Below is the error I'm getting:

CODE> "make"
apploader.c
powerpc-gekko-gcc.exe: CreateProcess: No such file or directory
make[1]: *** [apploader.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01

wacko.gif
 
To me it looks like there's something wrong with your devkit installation. Are you sure there aren't any spaces in any filepath and you did restart your pc after the installation?
 

Site & Scene News

Popular threads in this forum