|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
ffmpeg
Hello, i am trying to ffmpeg install on my server FBSD 6.3 but am having some issues.
tried Code:
cd /usr/ports/multimedia/ffmpeg/ && make install clean ===> ffmpeg-2008.07.27_7 depends on executable: texi2html - found ===> ffmpeg-2008.07.27_7 depends on executable: gmake - found ===> ffmpeg-2008.07.27_7 depends on shared library: a52.0 - found ===> ffmpeg-2008.07.27_7 depends on shared library: faac.0 - not found ===> Verifying install for faac.0 in /usr/ports/audio/faac ===> faac-1.26_1 depends on executable: gmake - found ===> faac-1.26_1 depends on file: /usr/local/bin/automake-1.9 - not found ===> Verifying install for /usr/local/bin/automake-1.9 in /usr/ports/devel/automake19 ===> Building for automake-1.9.6_3 Making all in . cd . && perllibdir=/usr/ports/devel/automake19/work/automake-1.9.6"/lib:./lib" /usr/ports/devel/automake19/work/automake-1.9.6/automake --libdir=lib --gnu /usr/ports/devel/automake19/work/automake-1.9.6/automake: not found *** Error code 1 Stop in /usr/ports/devel/automake19/work/automake-1.9.6. *** Error code 1 Stop in /usr/ports/devel/automake19/work/automake-1.9.6. *** Error code 1 Stop in /usr/ports/devel/automake19. *** Error code 1 Stop in /usr/ports/audio/faac. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. Automake appears not to be installed Code:
pkg_info automake pkg_info: can't find package 'automake' installed or in a file Code:
cd /usr/ports/devel/automake19/ && make install clean ===> Building for automake-1.9.6_3 Making all in . cd . && perllibdir=/usr/ports/devel/automake19/work/automake-1.9.6"/lib:./lib" /usr/ports/devel/automake19/work/automake-1.9.6/automake --libdir=lib --gnu /usr/ports/devel/automake19/work/automake-1.9.6/automake: not found *** Error code 1 Stop in /usr/ports/devel/automake19/work/automake-1.9.6. *** Error code 1 Stop in /usr/ports/devel/automake19/work/automake-1.9.6. *** Error code 1 Stop in /usr/ports/devel/automake19. Code:
kg_add -r automake19 Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/automake19.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/automake19.tbz' by URL any ideas? cheers |
|
|||
Quote:
I may even look into updating to 7.2 cheers |
|
||||
It looks like when you tried to build automake19, there was a leftover build because it went straight to building instead of extracting. Try cleaning out the work directory and try again:
# cd /usr/ports/devel/automake19/ && make clean && make install clean
|
|
|||
Hello and thanks for replies, ok i have moved forward and have got automake installed plus some other deps but is borking at 'faac'?
Code:
cd /usr/ports/multimedia/ffmpeg/ && make install clean ===> ffmpeg-2008.07.27_10 depends on executable: texi2html - found ===> ffmpeg-2008.07.27_10 depends on executable: gmake - found ===> ffmpeg-2008.07.27_10 depends on shared library: a52.0 - found ===> ffmpeg-2008.07.27_10 depends on shared library: faac.0 - not found ===> Verifying install for faac.0 in /usr/ports/audio/faac ===> faac-1.28 depends on executable: gmake - found ===> faac-1.28 depends on file: /usr/local/bin/automake-1.10 - found ===> faac-1.28 depends on file: /usr/local/bin/autoconf-2.62 - found ===> faac-1.28 depends on file: /usr/local/bin/libtool - found ===> faac-1.28 depends on shared library: mp4v2.0 - found ===> Configuring for faac-1.28 cd: can't cd to /usr/ports/audio/faac/work/faac-1.28 *** Error code 2 Stop in /usr/ports/audio/faac. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. *** Error code 1 Code:
cd /usr/ports/audio/faac/ && make install clean ===> faac-1.28 depends on executable: gmake - found ===> faac-1.28 depends on file: /usr/local/bin/automake-1.10 - found ===> faac-1.28 depends on file: /usr/local/bin/autoconf-2.62 - found ===> faac-1.28 depends on file: /usr/local/bin/libtool - found ===> faac-1.28 depends on shared library: mp4v2.0 - found ===> Configuring for faac-1.28 libtoolize: `configure.ac' does not exist Try `libtoolize --help' for more information. *** Error code 1 Stop in /usr/ports/audio/faac. Code:
ls /usr/ports/audio/faac/work/faac/ .cvsignore INSTALL TODO configure.in.orig include AUTHORS Makefile.am bootstrap docs libfaac COPYING NEWS common faac.dsw plugins ChangeLog README configure.in frontend project A google returned nothing so if you have any ideas it would be appreciated. cheers |
|
||||
Semi-wild ass guess
if the DISTFILE 'faac-1.28.tar.bz2' extracts to faac rather then faac-1.28, then the port will need to set WRKSRC accordingly in the makefile: because it sounds like the tarball is not extracting to the expected work directory. Maybe try adding WRKSRC=$(WRKDIR)/faac to the Makefile in audio/faac, make clean in that port dir, and try building it again either directly or via ffmpeg dep. If successful, maybe the faac people changed the archive and the portmaintainer for audio/faac didn't notice.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Quote:
Here is the current Makefile /usr/ports/audio/faac/Makefile Code:
# New ports collection makefile for: faac # Date created: Wed May 5 16:38:55 EDT 2004 # Whom: Michael Johnson <ahze@ahze.net> # # $FreeBSD: ports/audio/faac/Makefile,v 1.35 2009/03/24 16:58:55 mm Exp $ # PORTNAME= faac PORTVERSION= 1.28 CATEGORIES= audio MASTER_SITES= SFE MAINTAINER= multimedia@FreeBSD.org COMMENT= MPEG-2 and MPEG-4 AAC audio encoder LIB_DEPENDS= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 RESTRICTED= Distribution in binary form is prohibited USE_BZIP2= yes USE_DOS2UNIX= yes USE_GMAKE= yes MAKE_JOBS_SAFE= yes USE_AUTOTOOLS= aclocal:110 autoheader:262 automake:110 autoconf:262 libtool:15 ACLOCAL_ARGS= -I . -I ${LOCALBASE}/share/aclocal AUTOMAKE_ARGS= --add-missing CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ LIBS="-lmp4v2" USE_LDCONFIG= yes MAN1= faac.1 .include <bsd.port.pre.mk> post-patch: @${ECHO_CMD} "" >> ${WRKSRC}/libfaac/psych.h pre-configure: @cd ${WRKSRC}; ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake .include <bsd.port.post.mk> Cheers |
|
||||
It shouldn't matter much for testing; above maintainer would be fine.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Thanks that did it, it has now built fine, i have emailed the maintainer address in makefile with this issue.
cheers |
|
|||
Ok this turning into a bit of struggle, now when trying to build the original app ffmpeg i get
Code:
License: unredistributable Creating config.mak and config.h... ===> Building for ffmpeg-2008.07.27_10 gmake: *** virtual memory exhausted. Stop. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. I find this is due to fact that ffmpeg needs gmake-3.81 and my system only 3.80, so update this but now get cd /usr/ports/multimedia/ffmpeg/ && make install clean Code:
===> Building for ffmpeg-2008.07.27_10 cd ./libavutil/ && ln -sf libavutil.so.1 libavutil.so cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I. -I"/usr/ports/multimedia/ffmpeg/work/ffmpeg-2008-07-27" -pipe -march=pentium3 -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -fno-strict-aliasing -msse -I/usr/local/include -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/libx264.o libavcodec/libx264.c cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I. -I"/usr/ports/multimedia/ffmpeg/work/ffmpeg-2008-07-27" -pipe -march=pentium3 -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -fno-strict-aliasing -msse -I/usr/local/include -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/aac_ac3_parser.o libavcodec/aac_ac3_parser.c libavcodec/libx264.c: In function `X264_init': libavcodec/libx264.c:165: error: structure has no member named `b_bframe_adaptive' libavcodec/libx264.c:230: error: structure has no member named `b_bidir_me' libavcodec/libx264.c:231: error: structure has no member named `b_bframe_rdo' libavcodec/libx264.c:256: error: structure has no member named `psz_rc_eq' gmake: *** [libavcodec/libx264.o] Error 1 gmake: *** Waiting for unfinished jobs.... *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. any ideas cheers |
|
||||
Curious, how much memory and SWAP do you have installed?
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
2gb ram 2gb swap, but that is not the issue, that was cured by updating to gmake 3.81
it is the last one which is now problem. |
|
||||
Quote:
|
|
|||
Hello and thanks for reply, X264 is already installed!
I also tried un-setting X264 option from /usr/ports/multimedia/ffmpeg/Makefile Code:
OPTIONS= AMR_NB "AMR narrowband encoder" off \ AMR_WB "AMR wideband encoder" off \ FAAC "FAAC mp4/aac audio encoder" off \ FAAD "FAAD mp4/aac audio decoder" on \ GSM "gsm audio codec" off \ IPV6 "IPV6 network support" on \ LAME "lame MP3 codec" off \ LIBA52 "liba52 support" on \ OPTIMIZED_CFLAGS "Additional optimizations" off \ SDL "SDL support (build ffplay)" off \ THEORA "libtheora support (implies OGG)" on \ VORBIS "libvorbisenc support (implies OGG)" on \ X264 "X.264 codec" off \ XVID "XVID codec" off Code:
/usr/ports/multimedia/ffmpeg]# make install clean ===> Building for ffmpeg-2008.07.27_10 cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I. -I"/usr/ports/multimedia/ffmpeg/work/ffmpeg-2008-07-27" -pipe -march=pentium3 -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -fno-strict-aliasing -msse -I/usr/local/include -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/libx264.o libavcodec/libx264.c cc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I. -I"/usr/ports/multimedia/ffmpeg/work/ffmpeg-2008-07-27" -pipe -march=pentium3 -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -fno-strict-aliasing -msse -I/usr/local/include -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/dca_parser.o libavcodec/dca_parser.c libavcodec/libx264.c: In function `X264_init': libavcodec/libx264.c:165: error: structure has no member named `b_bframe_adaptive' libavcodec/libx264.c:230: error: structure has no member named `b_bidir_me' libavcodec/libx264.c:231: error: structure has no member named `b_bframe_rdo' libavcodec/libx264.c:256: error: structure has no member named `psz_rc_eq' gmake: *** [libavcodec/libx264.o] Error 1 gmake: *** Waiting for unfinished jobs.... *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. *** Error code 1 Stop in /usr/ports/multimedia/ffmpeg. cheers |
|
||||
Just because it is registered as installed, doesn't necessarily mean it is working properly. Make sure you have /usr/local/include/x264.h
Quote:
# cd /usr/ports/multimedia/ffmpeg && make config That will bring up the blue OPTIONS screen again and you can uncheck X264. Oh and be sure to run 'make clean' before each attempt at building. |
Thread Tools | |
Display Modes | |
|
|