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,034
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,303
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
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
  • BakerMan @ BakerMan:
    fellas
  • BakerMan @ BakerMan:
    would you rather have a 9-5 desk job with poor pay or work for an intergalactic space militia with no guarantee of being paid?
  • BakerMan @ BakerMan:
    basically, normal boring job or halo and/or helldivers irl
    BakerMan @ BakerMan: basically, normal boring job or halo and/or helldivers irl