Homebrew ctrulib - make Errors When Compiling Examples

  • Thread starter Thread starter tankgrrrl
  • Start date Start date
  • Views Views 4,123
  • Replies Replies 17

tankgrrrl

Member
Newcomer
Joined
Nov 16, 2014
Messages
12
Reaction score
0
Trophies
0
Age
48
XP
93
Country
United States
Fairly sure I have the everything set up right, the .smdh .elf .3dsx files and /bin directory are created, but make gives a Png error and another error that's unclear to me. I assume the first one has to do with the icon but the default_icon.png file is where the 3ds_rules expects it to be (C:\devkitPro\ctrulib-master\libctru). The full make output is below. Any help is greatly appreciated...

Code:
C:\devkitPro\ctrulib-master\examples\app_launch>make
main.c
arm-none-eabi-gcc -MMD -MP -MF /c/devkitPro/ctrulib-master/examples/app_launch/build/main
.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=
mpcore -mfloat-abi=softfp -I/c/devkitPro/ctrulib-master/examples/app_launch/include -IC:\
devkitPro\ctrulib-master\libctru/include -I/c/devkitPro/ctrulib-master/examples/app_launc
h/build -DARM11 -D_3DS -c /c/devkitPro/ctrulib-master/examples/app_launch/source/main.c -
o main.o
linking app_launch.elf
built ... app_launch.3dsx
Png load/decode error.
make[1]: *** [/c/devkitPro/ctrulib-master/examples/app_launch/app_launch.smdh] Error 1
make: *** [build] Error 2
 
Fairly sure, I installed it this morning from the official site and just ran the updater. The only bit I didn't install was the PSP tools...
Well, as the prompt says, it's a Png error. Are you using any .png resources that might be corrupt?
 
Yeah that's what I though but the only thing I can think is the default_icon.png included in ctrulib and it opens file so I doubt it's corrupt. It's where the setup file expects it as well (C:\devkitPro\ctrulib-master\libctru).
 
Yeah that's what I though but the only thing I can think is the default_icon.png included in ctrulib and it opens file so I doubt it's corrupt. It's where the setup file expects it as well (C:\devkitPro\ctrulib-master\libctru).
Your code links and builds just fine, it must be something wrong with your setup. Have you tried running make as an administrator?
 
I had the same error under Windows while trying to build the ctrulib examples.
To resolve the issue I had to change the environment variable CTRULIB from "c:\devkitPro\ctrulib\libctru" into the unix-like "/c/devkitPro/ctrulib/libctru".
Hope this helpls.
 
  • Like
Reactions: JoostinOnline
I had the same error under Windows while trying to build the ctrulib examples.
To resolve the issue I had to change the environment variable CTRULIB from "c:\devkitPro\ctrulib\libctru" into the unix-like "/c/devkitPro/ctrulib/libctru".
Hope this helpls.
That sounds like... a bizarre fix.
 
I used to have the same problem, as far as I can remember it was because of Cygwin, do you have it installed ?
I think it was linked to the way it handles paths and some cygwin binaries were being used.
 
I had the same error under Windows while trying to build the ctrulib examples.
To resolve the issue I had to change the environment variable CTRULIB from "c:\devkitPro\ctrulib\libctru" into the unix-like "/c/devkitPro/ctrulib/libctru".
Hope this helpls.
Son of a bitch, that did fix it! I thought it was strange that the format was different, but I stuck with the directions.
 
Hi, dont wanted to create a new Thread for it.

When trying to compile the example located under:
examples\graphics\bitmap\24bit-color

Im getting:
C:\devkitPro\examples\examples\graphics\bitmap\24bit-color>make
brew.png
Unzulässiger Parameter - /devkitPro
make[1]: *** [brew.bgr] Error 4
make: *** [build] Error 2

Other examples ive tested, are working

PS: Using the latest devkitpro/arm tools
 
Hi, dont wanted to create a new Thread for it.

When trying to compile the example located under:
examples\graphics\bitmap\24bit-color

Im getting:
C:\devkitPro\examples\examples\graphics\bitmap\24bit-color>make
brew.png
Unzulässiger Parameter - /devkitPro
make[1]: *** [brew.bgr] Error 4
make: *** [build] Error 2

Other examples ive tested, are working

PS: Using the latest devkitpro/arm tools
This example requires that imagemagick be installed.
 

Site & Scene News

Popular threads in this forum