You are not logged in.
vice-gnome, or vice (from abs) won't build. I hate the ui in the standard vice, hence why I like to compile vice-gnome.
Please can you experts out there help me diagnose the compile error below.
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -I../../src -I../../src -I../../src/raster -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT crtc.o -MD -MP -MF .deps/crtc.Tpo -c -o crtc.o crtc.c
mv -f .deps/crtc.Tpo .deps/crtc.Po
rm -f libcrtc.a
ar cru libcrtc.a crtc-cmdline-options.o crtc-color.o crtc-draw.o crtc-mem.o crtc-resources.o crtc-snapshot.o crtc.o
ranlib libcrtc.a
make[3]: Leaving directory `/tmp/packerbuild-1000/vice-gnome/vice-gnome/src/vice-2.3/src/crtc'
Making all in gfxoutputdrv
make[3]: Entering directory `/tmp/packerbuild-1000/vice-gnome/vice-gnome/src/vice-2.3/src/gfxoutputdrv'
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT bmpdrv.o -MD -MP -MF .deps/bmpdrv.Tpo -c -o bmpdrv.o bmpdrv.c
mv -f .deps/bmpdrv.Tpo .deps/bmpdrv.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT doodledrv.o -MD -MP -MF .deps/doodledrv.Tpo -c -o doodledrv.o doodledrv.c
mv -f .deps/doodledrv.Tpo .deps/doodledrv.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT gfxoutput.o -MD -MP -MF .deps/gfxoutput.Tpo -c -o gfxoutput.o gfxoutput.c
mv -f .deps/gfxoutput.Tpo .deps/gfxoutput.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT iffdrv.o -MD -MP -MF .deps/iffdrv.Tpo -c -o iffdrv.o iffdrv.c
mv -f .deps/iffdrv.Tpo .deps/iffdrv.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT pcxdrv.o -MD -MP -MF .deps/pcxdrv.Tpo -c -o pcxdrv.o pcxdrv.c
mv -f .deps/pcxdrv.Tpo .deps/pcxdrv.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT ppmdrv.o -MD -MP -MF .deps/ppmdrv.Tpo -c -o ppmdrv.o ppmdrv.c
mv -f .deps/ppmdrv.Tpo .deps/ppmdrv.Po
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src -I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/atk-1.0 -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT ffmpegdrv.o -MD -MP -MF .deps/ffmpegdrv.Tpo -c -o ffmpegdrv.o ffmpegdrv.c
In file included from ffmpegdrv.c:35:0:
ffmpeglib.h:64:1: warning: ‘ByteIOContext’ is deprecated (declared at /usr/include/libavformat/avio.h:67) [-Wdeprecated-declarations]
ffmpeglib.h:65:1: warning: ‘ByteIOContext’ is deprecated (declared at /usr/include/libavformat/avio.h:67) [-Wdeprecated-declarations]
ffmpegdrv.c: In function ‘ffmpegmovie_init_audio’:
ffmpegdrv.c:345:21: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function)
ffmpegdrv.c:345:21: note: each undeclared identifier is reported only once for each function it appears in
ffmpegdrv.c: In function ‘ffmpegmovie_encode_audio’:
ffmpegdrv.c:373:22: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
ffmpegdrv.c: In function ‘ffmpegdrv_init_video’:
ffmpegdrv.c:562:21: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
ffmpegdrv.c: In function ‘ffmpegdrv_record’:
ffmpegdrv.c:822:22: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
make[3]: *** [ffmpegdrv.o] Error 1
make[3]: Leaving directory `/tmp/packerbuild-1000/vice-gnome/vice-gnome/src/vice-2.3/src/gfxoutputdrv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/packerbuild-1000/vice-gnome/vice-gnome/src/vice-2.3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/packerbuild-1000/vice-gnome/vice-gnome/src/vice-2.3/src'
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...
The build failed.
Last edited by gazj (2011-11-30 06:34:27)
Offline
I just tried to install it using Packer:
sudo packer -S vice-gnome
It failed, so I had a quick look around and came across this: http://vicekb.trikaliotis.net/01-004
It is pretty old, 2005, but maybe it is a pointer towards the issue?
Offline
Offline
It needs to be patched to build with the latest ffmpeg. Use this patch:
diff -Naur vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c vice-2.3/src/gfxoutputdrv/ffmpegdrv.c
--- vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c 2011-11-28 22:41:20.204389694 -0500
+++ vice-2.3/src/gfxoutputdrv/ffmpegdrv.c 2011-11-28 22:47:48.396209074 -0500
@@ -342,7 +342,7 @@
c = st->codec;
c->codec_id = ffmpegdrv_fmt->audio_codec;
- c->codec_type = CODEC_TYPE_AUDIO;
+ c->codec_type = AVMEDIA_TYPE_AUDIO;
c->sample_fmt = SAMPLE_FMT_S16;
/* put sample parameters */
@@ -370,7 +370,7 @@
pkt.size = (*ffmpeglib.p_avcodec_encode_audio)(c,
audio_outbuf, audio_outbuf_size, audio_in->buffer);
pkt.pts = c->coded_frame->pts;
- pkt.flags |= PKT_FLAG_KEY;
+ pkt.flags |= AV_PKT_FLAG_KEY;
pkt.stream_index = audio_st->index;
pkt.data = audio_outbuf;
@@ -559,7 +559,7 @@
c = st->codec;
c->codec_id = ffmpegdrv_fmt->video_codec;
- c->codec_type = CODEC_TYPE_VIDEO;
+ c->codec_type = AVMEDIA_TYPE_VIDEO;
/* put sample parameters */
c->bit_rate = video_bitrate;
@@ -819,7 +819,7 @@
if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) {
AVPacket pkt;
(*ffmpeglib.p_av_init_packet)(&pkt);
- pkt.flags |= PKT_FLAG_KEY;
+ pkt.flags |= AV_PKT_FLAG_KEY;
pkt.stream_index = video_st->index;
pkt.data = (uint8_t*)picture;
pkt.size = sizeof(AVPicture);
@@ -840,7 +840,7 @@
(*ffmpeglib.p_av_init_packet)(&pkt);
pkt.pts = c->coded_frame->pts;
if (c->coded_frame->key_frame)
- pkt.flags |= PKT_FLAG_KEY;
+ pkt.flags |= AV_PKT_FLAG_KEY;
pkt.stream_index = video_st->index;
pkt.data = video_outbuf;
pkt.size = out_size;
Offline
Thanks for your help, it now gets much further. But we are not quite there yet.
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C64'
Making install in C64DTV
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C64DTV'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C64DTV'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/C64DTV" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/C64DTV"
/bin/install -c -m 644 basic chargen kernal dtvrom.bin default.vrs x11_sym.vkm x11_pos.vkm c64mem.sym '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/C64DTV'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C64DTV'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C64DTV'
Making install in C128
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C128'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C128'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/C128" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/C128"
/bin/install -c -m 644 basic64 basichi basiclo chargde chargen chargfr chargse kernal kernal64 kernalde kernalfi kernalfr kernalit kernalno kernalse default.vrs c64hq.vpl c64s.vpl ccs64.vpl default.vpl frodo.vpl godot.vpl pc64.vpl vdc_deft.vpl vdc_comp.vpl vice.vpl x11_sym.vkm x11_pos.vkm '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/C128'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C128'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/C128'
Making install in VIC20
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/VIC20'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/VIC20'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/VIC20" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/VIC20"
/bin/install -c -m 644 basic chargen kernal default.vrs default.vpl x11_pos.vkm x11_sym.vkm '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/VIC20'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/VIC20'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/VIC20'
Making install in PET
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PET'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PET'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/PET" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/PET"
/bin/install -c -m 644 basic1 basic2 basic4 kernal1 kernal2 kernal4 edit1g edit2g edit2b edit4g40 edit4b40 edit4b80 chargen chargen.de rom1g.vrs rom2b.vrs rom2g.vrs rom4b40.vrs rom4b80.vrs rom4g40.vrs amber.vpl green.vpl white.vpl x11_bdep.vkm x11_bdep_de.vkm x11_bdes.vkm x11_bdes_de.vkm x11_bgrp.vkm x11_bgrp_de.vkm x11_bgrs.vkm x11_bgrs_de.vkm x11_bukp.vkm x11_bukp_de.vkm x11_buks.vkm x11_buks_de.vkm '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/PET'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PET'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PET'
Making install in PLUS4
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PLUS4'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PLUS4'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/PLUS4" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/PLUS4"
/bin/install -c -m 644 3plus1hi 3plus1lo basic kernal default.vrs default.vpl vice.vpl x11_pos.vkm x11_sym.vkm x11_sym_de.vkm '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/PLUS4'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PLUS4'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PLUS4'
Making install in CBM-II
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/CBM-II'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/CBM-II'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/CBM-II" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/CBM-II"
/bin/install -c -m 644 basic.128 basic.256 basic.500 chargen.500 chargen.600 chargen.700 kernal kernal.500 rom500.vrs rom128l.vrs rom128h.vrs rom256l.vrs rom256h.vrs amber.vpl c64hq.vpl c64s.vpl ccs64.vpl default.vpl frodo.vpl godot.vpl green.vpl pc64.vpl white.vpl x11_buks.vkm x11_buks_de.vkm '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/CBM-II'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/CBM-II'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/CBM-II'
Making install in DRIVES
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/DRIVES'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/DRIVES'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/DRIVES" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/DRIVES"
/bin/install -c -m 644 dos1541 dos1551 d1541II dos1570 dos1571 d1571cr dos1581 dos2031 dos1001 dos2040 dos3040 dos4040 '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/DRIVES'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/DRIVES'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/DRIVES'
Making install in PRINTER
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PRINTER'
make[3]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PRINTER'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/vice/PRINTER" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/PRINTER"
/bin/install -c -m 644 cbm1526 mps801 mps803 mps803.vpl nl10-cbm '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/PRINTER'
make[3]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PRINTER'
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/PRINTER'
Making install in fonts
make[2]: Entering directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/fonts'
test -z "/usr/lib/vice/fonts" || /bin/mkdir -p "/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/fonts"
/bin/install -c -m 644 vice-cbm.bdf CBM.ttf '/home/gary/Downloads/vice-gnome/pkg/usr/lib/vice/fonts'
Preparing fontdir, please wait...
/home/gary/.fonts: failed to write cache
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data/fonts'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/gary/Downloads/vice-gnome/src/vice-2.3/data'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in package().
Aborting...
EDIT: CBM.ttf has ended up in ~/.fonts ?
Last edited by gazj (2011-11-29 23:39:32)
Offline
Here I got:
make[2]: Entering directory `/tmp/vice/trunk/src/vice-2.3/data/fonts'
test -z "/usr/lib/vice/fonts" || /bin/mkdir -p "/tmp/vice/trunk/pkg/usr/lib/vice/fonts"
/bin/install -c -m 644 vice-cbm.bdf CBM.ttf '/tmp/vice/trunk/pkg/usr/lib/vice/fonts'
Preparing fontdir, please wait...
cp: cannot stat `/usr/lib/vice/fonts/CBM.ttf': No such file or directory
but the build succeeded. I'll give it a quick check.
Offline
The Makefile tries to install the font in the home directory. It'll need to be patched. Easiest thing to do is to uninstall vice before building it. This way it'll continue to build like it did here.
Offline
Offline
It needs to be patched to build with the latest ffmpeg. Use this patch:
diff -Naur vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c vice-2.3/src/gfxoutputdrv/ffmpegdrv.c --- vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c 2011-11-28 22:41:20.204389694 -0500 +++ vice-2.3/src/gfxoutputdrv/ffmpegdrv.c 2011-11-28 22:47:48.396209074 -0500 @@ -342,7 +342,7 @@ c = st->codec; c->codec_id = ffmpegdrv_fmt->audio_codec; - c->codec_type = CODEC_TYPE_AUDIO; + c->codec_type = AVMEDIA_TYPE_AUDIO; c->sample_fmt = SAMPLE_FMT_S16; /* put sample parameters */ @@ -370,7 +370,7 @@ pkt.size = (*ffmpeglib.p_avcodec_encode_audio)(c, audio_outbuf, audio_outbuf_size, audio_in->buffer); pkt.pts = c->coded_frame->pts; - pkt.flags |= PKT_FLAG_KEY; + pkt.flags |= AV_PKT_FLAG_KEY; pkt.stream_index = audio_st->index; pkt.data = audio_outbuf; @@ -559,7 +559,7 @@ c = st->codec; c->codec_id = ffmpegdrv_fmt->video_codec; - c->codec_type = CODEC_TYPE_VIDEO; + c->codec_type = AVMEDIA_TYPE_VIDEO; /* put sample parameters */ c->bit_rate = video_bitrate; @@ -819,7 +819,7 @@ if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) { AVPacket pkt; (*ffmpeglib.p_av_init_packet)(&pkt); - pkt.flags |= PKT_FLAG_KEY; + pkt.flags |= AV_PKT_FLAG_KEY; pkt.stream_index = video_st->index; pkt.data = (uint8_t*)picture; pkt.size = sizeof(AVPicture); @@ -840,7 +840,7 @@ (*ffmpeglib.p_av_init_packet)(&pkt); pkt.pts = c->coded_frame->pts; if (c->coded_frame->key_frame) - pkt.flags |= PKT_FLAG_KEY; + pkt.flags |= AV_PKT_FLAG_KEY; pkt.stream_index = video_st->index; pkt.data = video_outbuf; pkt.size = out_size;
I added this to pkgbuild using vi during the "Edit vice-sdl PKGBUILD with $EDITOR?" portion of the packer installation, but
diff: vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c: No such file or directory
diff: vice-2.3/src/gfxoutputdrv/ffmpegdrv.c: No such file or directory
PKGBUILD: line 33: ---: command not found
PKGBUILD: line 34: +++: command not found
PKGBUILD: line 35: @@: command not found
PKGBUILD: line 37: c: command not found
PKGBUILD: line 38: c-: command not found
PKGBUILD: line 39: -: command not found
PKGBUILD: line 40: +: command not found
PKGBUILD: line 41: c-: command not found
PKGBUILD: line 43: /bin: Is a directory
PKGBUILD: line 44: @@: command not found
PKGBUILD: line 45: syntax error near unexpected token `('
PKGBUILD: line 45: ` pkt.size = (*ffmpeglib.p_avcodec_encode_audio)(c, '
diff: vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c: No such file or directory
diff: vice-2.3/src/gfxoutputdrv/ffmpegdrv.c: No such file or directory
==> ERROR: An unknown error has occurred. Exiting...
The build failed.
Salix-13.37-64-XFCE/Spectrwm Archbang/Razor-QT
Intel® Atom™ Processor D510
NVIDIA® GeForce™ 6200
Offline
The patch should be saved as a seperate file, e.g vice-ffmpeg.patch. In the PKGBUILD, you should just apply it:
patch -p1 -i $srcdir/vice-ffmpeg.patch
Offline
The patch should be saved as a seperate file, e.g vice-ffmpeg.patch. In the PKGBUILD, you should just apply it:
patch -p1 -i $srcdir/vice-ffmpeg.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c vice-2.3/src/gfxoutputdrv/ffmpegdrv.c
|--- vice-2.3-orig/src/gfxoutputdrv/ffmpegdrv.c 2011-11-28 22:41:20.204389694 -0500
|+++ vice-2.3/src/gfxoutputdrv/ffmpegdrv.c 2011-11-28 22:47:48.396209074 -0500
--------------------------
File to patch
Apparently
sudo packer -S vice-sdl
doesn't create a vice-sdl/vice-sdl/src/ directory
sudo packer -S vice-gnome
does, so I used the patch on it and it worked.
Last edited by haikuhacker (2011-12-03 18:05:29)
Salix-13.37-64-XFCE/Spectrwm Archbang/Razor-QT
Intel® Atom™ Processor D510
NVIDIA® GeForce™ 6200
Offline