deltabeard / 3ds_portlibs

Portlibs for 3DS with opus, mpg123 & ffmpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3DS Portlibs

Here is a Makefile for building various portlibs for 3DS. You need to first build zlib and install it. Then you can build the other portlibs.

$ make zlib
$ make install-zlib
$ make <targets>
$ make install

This will install the portlibs to $DEVKITPRO/portlibs/armv6k. If this is a privileged location, you will need to sudo make install-zlib and sudo make install in order for the portlibs to be installed.

Currently supports the following portlibs:

  • bzip2
  • freetype (requires zlib)
  • giflib
  • jansson
  • libconfig
  • libexif
  • libjpeg-turbo
  • libmad
  • libmpg123 (can only be installed manually at this time)
  • libogg
  • libopus (requires ogg)
  • libopusfile (requires libopus)
  • libpng (requires zlib)
  • libxml2
  • libxmp-lite
  • mbedtls (requires zlib) (without net component)
  • sqlite
  • tinyxml2
  • tremor (requires libogg)
  • xz
  • zlib

libopus

Note that libopus currently requires a small modification to make ctrmus compile:

Change opusfile.h (located on my machine at "/opt/devkitpro/portlibs/armv6k/include/opus/opusfile.h") at line 110 to "# include <opus/opus_multistream.h>".

mpg123

To compile mpg123, just run make mpg123 in the 3ds_portlibs folder. This will compile all that is required of mpg123. Installing the library has to be done manually though, and can be done by running the following commands:

  • cp mpg123-1.23.8/src/libmpg123/.libs/libmpg123.a /opt/devkitpro/portlibs/armv6k/lib/
  • cp mpg123-1.23.8/src/libmpg123/libmpg123.la /opt/devkitpro/portlibs/armv6k/lib/
  • cp mpg123-1.23.8/libmpg123.pc /opt/devkitpro/portlibs/armv6k/lib/pkgconfig/
  • cp mpg123-1.23.8/src/libmpg123/mpg123.h /opt/devkitpro/portlibs/armv6k/include/
  • cp mpg123-1.23.8/src/libmpg123/fmt123.h /opt/devkitpro/portlibs/armv6k/include/

Download links:

About

Portlibs for 3DS with opus, mpg123 & ffmpeg


Languages

Language:Makefile 98.4%Language:Shell 1.6%