A bit of a simple question but how do I install the libraries in devkitpro?
git clone https://github.com/xerpi/sf2dlib.git
cd sf2dlib/libsf2d
make
make install
A bit of a simple question but how do I install the libraries in devkitpro?
Code:git clone https://github.com/xerpi/sf2dlib.git cd sf2dlib/libsf2d make make install
So I did that with libsf2d and it said installed but when I try this with libsftd I get this:
c:\devkitPro\libsftd>make
sftd.c
arm-none-eabi-gcc -MMD -MP -MF /c/devkitPro/libsftd/build/sftd.d -g -Wall -O2 -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/devkitPro/libsftd/include -I/c/devkitPro/libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/portlibs/armv6k/include/freetype2 -I/c/devkitPro/portlibs/3ds/include/freetype2 -I/c/devkitPro/libsftd/build -DARM11 -D_3DS -c /c/devkitPro/libsftd/source/sftd.c -o sftd.o
c:/devkitPro/libsftd/source/sftd.c:6:22: fatal error: ft2build.h: No such file or directory
compilation terminated.
make[1]: *** [sftd.o] Error 1
make: *** [build] Error 2
C:\devkitPro\3ds_portlibs-master>make all
C:\devkitPro\3ds_portlibs-master>make all
wget -O zlib-1.2.8.tar.gz "http://prdownloads.sourceforge.net/libpng/zlib-1.2.8.tar.gz"
/bin/sh: wget: command not found
make: *** [zlib-1.2.8.tar.gz] Error 127
Thanks for the help btw. I am manually installing free type and I get this error:If you are using cygwin, I don't think it comes with wget by default and you need to install the package yourself.
Hey,
I'm trying to compile my hb game on Linux. All the stuff at first goes fine (after two hours of removing small typos and fighting with the fact I dared to use more than one file for source), but then linker decides that it needs to go apeshit.
I installed sfil and sf2d libs, and yet I get multiple "undefined reference to 'sfil_load_PNG_file'", "undefined reference to `sf2d_draw_texture'" etc. errors.
Is this an error within the makefile (I just copied the one from 3DS ctrulib examples), or something more serious?
Yup, that was it! I used the one from sfil lib though, and now it compiles!2) Are you possibly using the makefile from the ctrulib's template? If so the error is explained. You should use the makefile from the example contained in the sf2d library (as the makefile from ctrulib doesn't link the sf2d library)
You have to use libpng to get the pixelmap then pass that to sf2d_create_texture_mem_RGBA8. TGA is easier to load and you don't need a separate library, even easier you can also load RAW RGBA8 textures from a file.Can someone point me towards loading a texture directly from a .png file instead of adding it as a binary?
Can someone point me towards loading a texture directly from a .png file instead of adding it as a binary?
You simply have to modify the projection matrix, just switch the bottom and top values.Hmm... I wonder using this is how many times faster than just regular framebuffer memcpy
Also, would it be possible to change the co-ordinate system? The renderer I wrote works from bottom-up, and not top-down, so {x=0,y=0} is the 0th physical pixel (bottom-left on the screen), and {x=0,y=1} is the first physical pixel (above the bottom-left pixel), {x=1,y=0} is the 240th pixel (to the right of the bottom-left pixel), and so on.
You simply have to modify the projection matrix, just switch the bottom and top values.