diff --git a/direct/src/plugin/handleStreamBuf.cxx b/direct/src/plugin/handleStreamBuf.cxx index 7b50e0074f..e1d1ba8a47 100644 --- a/direct/src/plugin/handleStreamBuf.cxx +++ b/direct/src/plugin/handleStreamBuf.cxx @@ -22,6 +22,7 @@ #include #include #include +#include #endif // _WIN32 #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) diff --git a/direct/src/plugin/mkdir_complete.cxx b/direct/src/plugin/mkdir_complete.cxx index c8b051a7fc..f2fb93e7b0 100755 --- a/direct/src/plugin/mkdir_complete.cxx +++ b/direct/src/plugin/mkdir_complete.cxx @@ -24,10 +24,9 @@ #include // for mkdir() #include #include // strerror() +#include #endif - - //////////////////////////////////////////////////////////////////// // Function: get_dirname // Description: Returns the directory component of the indicated diff --git a/direct/src/plugin/p3dAuthSession.cxx b/direct/src/plugin/p3dAuthSession.cxx index cc457260fb..6130119223 100644 --- a/direct/src/plugin/p3dAuthSession.cxx +++ b/direct/src/plugin/p3dAuthSession.cxx @@ -28,6 +28,7 @@ #include #include #include +#include #endif //////////////////////////////////////////////////////////////////// diff --git a/direct/src/plugin/p3dHost.cxx b/direct/src/plugin/p3dHost.cxx index 924d294f4b..68e74b7b98 100644 --- a/direct/src/plugin/p3dHost.cxx +++ b/direct/src/plugin/p3dHost.cxx @@ -22,6 +22,10 @@ #include +#ifndef _WIN32 +#include +#endif + //////////////////////////////////////////////////////////////////// // Function: P3DHost::Constructor // Access: Private diff --git a/makepanda/installpanda.py b/makepanda/installpanda.py index 2f3deadd5d..f398a95cfa 100644 --- a/makepanda/installpanda.py +++ b/makepanda/installpanda.py @@ -204,15 +204,15 @@ def InstallRuntime(destdir="", prefix="/usr", outputdir="built"): if sys.platform.startswith("freebsd"): oscmd("mkdir -m 0755 -p "+destdir+libdir+"/browser_plugins/symlinks/gecko19") oscmd("mkdir -m 0755 -p "+destdir+libdir+"/libxul/plugins") - oscmd("ln -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/browser_plugins/symlinks/gecko19/nppanda3d.so") - oscmd("ln -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/libxul/plugins/nppanda3d.so") + oscmd("ln -f -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/browser_plugins/symlinks/gecko19/nppanda3d.so") + oscmd("ln -f -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/libxul/plugins/nppanda3d.so") else: oscmd("mkdir -m 0755 -p "+destdir+libdir+"/mozilla/plugins") oscmd("mkdir -m 0755 -p "+destdir+libdir+"/mozilla-firefox/plugins") oscmd("mkdir -m 0755 -p "+destdir+libdir+"/xulrunner-addons/plugins") - oscmd("ln -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/mozilla/plugins/nppanda3d.so") - oscmd("ln -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/mozilla-firefox/plugins/nppanda3d.so") - oscmd("ln -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/xulrunner-addons/plugins/nppanda3d.so") + oscmd("ln -f -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/mozilla/plugins/nppanda3d.so") + oscmd("ln -f -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/mozilla-firefox/plugins/nppanda3d.so") + oscmd("ln -f -s "+libdir+"/nppanda3d.so "+destdir+libdir+"/xulrunner-addons/plugins/nppanda3d.so") WriteMimeFile(destdir+prefix+"/share/mime-info/panda3d-runtime.mime", MIME_INFO_PLUGIN) WriteKeysFile(destdir+prefix+"/share/mime-info/panda3d-runtime.keys", MIME_INFO_PLUGIN) WriteMimeXMLFile(destdir+prefix+"/share/mime/packages/panda3d-runtime.xml", MIME_INFO_PLUGIN) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 5f15299514..e5376e40ef 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -715,12 +715,12 @@ if (COMPILER=="GCC"): # We use a statically linked libboost_python on OSX rocket_libs += ("boost_python",) SmartPkgEnable("ROCKET", "", rocket_libs, "Rocket/Core.h") - SmartPkgEnable("GTK2", "gtk+-2.0") SmartPkgEnable("JPEG", "", ("jpeg"), "jpeglib.h") SmartPkgEnable("OPENSSL", "openssl", ("ssl", "crypto"), ("openssl/ssl.h", "openssl/crypto.h")) SmartPkgEnable("PNG", "libpng", ("png"), "png.h", tool = "libpng-config") SmartPkgEnable("ZLIB", "zlib", ("z"), "zlib.h") + SmartPkgEnable("GTK2", "gtk+-2.0") if (RTDIST and GetHost() == "darwin" and "PYTHONVERSION" in SDK): # Don't use the framework for the OSX rtdist build. I'm afraid it gives problems somewhere. @@ -4721,7 +4721,7 @@ if (RTDIST or RUNTIME): # if (RUNTIME and PkgSkip("NPAPI")==0): - OPTS=['DIR:direct/src/plugin_npapi', 'RUNTIME'] + OPTS=['DIR:direct/src/plugin_npapi', 'RUNTIME', 'GTK2'] if GetTarget() == 'windows': nppanda3d_rc = {"name" : "Panda3D Game Engine Plug-in", "version" : VERSION,