Homebrew How do I compile Homebrew?

  • Thread starter Thread starter Job Moody
  • Start date Start date
  • Views Views 5,086
  • Replies Replies 25

Can someone take this thread down?

  • Yes

    Votes: 0 0.0%
  • No

    Votes: 0 0.0%
  • Later

    Votes: 0 0.0%

  • Total voters
    0
  • Poll closed .
I don't know and I don't know. Maybe you should learn how to actually compile homebrew before trying to get additional libraries for it.
well i compiled it :)

Oh and what do i do with the "builds" when they are made?

Hey I have the files but......
I have an error :D
@GalladeGuy halp its this:
> "make"
main.c
arm-none-eabi-gcc -MMD -MP -MF /c/Users/moodyfam/Desktop/undertale_techdemo-master/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/moodyfam/Desktop/undertale_techdemo-master/include -I/c/devkitPro/libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/Users/moodyfam/Desktop/undertale_techdemo-master/build -DARM11 -D_3DS -c /c/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c -o main.o
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c: In function 'init':
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:110:2: error: too many arguments to function 'hidInit'
hidInit (NULL);
^
In file included from c:/devkitPro/libctru/include/3ds.h:40:0,
from c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:3:
c:/devkitPro/libctru/include/3ds/services/hid.h:89:8: note: declared here
Result hidInit(void);
^
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c: In function 'audio_load':
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:525:8: warning: unused variable 'bytesRead' [-Wunused-variable]
off_t bytesRead = fread (buffer, 1, size, file);
^
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c: In function 'audio_stop':
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:537:31: warning: passing argument 2 of 'GSPGPU_FlushDataCache' makes integer from pointer without a cast [-Wint-conversion]
GSPGPU_FlushDataCache (NULL, buffer, size);
^
In file included from c:/devkitPro/libctru/include/3ds/gfx.h:11:0,
from c:/devkitPro/libctru/include/3ds.h:20,
from c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:3:
c:/devkitPro/libctru/include/3ds/services/gspgpu.h:171:8: note: expected 'u32 {aka long unsigned int}' but argument is of type 'u8 * {aka unsigned char *}'
Result GSPGPU_FlushDataCache(const void* adr, u32 size);
^
c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:537:2: error: too many arguments to function 'GSPGPU_FlushDataCache'
GSPGPU_FlushDataCache (NULL, buffer, size);
^
In file included from c:/devkitPro/libctru/include/3ds/gfx.h:11:0,
from c:/devkitPro/libctru/include/3ds.h:20,
from c:/Users/moodyfam/Desktop/undertale_techdemo-master/source/main.c:3:
c:/devkitPro/libctru/include/3ds/services/gspgpu.h:171:8: note: declared here
Result GSPGPU_FlushDataCache(const void* adr, u32 size);
^
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:01
 
Last edited by Job Moody,
It looks like that homebrew is using a version of ctrulib before the great refactor, but luckily a lot of that stuff can be easily fixed by searching in the documentation. For example, hidInit(NULL) needs to become hidInit()

Edit:
Be warned, sf2d uses a old version of ctrulib too, and it might be better at this point is just to grab the commit of ctrulib from the latest commit of the homebrew, and use that instead. Most of the great refactor focused on GPU-related functions which probably don't work anymore for existing homebrew.
That was too stressing i deleted it, I don't think i'm going to make my own Homebrew apps :l
Buuut... Maybe you could compile it for me? ;)
 

Site & Scene News

Popular threads in this forum