Homebrew Homebrew Development

Sniffynose

Well-Known Member
Newcomer
Joined
Jan 8, 2016
Messages
94
Trophies
0
XP
104
Country
Canada
Well tried it by removing the requirement line in make got this:
Code:
make[1]: Entering directory `/home/suhaib10/Downloads/ninjhax2.x/firm_constants'
make[2]: Entering directory `/home/suhaib10'
make[2]: *** No targets specified and no makefile found.  Stop.
make[2]: Leaving directory `/home/suhaib10'
make[1]: *** [constants.txt] Error 2
make[1]: Leaving directory `/home/suhaib10/Downloads/ninjhax2.x/firm_constants'
make: *** [firm_constants/constants.txt] Error 2

P.S. Also when i try 'make clean' get a bunch of the same errors about CTRULIB, the checks are there in all make files in sub folders, so i guess ill try looking around to make ctrulib work. ALso could it be an issue with ctrulib 1.1.0 maybe i should try using an older version.

I get the same error in windows lol, it's using the HOME variable to look for a path but whenever I set it to my proper home or the intended folder I get an infinite loop lol it goes in and out until I can the script.

I love playing around with the code and could likely add features but I swear it's harder to set up the dev environments and reproduce compiling conditions than it is to add to the coding

Edit: Setting up a virtual machine with Linux, windows is such a hack job trying to run everything and hope it plays nice together >.<
 
Last edited by Sniffynose,
D

Deleted User

Guest
Okay, so today's questions from me are:

#1:
Is physics a bitch to code? would simple AABB collision still be a bitch to code? (I'm talking C or C++ by the way)

and

#2:
I keep getting this error when compiling something that uses HBKB:
Code:
> "make"
main.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/build/main.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/source -I/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I./lib/include -I/c/devkitPro/libctru/include -I../hbkb/include -I/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/build -DARM11 -D_3DS  -std=gnu++11 -fno-rtti -fno-exceptions -c /c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/source/main.cpp -o main.o
linking HomebrewTemplate.elf
main.o: In function `main':
c:/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/source/main.cpp:73: undefined reference to `HB_Keyboard::HBKB_CheckKeyboardInput[abi:cxx11]()'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/output/HomebrewTemplate.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:12

I swear that I have everything in the right places in the devkitpro folder.
 

MasterFeizz

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
1,098
Trophies
1
Age
29
XP
3,710
Country
United States
Okay, so today's questions from me are:

#1:
Is physics a bitch to code? would simple AABB collision still be a bitch to code? (I'm talking C or C++ by the way)

and

#2:
I keep getting this error when compiling something that uses HBKB:
Code:
> "make"
main.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/build/main.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/source -I/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I./lib/include -I/c/devkitPro/libctru/include -I../hbkb/include -I/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/build -DARM11 -D_3DS  -std=gnu++11 -fno-rtti -fno-exceptions -c /c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/source/main.cpp -o main.o
linking HomebrewTemplate.elf
main.o: In function `main':
c:/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/source/main.cpp:73: undefined reference to `HB_Keyboard::HBKB_CheckKeyboardInput[abi:cxx11]()'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/c/Users/Nathe/Downloads/Stick-Magician/Stick-Magician/output/HomebrewTemplate.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:12

I swear that I have everything in the right places in the devkitpro folder.

Physics is not that hard to implement, but keep in mind that for simple games you don't need a full fledged physics engine. AABB is the simplest form of collision detection that i can think of (not counting radial collision), and its really easy to code.

About the compiling error, you are not linking the keyboard library.
 
D

Deleted User

Guest
Physics is not that hard to implement, but keep in mind that for simple games you don't need a full fledged physics engine. AABB is the simplest form of collision detection that i can think of (not counting radial collision), and its really easy to code.

About the compiling error, you are not linking the keyboard library.
In Makefile:
Code:
LIBS   := -lctru -lm -lhbkb
LIBDIRS := $(PORTLIBS) $(CTRULIB) ./lib $(CTRULIB) ../hbkb

At the start of main.cpp:
Code:
#include <hbkb.h>
 

MasterFeizz

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
1,098
Trophies
1
Age
29
XP
3,710
Country
United States
In Makefile:
Code:
LIBS   := -lctru -lm -lhbkb
LIBDIRS := $(PORTLIBS) $(CTRULIB) ./lib $(CTRULIB) ../hbkb

At the start of main.cpp:
Code:
#include <hbkb.h>

It might be an ABI issue, recompile the library and make sure you use the same standard (std=gnu++11).
Also you should link the keyboard library before libctru, since relies on it I believe.
 
D

Deleted User

Guest
Also you should link the keyboard library before libctru, since relies on it I believe.
Same output.
make sure you use the same standard (std=gnu++11).
I don't understand this bit. (I actually did recompile the library (.a file?), but still wasn't working. (I'm using HBKB v104)

I also tried compiling the demo in the hbkb source, but was still getting same/similar errors. (So it must be something to do with either the files or file paths.)
 

MasterFeizz

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
1,098
Trophies
1
Age
29
XP
3,710
Country
United States
Same output.

I don't understand this bit. (I actually did recompile the library (.a file?), but still wasn't working. (I'm using HBKB v104)

I also tried compiling the demo in the hbkb source, but was still getting same/similar errors. (So it must be something to do with either the files or file paths.)

Possibly. Don't use a relative path on the libdirs ( ../hbkb ), use the full path of the folder ( /path/to/the/folder ).
 
D

Deleted User

Guest
Possibly. Don't use a relative path on the libdirs ( ../hbkb ), use the full path of the folder ( /path/to/the/folder ).
You mean like this?
Code:
LIBDIRS := $(PORTLIBS) $(CTRULIB) ./lib C:\devkitPro\libctru\hbkb
 
Last edited by ,

JJTapia19

I fight for my friends.
Member
Joined
May 31, 2015
Messages
2,171
Trophies
1
Age
32
XP
2,438
Country
Puerto Rico
Could someone help me by sharing a compiled ready to install version of ctrcommon? I'm getting all kinds of weird errors trying to compiled it.

Code:
socket.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/ctrcommon/build/socket.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/ctrcommon/include  -I/c/ctrcommon/build -DARM11 -D_3DS -DLIBKHAX_AS_LIB -fno-rtti -fno-exceptions -std=gnu++11 -c /c/ctrcommon/source/ctrcommon/socket.cpp -o socket.o
c:/ctrcommon/source/ctrcommon/socket.cpp: In function 'void socInit()':
c:/ctrcommon/source/ctrcommon/socket.cpp:26:48: error: too many arguments to function 'void socInit()'
     Result result = socInit(socBuffer, 0x100000);
                                                ^
c:/ctrcommon/source/ctrcommon/socket.cpp:19:6: note: declared here
void socInit() {
      ^
c:/ctrcommon/source/ctrcommon/socket.cpp:26:48: error: void value not ignored as it ought to be
     Result result = socInit(socBuffer, 0x100000);
                                                ^
c:/ctrcommon/source/ctrcommon/socket.cpp:28:45: error: too many arguments to function 'void socInit()'
         result = socInit(socBuffer, 0x100000);
                                             ^
c:/ctrcommon/source/ctrcommon/socket.cpp:19:6: note: declared here
void socInit() {
      ^
c:/ctrcommon/source/ctrcommon/socket.cpp:28:16: error: void value not ignored as it ought to be
         result = socInit(socBuffer, 0x100000);
                ^
c:/ctrcommon/source/ctrcommon/socket.cpp: In function 'void socCleanup()':
c:/ctrcommon/source/ctrcommon/socket.cpp:43:17: error: 'socExit' was not declared in this scope
         socExit();
                 ^
make[1]: *** [socket.o] Error 1
make: *** [build] Error 2
 

ChlorideCull

New Member
Newbie
Joined
Jan 22, 2016
Messages
1
Trophies
0
XP
51
Country
How could I access a system data archive from my homebrew application? I don't see an obvious way to, for example, open the NGWord bad word list (archive 000400DB00010302) and access the content.

Edit: It seems I can set a target ID in an XML file, could this work?
Edit 2: Sadly, TIDs are filtered by default, so I need another way.
 
Last edited by ChlorideCull,

MOHRCORE

Well-Known Member
Newcomer
Joined
Nov 1, 2013
Messages
70
Trophies
0
XP
170
Country
Poland
Yesterday I started experimenting with homebrew development and I tried to compile ctrulib examples using devkitarm, and some of them compiled fine, but I have a problem with some. I'll paste compiler output for gpusprites: http://pastebin.com/fGsM45NF. I don't get what's wrong - the errors are mostly about all that C3D_... stuff, but gputest example which also uses those compiles well. I've compiled the newest libctru version (without that citro3d thing, I'm using the one provided with devkitpro, because I didn't get it after compiling thae latest version of libctru).
 

MasterFeizz

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
1,098
Trophies
1
Age
29
XP
3,710
Country
United States
Yesterday I started experimenting with homebrew development and I tried to compile ctrulib examples using devkitarm, and some of them compiled fine, but I have a problem with some. I'll paste compiler output for gpusprites: http://pastebin.com/fGsM45NF. I don't get what's wrong - the errors are mostly about all that C3D_... stuff, but gputest example which also uses those compiles well. I've compiled the newest libctru version (without that citro3d thing, I'm using the one provided with devkitpro, because I didn't get it after compiling thae latest version of libctru).
You are not including the necessary headers (citro3d.h). And citro3d is not part of ctrulib, you can get the latest sources from here: https://github.com/fincs/citro3d
 
  • Like
Reactions: MOHRCORE

DiscostewSM

Well-Known Member
Member
Joined
Feb 10, 2009
Messages
5,484
Trophies
2
Location
Sacramento, California
Website
lazerlight.x10.mx
XP
5,502
Country
United States
So I have NDSP set up with blargSNES to replace CSND, and it works as a 3dsx, but when I made a cia and installed it on my emuNAND, it reports that NDSP fails to initialize. Is the binary required for initializing NDSP on homebrew CIAs, or could I be doing something wrong?

Nvm, seems I didn't check that NDSP is only initialized via the binary or from "hb:dsp", the latter only available when running *hax 2.5. So, I dumped it, and now it works with the CIA build.
 
Last edited by DiscostewSM,

DiscostewSM

Well-Known Member
Member
Joined
Feb 10, 2009
Messages
5,484
Trophies
2
Location
Sacramento, California
Website
lazerlight.x10.mx
XP
5,502
Country
United States
Different question.

I understand how to use APT hooks to do necessary things when putting the system into sleep/suspend mode, and then awaken/restore it, but I have a problem when BOTH are used. Running a program as a CIA allows to suspend an application and then put into sleep mode. Attempted to compensate for which current hook type is happening doesn't seem to change the result of a black screen, as it is put to sleep while on the home menu.
 
D

Deleted User

Guest
I still never managed to find out how to make a look-at matrix in citro3D. Would've been nice for fincs to make an example of it. :(
 

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
(Needed) Disclaimer: Never tried to do such a project so this is also a motivation of why i'm trying to do it. <.<

Does someone know a convenient way for uploading a file on a host with 3DS without using FTP (cause my host company looks like doesn't allow multiple FTP users and i won't put my FTP credential in a reversable homebrew) which doesn't need user interaction? (So for example, no POST method).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: https://youtu.be/eFb28u5GPsU?si=35a7C58FgPbaxIMm