[Fluxus] [PATCH 2/2] Add __STDC_CONSTANT_MACROS to CXXFLAGS.
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sun Aug 22 09:14:24 PDT 2010
From: Stefano Sabatini <stefano at arborea.caos.org>
Fix compilation of addons/video/src/ofUCUtils.cpp, when using a recent
version of FFmpeg:
In file included from /home/stefano/include/libavutil/avutil.h:81,
from /home/stefano/include/libavcodec/avcodec.h:30,
from /home/stefano/include/libavformat/avformat.h:56,
from addons/video/src/ofUCUtils.cpp:19:
/home/stefano/include/libavutil/common.h: In function 'int32_t av_clipl_int32_c(int64_t)':
/home/stefano/include/libavutil/common.h:161: error: 'UINT64_C' was not declared in this scope
scons: *** [addons/video/src/ofUCUtils.os] Error 1
---
SConstruct | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index 786b578..63bbc9e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -96,6 +96,7 @@ env.Append(CCFLAGS=' -DFLUXUS_MINOR_VERSION='+MinorVersion)
env.Append(CCFLAGS=" -DRACKET_COLLECTS_LOCATION="+"\"\\\""+RacketCollectsLocation+"\"\\\"")
env.Append(CCFLAGS=" -DFLUXUS_COLLECTS_LOCATION="+"\"\\\""+FluxusCollectsLocation+"\"\\\"")
env.Append(CCFLAGS=" -DDATA_LOCATION="+"\"\\\""+DataLocation+"\"\\\"")
+env.Append(CXXFLAGS=" -D__STDC_CONSTANT_MACROS")
if ARGUMENTS.get("GLSL","1")=="1":
env.Append(CCFLAGS=' -DGLSL')
--
1.7.1
More information about the Fluxus
mailing list