Hi @all,
i'm struggeling to compile comskip ( via cross_compile ) for a synology ds213+.
The DS213+ is a QoriQ based System.
i'm using a ubuntu32bit 12.04 virtual machine as base.
Toolchain:
http://sourceforge.net/projects/dsgpl/fi...%202.6.32/
GPL Source:
http://sourceforge.net/projects/dsgpl/fi...z/download
i unzipped (tar xvzf *** -C) the toolchain and the gpl source to /usr/local
i unzipped the newest comskip dir /home/user/Downloads/comskip-0.93g
in the comskip path i use the following build script:
build.sh
Code:
#env
CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc
LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld
RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib
CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548 -mhard-float -mfloat-gprs=double"
LDFLAGS="-L/usr/local/powerpc-none-linux-gnuspe/lib"
./configure --host=powerpc-unknown-linux --target=powerpc-unknown-linux --build=i686-pc-linux --prefix=/usr/local
running this script throws the following error:
....
checking for AVCODEC... no
configure: error: Package requirements (libavcodec >= 53.42) were not met:
No package 'libavcodec' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables AVCODEC_CFLAGS and AVCODEC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
----
ok, wrong ffmpeg version. so i did:
Code:
wget http://ffmpeg.org/releases/ffmpeg-1.1.1.tar.bz2
tar xf ffmpeg-1.1.1.tar.bz2
cd ffmpeg-1.1.1
./configure --prefix=/var/tmp/ComSkipWork/ffmpeg-1.1.1-install
make -j8
make install
i assume i have to put the PKG_CONFIG_PATH for the ffmpeg install into my build script:
Code:
#env
CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc
LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld
RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib
CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548 -mhard-float -mfloat-gprs=double"
LDFLAGS="-L/usr/local/powerpc-none-linux-gnuspe/lib"
PKG_CONFIG_PATH=/var/tmp/ComSkipWork/ffmpeg-1.1.1-install/lib/pkgconfig ./configure --host=powerpc-unknown-linux --target=powerpc-unknown-linux --build=i686-pc-linux --prefix=/usr/local
this finishes without errors.
when i run "make" it throws an error in line 81: missing aclocal-1.14.
WARNING: 'aclocal-1.14' is missing on your system
....
ok. the i moved "/var/tmp/ComSkipWork/ffmpeg-1.1.1-install" to "/usr/local/powerpc-none-linux-gnsupe/source/ffmpeg-1.1.1"
and put this flags into my build.sh:
Code:
AVCODEC_CFLAGS=/usr/local/powerpc-none-linux-gnsupe/source/ffmpeg-1.1.1/libavcodec/avcodec.h
AVCODEC_LIBS=/usr/local/powerpc-none-linux-gnsupe/source/ffmpeg-1.1.1/liabavcodec/libavcodec.a
and elmininated the PKG_CONFIG_PATH variable.
now build.sh looks like this:
Code:
#env
CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc
LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld
RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib
CFLAGS="-I/usr/local/powerpc-none-linux-gnuspe/include -mcpu=8548 -mhard-float -mfloat-gprs=double"
LDFLAGS="-L/usr/local/powerpc-none-linux-gnuspe/lib"
AVCODEC_CFLAGS=/usr/local/powerpc-none-linux-gnsupe/source/ffmpeg-1.1.1/libavcodec/avcodec.h
AVCODEC_LIBS=/usr/local/powerpc-none-linux-gnsupe/source/ffmpeg-1.1.1/libavcodec/libavcodec.a
./configure --host=powerpc-unknown-linux --target=powerpc-unknown-linux --build=i686-pc-linux --prefix=/usr/local
..... now i'm back to this error:
....
checking for AVCODEC... no
configure: error: Package requirements (libavcodec >= 53.42) were not met:
No package 'libavcodec' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables AVCODEC_CFLAGS and AVCODEC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
can anyone help me?