Ver Fonte

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

rdb há 16 anos atrás
pai
commit
fbc94e1b20
1 ficheiros alterados com 2 adições e 1 exclusões
  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/gtk-2.0/include")
 
-    ffmpeg_libs = ("libavutil", "libavcodec", "libavformat")
     fcollada_libs = ("FColladaD", "FColladaSD")
+    # WARNING! The order of the ffmpeg libraries matters!
+    ffmpeg_libs = ("libavformat", "libavcodec", "libavutil")
 
     #         Name         pkg-config   libs, include(dir)s
     if (not RUNTIME):