I installed freetype for SDL_ttf, and still got the error (and please PM the makefile)
Ok, let's go step by step installing SDL_ttf first.
We need to install freetype, and on linux whe need an internetc connection active and we only have to type in a shell windows (from the folder wher the portlib makefile is located) :
Code:
make freetype
make install
obviously one line at a time, hitting return at the end of every line, and after every line you shoul see a lot of text output on the screen (sorry if this seems to simple, but in my mind SDl is targeted for 10yo newbies too).
The internet connection needs to download the freetype package (using wget).
On windows, there is the possibility to make the OS work like linux instralling a wget in a folder listet in the PATH system variable, and using msys (the one installed with devkitpro) to run the above commands. But if you van do this, probably you don't need this instructions.
So let's go for the tricky way.
download bu hand the package listed in the makefile (
http://download.savannah.gnu.org/releases/freetype/freetype-2.6.2.tar.bz2), and put it in the same folder of the makefile
If you want a different package version, download it and change the wersion number i the makefile (FREETYPE_VERSION variable)
coment out (or delete) the two lines that start with the word Download. To comment aline in a makefile use '#'
Code:
# download: $(FREETYPE_SRC) $(JANSSON_SRC) $(LIBEXIF_SRC) $(LIBJPEGTURBO_SRC) $(LIBPNG_SRC) $(LIBXMP_LITE_SRC) $(SQLITE_SRC) $(TINYXML_SRC) $(ZLIB_SRC)
# DOWNLOAD = wget -O "$(1)" "$(2)" || curl -o "$(1)" "$(2)"
make a bat file (name it as you want, but make-freetype.bat is a good option) and write inside it the two commands abowe, adding a pause command at the end so you can check if everything went fine:
Code:
make freetype
make install
pause
now you can run your bat file to build freetype.
if everything went fine, you should have libfreetype.a in C:\devkitPro\portlibs\armv6k\lib and a freetype2 folder in C:\devkitPro\portlibs\armv6k\include.
The path may be different ifyou installed devkitpro elsewhere from the c disk root.
After this go in the SDL_ttf folder where you have to decompressthe SDL_ttf package and put my makefile, than you va to run make and then make install.
For a correct installation should be used a makefile like the one of the portlibs, and I'll do such a makefile one of this days.
If everything works, the libSDL_ttf.a file should be in the folder C:\devkitPro\portlibs\3ds\lib
for the other libs the instructions are the same, using proper dependancies.
I wrot this in few minutes not testing the steps, let me knoe if this work, or post printscreens of the errors. I'll try to help.