Homebrew Trouble compiling homebrew

Boogieboo6

@realDonaldTrump
OP
Member
Joined
Jul 30, 2015
Messages
965
Trophies
1
Age
23
XP
806
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
14,998
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
806
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
14,998
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
806
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,029
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,258
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.
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended