Has anyone had any luck compiling ffmpegthumbnailer on opensolaris. I have
tried the svn ver 1.4, 1.5 all failing with the same error. Don't know what the
problem is because the pkg-config find all the lib* but configure ends not
finding any.
Here are my compile settings
cat inc.sh
pre=/opt/mediatomb
. `pwd`/../inc.sh
CC=/opt/sfw/bin/gcc
CXX=/opt/sfw/bin/g++
CONFIG_SHELL=/bin/ksh
export PKG_CONFIG_PATH=${pre}/lib/pkgconfig:/usr/lib/pkgconfig
#PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin:/usr/gnu/bin
export
PATH=/opt/sfw/bin:/usr/sfw/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/usr/ucb
ulimit -s 32768
echo $PKG_CONFIG_PATH
CC=/opt/sfw/bin/gcc LD=/usr/sfw/bin/gld ./configure --prefix=${pre} \
--includedir=${pre}/include CFLAGS="-I/opt/mediatomb/include"
/opt/mediatomb/lib/pkgconfig:/usr/lib/pkgconfig
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for gcc... /opt/sfw/bin/gcc
checking whether we are using the GNU C compiler... yes
checking whether /opt/sfw/bin/gcc accepts -g... yes
checking for /opt/sfw/bin/gcc option to accept ISO C89... none needed
checking dependency style of /opt/sfw/bin/gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/gsed
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for ld used by /opt/sfw/bin/gcc... /usr/sfw/bin/gld
checking if the linker (/usr/sfw/bin/gld) is GNU ld... yes
checking for /usr/sfw/bin/gld option to reload object files... -r
checking for BSD-compatible nm... /usr/xpg4/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /opt/sfw/bin/gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 262144
checking command to parse /usr/xpg4/bin/nm -p output from /opt/sfw/bin/gcc
object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if /opt/sfw/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /opt/sfw/bin/gcc option to produce PIC... -fPIC
checking if /opt/sfw/bin/gcc PIC flag -fPIC works... yes
checking if /opt/sfw/bin/gcc static flag -static works... no
checking if /opt/sfw/bin/gcc supports -c -o file.o... yes
checking whether the /opt/sfw/bin/gcc linker (/usr/sfw/bin/gld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/sfw/bin/gld
checking if the linker (/usr/sfw/bin/gld) is GNU ld... yes
checking whether the g++ linker (/usr/sfw/bin/gld) supports shared libraries...
yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/sfw/bin/gld) supports shared libraries...
yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... no
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/sfw/bin/gld) supports shared libraries...
yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for ANSI C header files... (cached) yes
checking for inttypes.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FFMPEG... yes
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... no
checking for libavcodec/avcodec.h... no
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... no
checking for libavformat/avformat.h... no
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... no
checking for libavutil/avutil.h... no
checking ffmpeg/swscale.h usability... no
checking ffmpeg/swscale.h presence... no
checking for ffmpeg/swscale.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... no
checking for libswscale/swscale.h... no
checking for PNG... yes
configure: pkgconfig directory is ${libdir}/pkgconfig
configure: creating ./config.status
config.status: creating libffmpegthumbnailer.pc
config.status: creating Makefile
config.status: creating man/Makefile
config.status: executing depfiles commands
CONFIGURATION SUMMARY ----
unittests : disabled
debug mode : disabled
/opt/mediatomb/lib/pkgconfig:/usr/lib/pkgconfig
Making all in man
gmake[1]: Entering directory
`/export/home/andrel/mediatomb/ffmpegthumbnailer/man'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/export/home/andrel/mediatomb/ffmpegthumbnailer/man'
gmake[1]: Entering directory `/export/home/andrel/mediatomb/ffmpegthumbnailer'
/bin/bash ./libtool --tag=CXX --mode=compile g++
-DPACKAGE_NAME=\"ffmpegthumbnailer\" -DPACKAGE_TARNAME=\"ffmpegthumbnailer\"
-DPACKAGE_VERSION=\"1.4.0\" -DPACKAGE_STRING=\"ffmpegthumbnailer\ 1.4.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ffmpegthumbnailer\" -DVERSION=\"1.4.0\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -D_FILE_OFFSET_BITS=64
-DSTDC_HEADERS=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_JPEGLIB_H=1 -I.
-g -O2 -MT moviedecoder.lo -MD -MP -MF .deps/moviedecoder.Tpo -c -o
moviedecoder.lo `test -f 'libffmpegthumbnailer/moviedecoder.cpp' || echo
'./'`libffmpegthumbnailer/moviedecoder.cpp
mkdir .libs
g++ -DPACKAGE_NAME=\"ffmpegthumbnailer\"
-DPACKAGE_TARNAME=\"ffmpegthumbnailer\" -DPACKAGE_VERSION=\"1.4.0\"
"-DPACKAGE_STRING=\"ffmpegthumbnailer 1.4.0\"" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"ffmpegthumbnailer\" -DVERSION=\"1.4.0\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1
-DHAVE_INTTYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_JPEGLIB_H=1 -I. -g -O2 -MT
moviedecoder.lo -MD -MP -MF .deps/moviedecoder.Tpo -c
libffmpegthumbnailer/moviedecoder.cpp -fPIC -DPIC -o .libs/moviedecoder.o
In file included from libffmpegthumbnailer/moviedecoder.cpp:17:
libffmpegthumbnailer/moviedecoder.h:33:28: error: ffmpeg/avcodec.h: No such
file or directory
libffmpegthumbnailer/moviedecoder.h:38:29: error: ffmpeg/avformat.h: No such
file or directory
libffmpegthumbnailer/moviedecoder.cpp:28:28: error: ffmpeg/swscale.h: No such
file or directory
In file included from libffmpegthumbnailer/moviedecoder.cpp:17:
libffmpegthumbnailer/moviedecoder.h:45: error: 'AVFormatContext' has not been
declared
libffmpegthumbnailer/moviedecoder.h:64: error: 'PixelFormat' has not been
declared
libffmpegthumbnailer/moviedecoder.h:65: error: 'AVFrame' has not been declared
libffmpegthumbnailer/moviedecoder.h:70: error: ISO C++ forbids declaration of
'AVFormatContext' with no type
libffmpegthumbnailer/moviedecoder.h:70: error: expected ';' before '*' token
libffmpegthumbnailer/moviedecoder.h:71: error: ISO C++ forbids declaration of
'AVCodecContext' with no type
libffmpegthumbnailer/moviedecoder.h:71: error: expected ';' before '*' token
however the checks seem to pass:
-bash-3.2$ export
PKG_CONFIG_PATH=/opt/mediatomb/lib/pkgconfig:/usr/lib/pkgconfig
-bash-3.2$ pkg-config --exists --print-errors "libavutil libavformat libavcodec
libswscale"
-bash-3.2$ pkg-config --cflags "libavutil libavformat libavcodec libswscale"
-I/opt/mediatomb/include
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]