Hi,

 

I'm trying to install the video-1.0.2 package for use with Octave 3.0.1. I've 
installed the latest version (as of June 4, 2009) of ffmpeg's "bare source." I 
couldn't get the pkg() function in Octave to install the package correctly so I 
extracted the tar file, ran the configure script (which seemed to work ok) and 
then attempted 'make'. I get an error referencing the file 'avifile.oct'. I've 
tried finding help on numerous forums and some seem to come close to a 
solution, but it's still not clear to me where I should go from here. I'd 
appreciate any help.

 

Here's the output I get when I run "./configure"

 

[r...@ryatdellws35 video-1.0.2]# ./configure

checking for gcc... gcc

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 gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking for mkoctfile... mkoctfile

retrieving compile and link flags from mkoctfile

checking for F77_FUNC... yes

checking for SLList.h... no

checking for lo_ieee_nan_value... yes

checking for octave_idx_type... yes

checking for quit.h... yes

checking for octave... octave

checking for OCTAVE_VERSION in Octave... 3.0.1

checking for octave_config_info('canonical_host_type') in Octave... 
x86_64-redhat-linux-gnu

checking for octave_config_info('SHLEXT') in Octave... so

checking whether ln -s works... yes

checking for ranlib... ranlib

checking for strip... strip

checking for pkg-config... pkg-config

-I/usr/local/include -I/usr/share/octave/packages/ffmpeg-export-2009-06-04 
/usr/share/octave/packages/ffmpeg-export-2009-06-04/libavformat/libavformat.a 
-L/usr/local/lib -lz -lbz2 -lm -ldl -lavcodec -lavutil -lswscale

checking for av_write_frame in -lavformat... yes

checking for av_malloc in -lavcodec... yes

checking for sws_scale in -lswscale... yes

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -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 ffmpeg/avformat.h usability... no

checking ffmpeg/avformat.h presence... no

checking for ffmpeg/avformat.h... no

checking libavformat/avformat.h usability... yes

checking libavformat/avformat.h presence... yes

checking for libavformat/avformat.h... yes

checking ffmpeg/avcodec.h usability... no

checking ffmpeg/avcodec.h presence... no

checking for ffmpeg/avcodec.h... no

checking libavcodec/avcodec.h usability... yes

checking libavcodec/avcodec.h presence... yes

checking for libavcodec/avcodec.h... yes

checking whether AVSEEK_FLAG_BACKWARD is declared... yes

configure: creating ./config.status

config.status: creating Makefile

configure: creating ./config.status

config.status: creating Makefile

config.status: creating Makeconf

 

  "$prefix" is /usr/local

  "$exec_prefix" is ${prefix}

 

octave commands will install into the following directories:

   m-files:   /usr/share/octave/3.0.1/site/m/octave-forge

   oct-files: 
/usr/libexec/octave/3.0.1/site/oct/x86_64-redhat-linux-gnu/octave-forge

   binaries:  /usr/libexec/octave/3.0.1/site/exec/x86_64-redhat-linux-gnu

alternatives:

   m-files:   /usr/share/octave/3.0.1/site/octave-forge-alternatives/m

   oct-files: 
/usr/libexec/octave/3.0.1/site/octave-forge-alternatives/oct/x86_64-redhat-linux-gnu

 

shell commands will install into the following directories:

   binaries:  ${exec_prefix}/bin

   man pages: ${datarootdir}/man

   libraries: ${exec_prefix}/lib

   headers:   ${prefix}/include

 

octave-forge is configured with

   octave:      octave (version 3.0.1)

   mkoctfile:   mkoctfile for Octave 1

 

find . -name NOINSTALL -print    # shows which toolboxes won't be installed

 

 

 

And when I run 'make' I get the following output, which is where the error is:

 

[r...@ryatdellws35 video-1.0.2]# make

make[1]: Entering directory `/usr/share/octave/packages/video-1.0.2/src'

mkoctfile -v -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVCODEC_AVCODEC_H 
avifile.cc AVHandler.o oct-avifile.o 
/usr/share/octave/packages/ffmpeg-export-2009-06-04/libavformat/libavformat.a 
-L/usr/local/lib -lz -lbz2 -lm -ldl -lavcodec -lavutil -lswscale   
-I/usr/local/include -I/usr/share/octave/packages/ffmpeg-export-2009-06-04  

g++ -c -fPIC -I/usr/include/octave-3.0.1 -I/usr/include/octave-3.0.1/octave -O2 
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/local/include 
-I/usr/share/octave/packages/ffmpeg-export-2009-06-04 
-DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVCODEC_AVCODEC_H avifile.cc -o 
avifile.o

avifile.cc: In function âEUR~octave_value_list Favifile(const 
octave_value_list&, int)âEUR(tm):

avifile.cc:92: warning: comparison between signed and unsigned integer 
expressions

g++ -shared -Wl,-Bsymbolic -o avifile.oct AVHandler.o oct-avifile.o avifile.o 
/usr/share/octave/packages/ffmpeg-export-2009-06-04/libavformat/libavformat.a 
-L/usr/local/lib -lz -lbz2 -lm -ldl -lavcodec -lavutil -lswscale 
-L/usr/lib64/octave-3.0.1 -L/usr/lib64 -loctinterp -loctave -lcruft -llapack 
-lblas -lfftw3 -lreadline -lncurses -ldl -lhdf5 -lz -lm 
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 
-L/usr/lib/../lib64 -lhdf5 -lz -lgfortranbegin -lgfortran -lm

/usr/bin/ld: 
/usr/share/octave/packages/ffmpeg-export-2009-06-04/libavformat/libavformat.a(allformats.o):
 relocation R_X86_64_32 against `aac_demuxer' can not be used when making a 
shared object; recompile with -fPIC

/usr/share/octave/packages/ffmpeg-export-2009-06-04/libavformat/libavformat.a: 
could not read symbols: Bad value

collect2: ld returned 1 exit status

make[1]: *** [avifile.oct] Error 1

make[1]: Leaving directory `/usr/share/octave/packages/video-1.0.2/src'

make: *** [build] Error 2

 

Thanks for the help, ahead of time.


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to