[osol-discuss] Anyone compile ffmpegthumbnailer on opensolaris

2009-03-26 Thread Andre Lue
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 share

Re: [osol-discuss] Anyone compile ffmpegthumbnailer on opensolaris

2009-03-26 Thread Martin Bochnig
On Fri, Mar 27, 2009 at 4:26 AM, Andre Lue  wrote:
> 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 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



See the missing header files - maybe they are somewhere in your src
package, but where they are _not_ is in their expected locations in
/usr/include/  ...



> 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

Re: [osol-discuss] Anyone compile ffmpegthumbnailer on opensolaris

2009-03-26 Thread Martin Bochnig
On Fri, Mar 27, 2009 at 5:48 AM, Martin Bochnig  wrote:
> On Fri, Mar 27, 2009 at 4:26 AM, Andre Lue  wrote:
[...]


Ok, include files are also searched via --includedir=${pre}/include
CFLAGS="-I/opt/mediatomb/include .
But otherwise the same applies.

Look where you have (or can get) all the different header files that
were reported missing during configure. Then add all those dirs
containing them to the -I search path. Otherwise the same applies what
I said in my previous message.


--
%martin
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Anyone compile ffmpegthumbnailer on opensolaris

2009-03-26 Thread Tim Scanlon
One potential problem is that you have things installed in places other than 
where you're looking for them with pkg-config, and configure is getting mixed 
up...

 I use this a lot, and tweak it to be smaller depending on what I'm doing:

PKG_CONFIG_PATH=:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/ssl/lib/pkgconfig:/usr/sfw/lib/pkgconfig:

Dependency hell is never too much fun.

Tim
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Anyone compile ffmpegthumbnailer on opensolaris

2009-03-27 Thread Andre Lue
My install path is /opt/mediatomb and the pkg-config cmd as run by configure 
sees them (/opt/mediatomb/usr/include/libavcodec/avcodec.h etc) avcodec.h etc) 
fine but some other check is failing. moviedecoder.h/c has 2 paths.

One seems to secondary /usr/include/ffmpeg/avcodec.h  ffmpeg symlink and the 
other primary path is of the form /prefix/include/libavcodec/avcodec.h  which 
it should find it (prefix=/opt/mediatomb). However it does not. I'm convinced 
the configure code is broken but not sure how to fix it. Anyone actually 
compile this on opensolaris?

-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 

others have had this problem with redhat in the past, more here

http://code.google.com/p/ffmpegthumbnailer/issues/detail?id=18#c0

Any help is greatly appreciated.
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org