Hi,
I installed the video package from octave-forge but encountered a bug:

AVHandler.cc: In member function ‘int AVHandler::init_video_codecs()’:
AVHandler.cc:424: error: ‘malloc’ was not declared in this scope
AVHandler.cc: In member function ‘AVFrame*
AVHandler::create_frame(PixelFormat)’:
AVHandler.cc:444: error: ‘malloc’ was not declared in this scope
make: *** [AVHandler.o] Error 1
error: 'make' returned the following error: make: Entering directory
`/tmp/oct-p2gqIB/video-1.0.1/src'
mkoctfile -v -c -DHAVE_FFMPEG_AVFORMAT_H -DHAVE_FFMPEG_AVCODEC_H
-I/usr/include/ffmpeg   AVHandler.cc -o AVHandler.o
g++ -c -fPIC -I/usr/include/octave-3.0.1
-I/usr/include/octave-3.0.1/octave -mieee-fp -O2 -g
-I/usr/include/ffmpeg -DHAVE_FFMPEG_AVFORMAT_H -DHAVE_FFMPEG_AVCODEC_H
AVHandler.cc -o AVHandler.o
make: Leaving directory `/tmp/oct-p2gqIB/video-1.0.1/src'
error: called from `pkg:configure_make' in
file /usr/share/octave/3.0.1/m/pkg/pkg.m near line 1245, column 2

So AVHandler.cc calls malloc() but does not #include it. After I added a
"#include <cstdlib>" line to AVHandler.cc, installation went smooth.

I was somewhat surprised to see a malloc() in C++ code, but I am not a
experienced C/C++ programmer, so I assume it is fine.

The video package I installed has version number 1.0.1. I am running
octave 3.0.1 on Ubuntu 8.10 with g++ version 4.3.2.

bye,

Martijn



This e-mail and its contents are subject to the DISCLAIMER at 
http://www.tno.nl/disclaimer/email.html
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to