[ 23%] Building CXX object src/core/python/CMakeFiles/bob_core_py27.dir/typeinfo.cc.o
/opt/local/var/macports/build/_opt_macports_trunk_dports_science_bob/bob/work/bob-1.2.0/src/io/cxx/VideoUtilities.cc:49:9: error: unknown type name 'CodecID'; did you mean 'AVCodecID'?
typedef CodecID AVCodecID;
^~~~~~~
AVCodecID
/opt/local/include/libavcodec/avcodec.h:100:6: note: 'AVCodecID' declared here
enum AVCodecID {
^
1 error generated.
On 8/5/13 11:57 PM, André Anjos wrote:
> diff --git a/src/io/cxx/VideoUtilities.cc b/src/io/cxx/VideoUtilities.cc
> index 2b8e9c1..d78cc67 100644
> --- a/src/io/cxx/VideoUtilities.cc
> +++ b/src/io/cxx/VideoUtilities.cc
> @@ -41,12 +41,11 @@ extern "C" {
> /**
> * Some code to account for older versions of ffmpeg
> */
> -#ifndef AV_CODEC_ID_NONE
> -#define AV_CODEC_ID_NONE CODEC_ID_NONE
> -#define AV_CODEC_ID_MPEG1VIDEO CODEC_ID_MPEG1VIDEO
> -#define AV_CODEC_ID_MPEG2VIDEO CODEC_ID_MPEG2VIDEO
> -#define AV_CODEC_ID_MJPEG CODEC_ID_MJPEG
> -typedef CodecID AVCodecID;
> +#if LIBAVCODEC_VERSION_INT < 0x363b64 //54.59.100 @ ffmpeg-1.0
> +# define AV_CODEC_ID_NONE CODEC_ID_NONE
> +# define AV_CODEC_ID_MPEG1VIDEO CODEC_ID_MPEG1VIDEO
> +# define AV_CODEC_ID_MPEG2VIDEO CODEC_ID_MPEG2VIDEO
> +# define AV_CODEC_ID_MJPEG CODEC_ID_MJPEG
> #endif
>
> #ifndef AV_PKT_FLAG_KEY
André --
This patch fixes the problem for me. I was able to build cleanly using
the following ffmpeg versions:
ffmpeg-1.2.2 (current MacPorts ffmpeg @1.2.2_0+gpl2+universal)
ffmpeg recent master (current MacPorts ffmpeg-devel
@20130727_1+gpl2+universal)
ffmpeg-2.0 (not yet released MacPorts ffmpeg @2.0_0+gpl2+universal)
If you agree, I will commit your modified port as soon as you post it.
Dave
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On 8/6/13 8:19 AM, André Anjos wrote:
> Thanks, Dave. I still need to wait for our nightlies to make sure the
> fix will compile for older versions of ffmpeg. If that works out, I'll
> provide a Portfile patch through your ticket tomorrow. A
>
André --
I committed your patch this morning but looks like the build failed on
buildbot for Snow Leopard. Lion and ML are ok.
The Buildbot has detected a failed build on builder buildports-snowleopard-x86_64 while building MacPorts.
Full details are available at:
http://build.macports.org/builders/buildports-snowleopard-x86_64/builds/19393
Dave
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks,This problem is related to the fact that SL brings an older version of clang which does not support some C++11 features we have at the code.Is there a simple way, on the Portfile, to specify we need gcc47 to compile Bob under SnowLeopard?A
On Wed, Aug 7, 2013 at 6:22 PM, David Evans <db.e...@gmail.com> wrote:
On 8/7/13 9:02 AM, André Anjos wrote:Sorry, build log is here ->
> Hi Dave, that is a bit strange... there is no information on the
> status link that failed. Maybe a random failure? Could you please
> re-run that build by hand? A
>
https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/19393/steps/compile/logs/stdio
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.
--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for your work, Dave. A