Open GoogleCodeExporter opened 8 years ago
I commented out go/src/cmd/cgo/gcc.go "-Werror" to and ran ./all.bash
Then I ran gofix - hopefully bringing source go files up to date.
richardworley@ffmpegServer:~/go/src/pkg/gmf.googlecode.com/hg/gmf$ make
CGOPKGPATH= cgo -- -I/home/richardworley/ffmpeg/ffmpeg/include/ avformat.go
avcodec.go avutil.go swscale.go
touch _obj/_cgo_run
6g -p gmf -o _go_.6 Datasource.go MediaLocator.go Demultiplexer.go Track.go
Format.go Rational.go Timestamp.go Decoder.go Encoder.go Coder.go Datasink.go
Multiplexer.go Resizer.go Resampler.go Deinterlacer.go FrameRateConverter.go
Buffer.go gmf.go _obj/avformat.cgo1.go _obj/avcodec.cgo1.go _obj/avutil.cgo1.go
_obj/swscale.cgo1.go _obj/_cgo_gotypes.go
Datasource.go:17: undefined: os.ErrorString
Datasource.go:21: undefined: os.ErrorString
MediaLocator.go:11: too many arguments in call to strings.Split
MediaLocator.go:19: too many arguments in call to strings.Split
Encoder.go:25: undefined: math.Fmax
Datasink.go:23: undefined: os.ErrorString
Resampler.go:27: undefined: os.ErrorString
make: *** [_go_.6] Error 1
Running gofix - yields:
hg/gmf/Datasink.go: fixed oserrorstring
hg/gmf/Datasource.go: fixed oserrorstring
hg/gmf/Encoder.go: fixed math
hg/gmf/MediaLocator.go: fixed stringssplit
hg/gmf/Resampler.go: fixed oserrorstring
Now it tries to Make, but is running into lots of errors associated with
libavcodec.
Here's a sample error:
ffmpeg/libavcodec/cook.c:174: undefined reference to `pow'
Original comment by g...@worleyworks.com
on 20 Oct 2011 at 9:01
Habe a look into this issue
Regards,
Jan
Original comment by Jan.Hoel...@gmail.com
on 20 Oct 2011 at 11:14
From:
http://mailman.videolan.org/pipermail/x264-devel/2011-July/008652.html
Replace avcodec_open with avcodec_open2. Now requires libavcodec 53.6.0 or
newer.
Original comment by g...@worleyworks.com
on 21 Oct 2011 at 4:37
and from:
http://ffmpeg.org/doxygen/trunk/deprecated.html
Global avcodec_alloc_context
use avcodec_alloc_context3()
Original comment by g...@worleyworks.com
on 21 Oct 2011 at 4:51
Original issue reported on code.google.com by
g...@worleyworks.com
on 20 Oct 2011 at 8:39