__STDC_CONSTANT_MACROS should be defined

Bug #670615 reported by Stefan de Konink
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
movie2dng
Fix Committed
Critical
Paulo Henrique Silva

Bug Description

FFmpeg is currently linked in by movie2dng. Without the __STDC_CONSTANT_MACROS definition the compilation fails.

I don't know if you use ffmpeg on the other platforms but this fixed it for me:

Index: SConstruct
===================================================================
--- SConstruct (revision 200)
+++ SConstruct (working copy)
@@ -15,7 +15,7 @@
     env.Append(LINKFLAGS=["-framework", "CoreServices"])
 elif platform == "linux2":
     env = Environment(ENV=env)
- env.Append(CPPDEFINES=["qMacOS=0", "qWinOS=0", "UNIX_ENV=1"])
+ env.Append(CPPDEFINES=["qMacOS=0", "qWinOS=0", "UNIX_ENV=1", "__STDC_CONSTANT_MACROS"])
 elif platform == "win32":
     env = Environment(ENV=env, TOOLS=['mingw'])
     env.Append(CPPDEFINES=["qMacOS=0", "qWinOS=0", "UNIX_ENV=1"])

Changed in movie2dng:
assignee: nobody → pH (phsilva)
importance: Undecided → Critical
status: New → Fix Committed
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Paulo Henrique Silva (phsilva) wrote :

Fixed on r201. Thanks for the report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.