diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index 122a4ed206..ccb8589d8c 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -2484,6 +2484,7 @@ class Packager: GlobPattern('libthr.so*'), GlobPattern('ld-linux.so*'), GlobPattern('ld-linux-*.so*'), + GlobPattern('librt.so*'), ] # A Loader for loading models. diff --git a/direct/src/p3d/SeqValue.py b/direct/src/p3d/SeqValue.py index e83c44dc6a..958132f74b 100644 --- a/direct/src/p3d/SeqValue.py +++ b/direct/src/p3d/SeqValue.py @@ -88,4 +88,3 @@ class SeqValue: def __str__(self): return 'SeqValue%s' % (repr(self.value)) - diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index bf92586c12..4865b2b65a 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -786,9 +786,9 @@ if (COMPILER=="GCC"): SmartPkgEnable("ARTOOLKIT", "", ("AR"), "AR/ar.h") SmartPkgEnable("FCOLLADA", "", ChooseLib(fcollada_libs, "FCOLLADA"), ("FCollada", "FCollada/FCollada.h")) SmartPkgEnable("ASSIMP", "assimp", ("assimp"), "assimp") - SmartPkgEnable("FFMPEG", ffmpeg_libs, ffmpeg_libs, ffmpeg_libs) - SmartPkgEnable("SWSCALE", "libswscale", "libswscale", ("libswscale", "libswscale/swscale.h"), target_pkg = "FFMPEG") - SmartPkgEnable("SWRESAMPLE","libswresample", "libswresample", ("libswresample", "libswresample/swresample.h"), target_pkg = "FFMPEG") + SmartPkgEnable("FFMPEG", ffmpeg_libs, ffmpeg_libs, ("libavformat/avformat.h", "libavcodec/avcodec.h", "libavutil/avutil.h")) + SmartPkgEnable("SWSCALE", "libswscale", "libswscale", ("libswscale/swscale.h"), target_pkg = "FFMPEG", thirdparty_dir = "ffmpeg") + SmartPkgEnable("SWRESAMPLE","libswresample", "libswresample", ("libswresample/swresample.h"), target_pkg = "FFMPEG", thirdparty_dir = "ffmpeg") SmartPkgEnable("FFTW", "", ("rfftw", "fftw"), ("fftw.h", "rfftw.h")) SmartPkgEnable("FMODEX", "", ("fmodex"), ("fmodex", "fmodex/fmod.h")) SmartPkgEnable("FREETYPE", "freetype2", ("freetype"), ("freetype2", "freetype2/freetype/freetype.h")) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 1b87ed7c9d..ecbb5412c5 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -1457,7 +1457,7 @@ def ChooseLib(libs, thirdparty=None): print(ColorText("cyan", "Couldn't find any of the libraries " + ", ".join(libs))) return libs[0] -def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, framework = None, target_pkg = None, tool = "pkg-config"): +def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, framework = None, target_pkg = None, tool = "pkg-config", thirdparty_dir = None): global PKG_LIST_ALL if (pkg in PkgListGet() and PkgSkip(pkg)): return @@ -1487,16 +1487,12 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, custom_loc = PkgHasCustomLocation(pkg) - if pkg.lower() == "swscale" and os.path.isfile(GetThirdpartyDir() + "ffmpeg/include/libswscale/swscale.h"): - # Let it be handled by the ffmpeg package - LibName(target_pkg, "-lswscale") - return - if pkg.lower() == "swresample" and os.path.isfile(GetThirdpartyDir() + "ffmpeg/include/libswresample/swresample.h"): - LibName(target_pkg, "-lswresample") - return + # Determine the location of the thirdparty directory. + if not thirdparty_dir: + thirdparty_dir = pkg.lower() + pkg_dir = os.path.join(GetThirdpartyDir(), thirdparty_dir) - # First check if the package is in the thirdparty directory. - pkg_dir = os.path.join(GetThirdpartyDir(), pkg.lower()) + # First check if the library can be found in the thirdparty directory. if not custom_loc and os.path.isdir(pkg_dir): if framework and os.path.isdir(os.path.join(pkg_dir, framework + ".framework")): FrameworkDirectory(target_pkg, pkg_dir) diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index fbf1e4e1a0..b5262ade6a 100644 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -2684,7 +2684,6 @@ glsl_report_shader_errors(GLuint shader, Shader::ShaderType type, bool fatal) { GLCAT.warning(false) << "WARNING: " << fn << ":" << lineno << ": " << (line.c_str() + prefixlen) << "\n"; - } else if (sscanf(line.c_str(), "%d(%d) : %n", &fileno, &lineno, &prefixlen) == 2 && prefixlen > 0) {