Homebrew Trouble compiling homebrew

Boogieboo6

@realDonaldTrump
OP
Member
Joined
Jul 30, 2015
Messages
965
Trophies
0
Age
22
XP
775
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,482
Trophies
2
XP
14,307
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
0
Age
22
XP
775
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,482
Trophies
2
XP
14,307
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
0
Age
22
XP
775
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,033
Trophies
1
XP
2,539
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
928
Trophies
2
Age
26
Location
Doesn't concern you.
XP
4,964
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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3N1 @ K3N1:
    No catnip for you
  • SylverReZ @ SylverReZ:
    @K3N1, Continue to have sex with your cars, Kenny. :creep:
  • SylverReZ @ SylverReZ:
    @Sonic Angel Knight, It's in a "My Strange Addiction" episode.
  • SylverReZ @ SylverReZ:
    What's next? Is he gonna appear in "Top Gear"? :D :evil:
  • SylverReZ @ SylverReZ:
    Always been putting it into overdrive, hence why his muffler shot out.
  • SylverReZ @ SylverReZ:
    Lol.
  • AKNES tempBOT:
    AKNES has joined the room.
  • K3N1 @ K3N1:
    New Tetris movie is pretty good watching some of it
  • SylverReZ @ SylverReZ:
    @dj_skual, Um what?
  • SylverReZ @ SylverReZ:
    @K3N1, Is it a blockbuster? :creep:
  • K3N1 @ K3N1:
    "Members may NOT ASK and MAY NOT PROVIDE INFORMATION or LINKS for and to places that provide ROM, WAD, ISO and CIA files in absolutely any way on our forum including PM (private message)."
    +1
  • SylverReZ @ SylverReZ:
    @dj_skual, Seems like what K3N1 said is a piracy site.
  • SylverReZ @ SylverReZ:
    Please don't ask or link to ROM sites.
  • SylverReZ @ SylverReZ:
    You've already been here long enough.
  • dj_skual @ dj_skual:
    humm, sorry, i thought if i don't write the link, i can speak about
    +1
  • dj_skual @ dj_skual:
    deleted my posts
    +1
  • SylverReZ @ SylverReZ:
    @dj_skual, It's okay. Just remember that for next time.
  • dj_skual @ dj_skual:
    sure
  • K3N1 @ K3N1:
    Mentioning a site can be the same as posting a url I will say check if you have an adblocker related plug ins causing issues
  • dj_skual @ dj_skual:
    i desinstalled adblocker chrome plugins, restarted chrome, but same result... do you think that can be due to my vpn?
  • K3N1 @ K3N1:
    Some vpns do have AdBlock related software iirc but that's all I know
  • dj_skual @ dj_skual:
    my vpn is a personnal server and based on WireGuard. Not a commercial one. just pay 1.20€ for the server.
  • K3N1 @ K3N1:
    I'd say try finding a subreddit that may have a community that knows more
  • Psionic Roshambo @ Psionic Roshambo:
    I recommend r/midgets
    Psionic Roshambo @ Psionic Roshambo: I recommend r/midgets