Difference between revisions of "Nintendo 3DS"

Jump to navigation Jump to search
63 bytes added ,  19:52, 30 November 2020
Changed $PORTLIBS to $PORTLIBS_PREFIX (to match most recent devkitarm.sh and 3dsvars.sh)
m (Edited link to port forum (previously pointed to PS2 port forum))
(Changed $PORTLIBS to $PORTLIBS_PREFIX (to match most recent devkitarm.sh and 3dsvars.sh))
Line 187: Line 187:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
mkdir -p $PORTLIBS
mkdir -p $PORTLIBS_PREFIX
./configure --prefix=$PORTLIBS --host=arm-none-eabi --disable-shared --enable-static
./configure --prefix=$PORTLIBS_PREFIX --host=arm-none-eabi --disable-shared --enable-static
make
make
make install
make install
Line 210: Line 210:
In the source directory of the library:
In the source directory of the library:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
export PORTLIBS=$DEVKITPRO/portlibs/3ds
export PORTLIBS_PREFIX=$DEVKITPRO/portlibs/3ds
export PATH=$DEVKITARM/bin:$PATH
export PATH=$DEVKITARM/bin:$PATH
export PKG_CONFIG_PATH=$PORTLIBS/lib/pkgconfig
export PKG_CONFIG_PATH=$PORTLIBS_PREFIX/lib/pkgconfig
export PKG_CONFIG_LIBDIR=$PORTLIBS/lib/pkgconfig
export PKG_CONFIG_LIBDIR=$PORTLIBS_PREFIX/lib/pkgconfig
export CFLAGS="-g -march=armv6k -mtune=mpcore -mfloat-abi=hard -O2
export CFLAGS="-g -march=armv6k -mtune=mpcore -mfloat-abi=hard -O2
                     -mword-relocations -ffunction-sections -fdata-sections"
                     -mword-relocations -ffunction-sections -fdata-sections"
export CPPFLAGS="-I$PORTLIBS/include -I$CTRULIB/include"
export CPPFLAGS="-I$PORTLIBS_PREFIX/include -I$CTRULIB/include"
export LDFLAGS="-L$PORTLIBS/lib"
export LDFLAGS="-L$PORTLIBS_PREFIX/lib"
</syntaxhighlight>
</syntaxhighlight>


Line 239: Line 239:
Note: In more recent codebases of ScummVM, you may or may not need to set the following beforehand:
Note: In more recent codebases of ScummVM, you may or may not need to set the following beforehand:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
export PKG_CONFIG_LIBDIR=$PORTLIBS/lib/pkgconfig
export PKG_CONFIG_LIBDIR=$PORTLIBS_PREFIX/lib/pkgconfig
</syntaxhighlight>
</syntaxhighlight>
See above for <code>$PORTLIBS</code>.
See above for <code>$PORTLIBS_PREFIX</code>.


ScummVM doesn't provide the CA certificates bundle required by the cloud synchronization features.
ScummVM doesn't provide the CA certificates bundle required by the cloud synchronization features.
8

edits

Navigation menu