Homebrew Trouble compiling homebrew

Boogieboo6

@realDonaldTrump
OP
Member
Joined
Jul 30, 2015
Messages
965
Trophies
1
Age
23
XP
807
Country
United States
Whenever I try to use make to compile anything, it gives errors.
C:\Users\Aaron\Desktop\yeti3DS-master>make | grep error
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c: In function 'main':
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:33:2: error: too many arguments to function 'hidInit'
hidInit(NULL);
^
In file included from c:/devkitPro/libctru/include/3ds.h:42:0,
from c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:4:
c:/devkitPro/libctru/include/3ds/services/hid.h:89:8: note: declared here
Result hidInit(void);
^
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:34:2: error: too many arguments to function 'irrstInit'
irrstInit(NULL);
^
In file included from c:/devkitPro/libctru/include/3ds.h:43:0,
from c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:4:
c:/devkitPro/libctru/include/3ds/services/irrst.h:18:8: note: declared here
Result irrstInit(void);
^
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:69:19: error: 'GSPEVENT_VBlank0' undeclared (first use in this function)
gspWaitForEvent(GSPEVENT_VBlank0, true);
^
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:69:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [main.o] Error 1
make: *** [build] Error 2

C:\Users\Aaron\Desktop\yeti3DS-master>
C:\Users\Aaron\Desktop\JKSM-master>make
3dsx.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/Aaron/Desktop/JKSM-master/build/3dsx.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/Aaron/Desktop/JKSM-master/include -I/c/devkitPro/libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/Users/Aaron/Desktop/JKSM-master/build -DARM11 -D_3DS -fno-rtti -fno-exceptions -std=c++11 -c /c/Users/Aaron/Desktop/JKSM-master/source/3dsx.cpp -o 3dsx.o
c:/Users/Aaron/Desktop/JKSM-master/source/3dsx.cpp:2:18: fatal error: sf2d.h: No such file or directory
compilation terminated.
make[1]: *** [3dsx.o] Error 1
make: *** [build] Error 2

C:\Users\Aaron\Desktop\JKSM-master>
C:\Users\Aaron\Desktop\Purgification-master>make
khaxinit.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/Aaron/Desktop/Purgification-master/build/khaxinit.d -g -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/Aaron/Desktop/Purgification-master/source/include -I/c/devkitPro/libctru/include -I/c/Users/Aaron/Desktop/Purgification-master/build -DARM11 -D_3DS -DLODEPNG_NO_COMPILE_ENCODER -fno-rtti -fno-exceptions -std=gnu++11 -c /c/Users/Aaron/Desktop/Purgification-master/source/khaxinit.cpp -o khaxinit.o
c:/Users/Aaron/Desktop/Purgification-master/source/khaxinit.cpp: In function 'Result KHAX::IsNew3DS(bool*, u32)':
c:/Users/Aaron/Desktop/Purgification-master/source/khaxinit.cpp:983:47: error: cannot convert 'u8* {aka unsigned char*}' to 'bool*' for argument '1' to 'Result APT_CheckNew3DS(bool*)'
if (Result error = APT_CheckNew3DS(&isNew3DS))
^
make[1]: *** [khaxinit.o] Error 1
make: *** [build] Error 2

C:\Users\Aaron\Desktop\Purgification-master>
The only thing I've successfully compiled is FakeBrick9. What's going wrong?
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,018
Country
Micronesia, Federated States of
Whenever I try to use make to compile anything, it gives errors.
C:\Users\Aaron\Desktop\yeti3DS-master>make | grep error
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c: In function 'main':
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:33:2: error: too many arguments to function 'hidInit'
hidInit(NULL);
^
In file included from c:/devkitPro/libctru/include/3ds.h:42:0,
from c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:4:
c:/devkitPro/libctru/include/3ds/services/hid.h:89:8: note: declared here
Result hidInit(void);
^
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:34:2: error: too many arguments to function 'irrstInit'
irrstInit(NULL);
^
In file included from c:/devkitPro/libctru/include/3ds.h:43:0,
from c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:4:
c:/devkitPro/libctru/include/3ds/services/irrst.h:18:8: note: declared here
Result irrstInit(void);
^
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:69:19: error: 'GSPEVENT_VBlank0' undeclared (first use in this function)
gspWaitForEvent(GSPEVENT_VBlank0, true);
^
c:/Users/Aaron/Desktop/yeti3DS-master/source/main.c:69:19: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [main.o] Error 1
make: *** [build] Error 2

C:\Users\Aaron\Desktop\yeti3DS-master>
C:\Users\Aaron\Desktop\JKSM-master>make
3dsx.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/Aaron/Desktop/JKSM-master/build/3dsx.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/Aaron/Desktop/JKSM-master/include -I/c/devkitPro/libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/Users/Aaron/Desktop/JKSM-master/build -DARM11 -D_3DS -fno-rtti -fno-exceptions -std=c++11 -c /c/Users/Aaron/Desktop/JKSM-master/source/3dsx.cpp -o 3dsx.o
c:/Users/Aaron/Desktop/JKSM-master/source/3dsx.cpp:2:18: fatal error: sf2d.h: No such file or directory
compilation terminated.
make[1]: *** [3dsx.o] Error 1
make: *** [build] Error 2

