「DLNA」の編集履歴(バックアップ)一覧はこちら
DLNA - (2011/01/11 (火) 23:18:58) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
Setup DLNA server on NAS
- Target NAS: NAS-01G
- ppc-linux
Server
- MediaTomb
- MiniDLNA
Cross Compile Environment
http://www.pages.drexel.edu/~sg64/stuff/cross-compile.htm
- General Setup
export TARGET=powerpc-linux
export PREFIX=$HOME/cross-compile/$TARGET/build
export PATH=$PATH:$HOME/cross-compile/$TARGET/usr/bin
export CC=ppc-linux-gcc
echo "Cross Compile Envirnment for $TARGET"
echo "TARGET: $TARGET"
echo "PREFIX: $PREFIX"
echo "PATH: $PATH"
echo "CC: $PATH"
- binutils-2.21
cd $PREFIX/binutils-2.21/src
tar -zxf ../tarball/binutils-2.21.tgz
cd binutils-2.21
./configure --target=$TARGET --prefix=$PREFIX/binutils-2.21 --disable-nls
make all
make install
Note: --disable-nls tells binutils not to include native language support. This is basically optional, but reduces dependencies and compile time.
- gcc-4.1.2
./configure --target=$TARGET --prefix=$PREFIX/gcc-core-4.1.2 \
--disable-shared --disable-threads --disable-nls \
--with-as=/home/hideo/cross-compile/powerpc-linux/usr/bin/powerpc-linux-as \
--with-ld=/home/hideo/cross-compile/powerpc-linux/usr/bin/powerpc-linux-ld \
--with-headers=/home/hideo/runtime/include \
--with-libs=/home/hideo/runtime/lib
./configure --target=$TARGET --prefix=$PREFIX/gcc-core-4.1.2 --disable-shared --disable-threads --enable-languages=c
--with-as=/usr/local/ppc-cross/bin/ppc-linux-as \
--with-ld=/usr/local/ppc-cross/bin/ppc-linux-ld \
--with-headers=/home/user/runtime/include \
--with-libs=/home/user/runtime/lib
make all
make install
- sqlite-autoconf-3070400
./configure --host=$TARGET --prefix=$PREFIX --disable-threadsafe
make all
make insatll
なぜか pthread でエラーがでので -disable-threadsafe した
ppc-linux-gcc -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -I/home/hideo/runtime/include -o .libs/sqlite3 shell.o -L/home/hideo/runtime/lib ./.libs/libsqlite3.so -ldl -Wl,--rpath -Wl,/home/hideo/usr/local/ppc-cross/lib
/home/hideo/usr/local/ppc-cross/bin/ppc-linux-ld: skipping incompatible /home/hideo/runtime/lib/libdl.so when searching for -ldl
./.libs/libsqlite3.so: undefined reference to `pthread_mutex_trylock'
./.libs/libsqlite3.so: undefined reference to `pthread_mutexattr_settype'
./.libs/libsqlite3.so: undefined reference to `pthread_mutexattr_destroy'
./.libs/libsqlite3.so: undefined reference to `pthread_mutexattr_init'
- flac-1.2.1
./configure --host=$TARGET --prefix=$PREFIX
cd flac-1.2.1/src/libFLAC
make all
make insatll
libFLACだけが必要なのでライブラリだけコンパイルしてインストール
- ffmpeg-0.6.1
unset CFLAGS
./configure --prefix=$PREFIX --enable-cross-compile --cc=$CC \
--arch=ppc --target-os=linux \
--enable-nonfree \
--disable-altivec --disable-mmx --disable-iwmmxt --disable-armv5te --disable-armv6 --disable-asm \
--disable-stripping
cd libavformat
make all
make install
cd
make all
make install
cd
make all
make install
libsだけが必要なのでライブラリだけコンパイルしてインストール
Setup DLNA server on NAS
- Target NAS: NAS-01G
- ppc-linux
Server
- MediaTomb
- MiniDLNA
Cross Compile Environment
http://www.pages.drexel.edu/~sg64/stuff/cross-compile.htm
- General Setup
export TARGET=powerpc-linux
export PREFIX=$HOME/cross-compile/$TARGET/build
export PATH=$PATH:$HOME/cross-compile/$TARGET/usr/bin
export CC=ppc-linux-gcc
echo "Cross Compile Envirnment for $TARGET"
echo "TARGET: $TARGET"
echo "PREFIX: $PREFIX"
echo "PATH: $PATH"
echo "CC: $PATH"
- binutils-2.21
cd $PREFIX/binutils-2.21/src
tar -zxf ../tarball/binutils-2.21.tgz
cd binutils-2.21
./configure --target=$TARGET --prefix=$PREFIX/binutils-2.21 --disable-nls
make all
make install
Note: --disable-nls tells binutils not to include native language support. This is basically optional, but reduces dependencies and compile time.
- gcc-4.1.2
./configure --target=$TARGET --prefix=$PREFIX/gcc-core-4.1.2 \
--disable-shared --disable-threads --disable-nls \
--with-as=/home/hideo/cross-compile/powerpc-linux/usr/bin/powerpc-linux-as \
--with-ld=/home/hideo/cross-compile/powerpc-linux/usr/bin/powerpc-linux-ld \
--with-headers=/home/hideo/runtime/include \
--with-libs=/home/hideo/runtime/lib
make all
make install
- glibc
./configure --target=$TARGET --host=$TARGET --prefix=$PREFIX/glibc-2.11.2 \
--enable-add-ons=linuxthreads \
--with-headers=/home/hideo/runtime/include \
--with-binutils=/home/hideo/cross-compile/powerpc-linux/build/binutils-2.21/powerpc-linux/bin/
make all
make install
- sqlite-autoconf-3070400
./configure --host=$TARGET --prefix=$PREFIX --disable-threadsafe
make all
make insatll
なぜか pthread でエラーがでので -disable-threadsafe した
ppc-linux-gcc -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -I/home/hideo/runtime/include -o .libs/sqlite3 shell.o -L/home/hideo/runtime/lib ./.libs/libsqlite3.so -ldl -Wl,--rpath -Wl,/home/hideo/usr/local/ppc-cross/lib
/home/hideo/usr/local/ppc-cross/bin/ppc-linux-ld: skipping incompatible /home/hideo/runtime/lib/libdl.so when searching for -ldl
./.libs/libsqlite3.so: undefined reference to `pthread_mutex_trylock'
./.libs/libsqlite3.so: undefined reference to `pthread_mutexattr_settype'
./.libs/libsqlite3.so: undefined reference to `pthread_mutexattr_destroy'
./.libs/libsqlite3.so: undefined reference to `pthread_mutexattr_init'
- flac-1.2.1
./configure --host=$TARGET --prefix=$PREFIX
cd flac-1.2.1/src/libFLAC
make all
make insatll
libFLACだけが必要なのでライブラリだけコンパイルしてインストール
- ffmpeg-0.6.1
unset CFLAGS
./configure --prefix=$PREFIX --enable-cross-compile --cc=$CC \
--arch=ppc --target-os=linux \
--enable-nonfree \
--disable-altivec --disable-mmx --disable-iwmmxt --disable-armv5te --disable-armv6 --disable-asm \
--disable-stripping
cd libavformat
make all
make install
cd
make all
make install
cd
make all
make install
libsだけが必要なのでライブラリだけコンパイルしてインストール