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,000
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,000
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,035
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,309
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
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    They should've just made it a movie at 50 minutes
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    No from Paramount Plus or whatever it is
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Psi now has access to every streaming and cable channel out
  • K3Nv2 @ K3Nv2:
    Eh I'd rather just download and delete is it already up on paramount?
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's on now
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, why are most new south park episodes half hour specials?
    +1
  • K3Nv2 @ K3Nv2:
    @Psionic Roshambo, let me get a Netflix account I've always been nice to you
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I made a honey pepper glazed turkey breast for dinner turned out pretty bomb
  • K3Nv2 @ K3Nv2:
    We can Netflix and chill
  • Xdqwerty @ Xdqwerty:
    Nvm not half hour, but hour long
  • Xdqwerty @ Xdqwerty:
    Normal south park episodes are already half hour
  • Psionic Roshambo @ Psionic Roshambo:
    Got 2 free Xumo boxes they work pretty good
  • K3Nv2 @ K3Nv2:
    I'm happy to get anything most series don't make it pass 6 seasons
  • Psionic Roshambo @ Psionic Roshambo:
    Except Stars and Encore those are being a bitch lol
  • K3Nv2 @ K3Nv2:
    I may consider that onn pro box finally a media box with type A ;O
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, cuz the companies don't want em to
  • K3Nv2 @ K3Nv2:
    No it's revenue and demand south park could argue has a bigger audience than family guy about the same
    +1
  • K3Nv2 @ K3Nv2:
    Family guy is worth 300mill south parks worth 1Bill according to the interwebs
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, probably cuz family guy is more disliked compared to south park
  • K3Nv2 @ K3Nv2:
    It just does the same formula south park can press buttons without going overboard
  • Xdqwerty @ Xdqwerty:
    And bc most of the family guy budget is spent on the voice actors rather than on the animation
  • K3Nv2 @ K3Nv2:
    Southpark could spend 30k on a animated dick and people would laugh at it
    +2
  • K3Nv2 @ K3Nv2:
    lol one prescription to Lizzo
  • Xdqwerty @ Xdqwerty:
    who is lizzo?
  • Xdqwerty @ Xdqwerty:
    yawn
    Xdqwerty @ Xdqwerty: yawn