C:\Users\Aaron\Desktop\JKSM-master>
C:\Users\Aaron\Desktop\Purgification-master>make
khaxinit.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/Aaron/Desktop/Purgification-master/build/khaxinit.d -g -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/Aaron/Desktop/Purgification-master/source/include -I/c/devkitPro/libctru/include -I/c/Users/Aaron/Desktop/Purgification-master/build -DARM11 -D_3DS -DLODEPNG_NO_COMPILE_ENCODER -fno-rtti -fno-exceptions -std=gnu++11 -c /c/Users/Aaron/Desktop/Purgification-master/source/khaxinit.cpp -o khaxinit.o
c:/Users/Aaron/Desktop/Purgification-master/source/khaxinit.cpp: In function 'Result KHAX::IsNew3DS(bool*, u32)':
c:/Users/Aaron/Desktop/Purgification-master/source/khaxinit.cpp:983:47: error: cannot convert 'u8* {aka unsigned char*}' to 'bool*' for argument '1' to 'Result APT_CheckNew3DS(bool*)'
if (Result error = APT_CheckNew3DS(&isNew3DS))
^
make[1]: *** [khaxinit.o] Error 1
make: *** [build] Error 2

C:\Users\Aaron\Desktop\Purgification-master>
The only thing I've successfully compiled is FakeBrick9. What's going wrong?
All these errors are missing libraries or wrong ctrulib version.
 
  • Like
Reactions: PRAGMA

Boogieboo6

@realDonaldTrump
OP
Member
Joined
Jul 30, 2015
Messages
965
Trophies
1
Age
23
XP
807
Country
United States
That doesn't seem so hard to fix then. Since FakeBrick9 worked, would you think it's missing libraries? Or was FakeBrick9 the only thing to use an old ctrulib? What should I try first to fix the problem?
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,018
Country
Micronesia, Federated States of
That doesn't seem so hard to fix then. Since FakeBrick9 worked, would you think it's missing libraries? Or was FakeBrick9 the only thing to use an old ctrulib? What should I try first to fix the problem?
Arm9 homebrew tends to be less reliant on ctrulib compared to standard arm11 applications. That's probably why it worked.
 
  • Like
Reactions: Joel16

Boogieboo6

@realDonaldTrump
OP
Member
Joined
Jul 30, 2015
Messages
965
Trophies
1
Age
23
XP
807
Country
United States
I tried to install a thing called gl3ds when I was looking for the proper libraries. When I tried to make it, it said to set ctrulib in my environment. Apparently I'm not using ctrulib at all even though I thought I installed it?
 
  • Like
Reactions: olec04

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,038
Country
United States
I tried to install a thing called gl3ds when I was looking for the proper libraries. When I tried to make it, it said to set ctrulib in my environment. Apparently I'm not using ctrulib at all even though I thought I installed it?
Keep in mind ctrulib is a work in progress. These projects were not kept up to date with changes to ctrulib. They require specific versions of ctrulib. It would likely be less effort to make them work with the current ctrulib then to try to figure out which ctrulib version is required.
 
  • Like
Reactions: Joel16

Joel16

Ils ne passeront pas
Member
Joined
May 8, 2011
Messages
933
Trophies
2
Age
27
Location
Doesn't concern you.
XP
5,337
Country
United States
Ctrulib barely gets commit's

I don't know what you're talking about but ctrulib gets commits quite frequently, thanks to fincs.

On topic: Unless you don't know how to update function parameters according to changes in ctrulib's headers then this isn't for you. Looking for an older version of ctrulib is a crappy idea. It's better to update the repository yourself using the latest commits. As someone stated earlier, ctrulib is a W.I.P library, so changes will keep happening regardless.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • NinStar @ NinStar:
    you have to launch your homebrews directly from the wii u menu
  • NinStar @ NinStar:
    there is a plugin that display them on the wii u menu, pretty sure it is enabled by default
  • crafthp434 @ crafthp434:
    so like it doesnt exist
  • crafthp434 @ crafthp434:
    yeah
    ?
  • NinStar @ NinStar:
    it doesn't exist, at least not for aroma
  • crafthp434 @ crafthp434:
    ohhhhh
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    New hamster PC, with anal operation and BT connectivity!
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, How do I make enemies respawn on gdevelop after
    the player dies?
  • Psionic Roshambo @ Psionic Roshambo:
    Carrying a PC or phone is so old school!
  • Psionic Roshambo @ Psionic Roshambo:
    Squeeze your cheeks twice to answer calls!
  • BigOnYa @ BigOnYa:
    @Xdqwerty you can use a "spawner" function on any object.
  • BigOnYa @ BigOnYa:
    Or when your player dies, you can say in code, if enemy exists, do nothing, but if enemy does not exist, then create enemy at certain spot. (This would be a pain tho for lots of emeies)
    BigOnYa @ BigOnYa: Or when your player dies, you can say in code, if enemy exists, do nothing, but if enemy does...