Date: Fri, 18 Nov 2016 23:28:48 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 214644] cad/netgen: switch to multimedia/ffmpeg (2.0 API) Message-ID: <bug-214644-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214644 Bug ID: 214644 Summary: cad/netgen: switch to multimedia/ffmpeg (2.0 API) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: multimedia@FreeBSD.org, stephen@FreeBSD.org Depends on: 214199 CC: stephen@FreeBSD.org Building against ffmpeg 3.x requires fixing the following errors: ngpkg.cpp:2269:12: error: unknown type name 'CodecID'; did you mean 'AVCodecID'? static CodecID codec_id =3D CODEC_ID_MPEG1VIDEO; ^~~~~~~ AVCodecID /usr/local/include/libavcodec/avcodec.h:191:6: note: 'AVCodecID' declared h= ere enum AVCodecID { ^ ngpkg.cpp:2269:31: error: use of undeclared identifier 'CODEC_ID_MPEG1VIDEO= '; did you mean 'AV_CODEC_ID_MPEG1VIDEO'? static CodecID codec_id =3D CODEC_ID_MPEG1VIDEO; ^~~~~~~~~~~~~~~~~~~ AV_CODEC_ID_MPEG1VIDEO /usr/local/include/libavcodec/avcodec.h:195:5: note: 'AV_CODEC_ID_MPEG1VIDE= O' declared here AV_CODEC_ID_MPEG1VIDEO, ^ ngpkg.cpp:2341:28: error: use of undeclared identifier 'PIX_FMT_YUV420P'; d= id you mean 'AV_PIX_FMT_YUV420P'? context->pix_fmt =3D PIX_FMT_YUV420P; ^~~~~~~~~~~~~~~ AV_PIX_FMT_YUV420P /usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' decl= ared here AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample p= er 2x2 Y samples) ^ ngpkg.cpp:2354:22: error: use of undeclared identifier 'avcodec_alloc_frame' YUVpicture =3D avcodec_alloc_frame(); ^ ngpkg.cpp:2363:22: error: use of undeclared identifier 'avcodec_alloc_frame' RGBpicture =3D avcodec_alloc_frame(); ^ ngpkg.cpp:2408:53: error: use of undeclared identifier 'PIX_FMT_RGB24'; did= you mean 'AV_PIX_FMT_RGB24'? img_convert_ctx =3D sws_getContext( nx, ny, PIX_FMT_RGB24, ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declar= ed here AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB... ^ ngpkg.cpp:2409:53: error: use of undeclared identifier 'PIX_FMT_YUV420P'; d= id you mean 'AV_PIX_FMT_YUV420P'? nx, ny, PIX_FMT_YUV420P, ^~~~~~~~~~~~~~~ AV_PIX_FMT_YUV420P /usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' decl= ared here AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample p= er 2x2 Y samples) ^ ngpkg.cpp:2423:17: error: use of undeclared identifier 'avcodec_encode_vide= o'; did you mean 'avcodec_encode_video2'? bytes =3D avcodec_encode_video( context, buff.MPG, ^~~~~~~~~~~~~~~~~~~~ avcodec_encode_video2 /usr/local/include/libavcodec/avcodec.h:5322:5: note: 'avcodec_encode_video= 2' declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2423:48: error: cannot initialize a parameter of type 'AVPacket *' with an lvalue of type 'uint8_t *' (aka 'unsigned char *') bytes =3D avcodec_encode_video( context, buff.MPG, ^~~~~~~~ /usr/local/include/libavcodec/avcodec.h:5322:60: note: passing argument to parameter 'avpkt' here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2446:19: error: use of undeclared identifier 'avcodec_encode_vide= o'; did you mean 'avcodec_encode_video2'? bytes =3D avcodec_encode_video( context, buff.MPG, MPGbufsize, NU= LL ); ^~~~~~~~~~~~~~~~~~~~ avcodec_encode_video2 /usr/local/include/libavcodec/avcodec.h:5322:5: note: 'avcodec_encode_video= 2' declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2446:50: error: cannot initialize a parameter of type 'AVPacket *' with an lvalue of type 'uint8_t *' (aka 'unsigned char *') bytes =3D avcodec_encode_video( context, buff.MPG, MPGbufsize, NU= LL ); ^~~~~~~~ /usr/local/include/libavcodec/avcodec.h:5322:60: note: passing argument to parameter 'avpkt' here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2454:25: error: use of undeclared identifier 'CODEC_ID_MPEG1VIDEO= '; did you mean 'AV_CODEC_ID_MPEG1VIDEO'? if( codec_id =3D=3D CODEC_ID_MPEG1VIDEO ) { ^~~~~~~~~~~~~~~~~~~ AV_CODEC_ID_MPEG1VIDEO /usr/local/include/libavcodec/avcodec.h:195:5: note: 'AV_CODEC_ID_MPEG1VIDE= O' declared here AV_CODEC_ID_MPEG1VIDEO, ^ Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214199 [Bug 214199] cad/netgen: fails to build with ffmpeg 3.x (FFMPEG=3Don) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214644-13>