Re: [Ekiga-list] ekiga-list Digest, Vol 47, Issue 5



> > On 04/06/10 17:20, J?nis Ruk??ns wrote:
> >> Just add -D__STDC_CONSTANT_MACROS to opal CXXFLAGS (and for everything
> >> else that is in C++ and somehow includes avutil.h).
> >
> > Why does it work on some machines (mine for ex.) and not on his?
> 
> Well it should work, unless his stdint.h is different than mine
> (doesn't seem to be the case), something undefs __STDC_CONSTANT_MACROS
> or some other black magic happens which makes the define to vanish.
> Anyway I didn't see him mentioning that he tried to add
> -D__STDC_CONSTANT_MACROS to CXXFLAGS and it still didn't work, unless
> that was off the list. So I assume he's using vanilla 3.8.6 which of
> course won't work.
> 
> By the way I see there is patch posted regarding this, however only
> for H.263 - http://sourceforge.net/tracker/?func=detail&aid=3011184&group_id=204472&atid=989750
> 
> -- 
> Ian
Hi,

for some reason, adding -D__STDC_CONSTANT_MACROS to CXXFLAGS doesn't help. It seems that something really undefs the 
#define. But this patch fixes compilation for h264 and h263-1998:

--- plugins/video/H.264/h264-x264.h.orig	2010-06-03 23:11:31.475187616 +0200
+++ plugins/video/H.264/h264-x264.h	2010-06-03 23:13:13.476379901 +0200
@@ -48,7 +48,8 @@
  #include "../common/vs-stdint.h"
  #include "../common/critsect.h"
 #else
- #include <stdint.h>
+#define __STDC_CONSTANT_MACROS 1 
+#include <stdint.h>
  #include "critsect.h"
 #endif
 
--- plugins/video/common/dyna.h.orig	2010-06-03 23:10:08.844324961 +0200
+++ plugins/video/common/dyna.h	2010-06-03 23:14:13.999270987 +0200
@@ -63,6 +63,8 @@
 #include "critsect.h"
 #include "trace.h"
 
+#define __STDC_CONSTANT_MACROS 1 
+#include <stdint.h>
 
 extern "C" {
 #include LIBAVCODEC_HEADER

--- plugins/video/H.263-1998/h263pframe.h.orig  2010-06-03 23:42:23.985200075 +0200
+++ plugins/video/H.263-1998/h263pframe.h       2010-06-03 23:43:00.654187209 +0200
@@ -25,6 +25,7 @@
 
 #include "plugin-config.h"
 
+#define __STDC_CONSTANT_MACROS 1 
 #include <stdint.h>
 #include <vector>
 #include <string.h>

regards

Gerhard


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]