Browse Source

Apparently, the order of ffmpeg libraries on the linker command-line matters, when they are statically linked

rdb 16 years ago
parent
commit
fbc94e1b20
1 changed files with 2 additions and 1 deletions
  1. 2 1
      makepanda/makepanda.py

+ 2 - 1
makepanda/makepanda.py

@@ -412,8 +412,9 @@ if (COMPILER=="LINUX"):
         IncDirectory("GTK2", "/usr/lib64/glib-2.0/include")
         IncDirectory("GTK2", "/usr/lib64/glib-2.0/include")
         IncDirectory("GTK2", "/usr/lib64/gtk-2.0/include")
         IncDirectory("GTK2", "/usr/lib64/gtk-2.0/include")
 
 
-    ffmpeg_libs = ("libavutil", "libavcodec", "libavformat")
     fcollada_libs = ("FColladaD", "FColladaSD")
     fcollada_libs = ("FColladaD", "FColladaSD")
+    # WARNING! The order of the ffmpeg libraries matters!
+    ffmpeg_libs = ("libavformat", "libavcodec", "libavutil")
 
 
     #         Name         pkg-config   libs, include(dir)s
     #         Name         pkg-config   libs, include(dir)s
     if (not RUNTIME):
     if (not RUNTIME):