Changeset 5375

Show
Ignore:
Timestamp:
08/02/06 12:43:26
Author:
robert
Message:

From Daniel Trstenjak, build fixes for Hpux 11.11, Irix 6.5, Solaris 8 and Aix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/Make/makedefs

    r5354 r5375  
    234234#### IRIX Specific definitions 
    235235ifeq ($(OS),IRIX) 
     236  INSTBINCMD        = cp 
     237  INSTDEVCMD        = cp 
    236238  CXX = CC 
    237239  ifeq ($(CXX),CC) 
     
    726728  GDAL_LIBS         = `gdal-config --libs` 
    727729 
     730  INSTXCMD           = install -c -m 755 
     731  INSTRCMD           = install -c -m 644 
     732 
     733  INSTBINCMD     = install -c -m 755 
     734  INSTDEVCMD     = install -c -m 644 
     735endif 
     736 
     737 
     738ifeq ($(OS),AIX) 
     739  CXX               = g++ 
     740  C++               = $(CXX) 
     741  DEPARG            = -M 
     742  INC               +=  
     743  DEF               += 
     744  OPTF              = -O 
     745  DBGF              = -g  
     746  SHARED            =  
     747  ARCH              = 32 
     748  LDFLAGS           += 
     749  LINKARGS          = -lpthread 
     750  LIB_EXT           = sl 
     751  PLUGIN_EXT        = sl 
     752  DYNAMICLIBRARYLIB = -ldld 
     753 
     754 
     755  OSG_LIBS          = -losgGA -losgDB -losgUtil -losg  
     756  GL_LIBS           = -lGLU -lGL  
     757  X_INC             =  
     758  X_LIBS            = -lXext -lXi -lX11  
     759  SOCKET_LIBS       =  
     760  OTHER_LIBS        = -lm -lOpenThreads 
     761  PNG_INCLUDE       = -I/usr/local/include/libpng -I/usr/local/include/ 
     762  PNG_LIBS          = -L/usr/local/lib -lpng  -lz 
     763  JPEG_INCLUDE          = -I/usr/local/include 
     764  JPEG_LIBS         = -L/usr/local/lib  -ljpeg 
     765  TIFF_INCLUDE      = -I/usr/local/include 
     766  TIFF_LIB          = -L/usr/local/lib -ltiff 
     767  GIF_INCLUDE           = -I/opt/libungif/include 
     768  GIF_LIBS          = -L/opt/libungif/lib -lungif 
     769 
     770  FREETYPE_INCLUDE  = `freetype-config --cflags` 
     771  FREETYPE_LIB      = `freetype-config --libs` 
     772 
     773  GDAL_INCLUDES     = `gdal-config --cflags` 
     774  GDAL_LIBS         = `gdal-config --libs` 
     775 
    728776endif 
    729777 
  • OpenSceneGraph/trunk/include/osg/GLU

    r5328 r5375  
    1515#define OSG_GLU 1 
    1616 
    17 #ifdef __APPLE__ 
     17#if defined(__APPLE__) || defined (_AIX) 
    1818    #include <OpenGL/glu.h> 
    1919    #define GLU_TESS_CALLBACK GLvoid (CALLBACK*)(...) 
  • OpenSceneGraph/trunk/include/osg/Math

    r5141 r5375  
    8585    #endif 
    8686 
     87    #ifndef tanf 
     88    inline float tanf(float value) { return static_cast<float>(tan(value)); } 
     89    #endif 
     90 
    8791#endif 
    8892 
     
    9498    #ifndef floorf 
    9599    inline float floorf(float value) { return static_cast<float>(floor(value)); } 
     100    #endif 
     101 
     102    #ifndef ceilf 
     103    inline float ceilf(float value) { return static_cast<float>(ceil(value)); } 
    96104    #endif 
    97105 
  • OpenSceneGraph/trunk/include/osg/NodeTrackerCallback

    r5328 r5375  
    2929        typedef std::vector< observer_ptr<Node> >   ObserveredNodePath; 
    3030 
    31         void setTrackNodePath(const osg::NodePath& nodePath) { _trackNodePath.clear();  _trackNodePath.insert(_trackNodePath.begin(), nodePath.begin(),nodePath.end()); } 
     31        void setTrackNodePath(const osg::NodePath& nodePath) 
     32        { 
     33           _trackNodePath.clear(); 
     34           _trackNodePath.reserve(nodePath.size()); 
     35           std::copy(nodePath.begin(), nodePath.end(), std::back_inserter(_trackNodePath)); 
     36        } 
     37 
    3238        void setTrackNodePath(const ObserveredNodePath& nodePath) { _trackNodePath = nodePath; } 
    3339        ObserveredNodePath& getTrackNodePath() { return _trackNodePath; } 
  • OpenSceneGraph/trunk/include/osg/Texture

    r5358 r5375  
    161161#endif 
    162162 
     163#ifndef GL_DEPTH_TEXTURE_MODE_ARB 
     164#define GL_DEPTH_TEXTURE_MODE_ARB         0x884B 
     165#endif 
     166 
    163167#ifndef GL_TEXTURE_COMPARE_MODE_ARB 
    164 #define GL_DEPTH_TEXTURE_MODE_ARB         0x884B 
    165168#define GL_TEXTURE_COMPARE_MODE_ARB       0x884C 
    166169#define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D 
  • OpenSceneGraph/trunk/include/osgDB/ReaderWriter

    r5328 r5375  
    2323 
    2424#include <deque> 
     25#include <iosfwd> 
    2526 
    2627namespace osgDB { 
  • OpenSceneGraph/trunk/include/osgGA/NodeTrackerManipulator

    r5328 r5375  
    3232        typedef std::vector< osg::observer_ptr<osg::Node> >   ObserveredNodePath; 
    3333 
    34         void setTrackNodePath(const osg::NodePath& nodePath) { _trackNodePath.clear();  _trackNodePath.insert(_trackNodePath.begin(), nodePath.begin(),nodePath.end()); } 
     34        void setTrackNodePath(const osg::NodePath& nodePath) 
     35        { 
     36           _trackNodePath.clear(); 
     37           _trackNodePath.reserve(nodePath.size()); 
     38           std::copy(nodePath.begin(), nodePath.end(), std::back_inserter(_trackNodePath)); 
     39        } 
     40 
    3541        void setTrackNodePath(const ObserveredNodePath& nodePath) { _trackNodePath = nodePath; } 
    3642        ObserveredNodePath& getTrackNodePath() { return _trackNodePath; } 
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/ControlRecords.cpp

    r5229 r5375  
    55// 
    66 
    7 #include <cassert
     7#include <assert.h
    88#include <osg/Geode> 
    99#include <osg/Geometry> 
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/GeometryRecords.cpp

    r5229 r5375  
    55// 
    66 
    7 #include <cassert
     7#include <assert.h
    88#include <osg/Geode> 
    99#include <osg/Billboard> 
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/PaletteRecords.cpp

    r5251 r5375  
    55// 
    66 
    7 #include <cassert
     7#include <assert.h
    88#include <osg/Texture2D> 
    99#include <osg/TexEnv> 
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Pools.cpp

    r5229 r5375  
    55// 
    66 
    7 #include <cassert
     7#include <assert.h
    88#include "Pools.h" 
    99#include "Document.h" 
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Record.cpp

    r5222 r5375  
    1515 
    1616Record::Record() 
     17{ 
     18} 
     19 
     20Record::~Record() 
    1721{ 
    1822} 
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/Record.h

    r5222 r5375  
    5050protected: 
    5151 
    52     virtual ~Record() {} 
     52    virtual ~Record(); 
    5353 
    5454    virtual void readRecord(RecordInputStream& in, Document& document); 
  • OpenSceneGraph/trunk/src/osgPlugins/bsp/BSPLoad.cpp

    r5228 r5375  
    55 
    66#include "BSPLoad.h" 
    7  
    8 #include <fstream> 
    9  
    10  
    117 
    128 
  • OpenSceneGraph/trunk/src/osgPlugins/bsp/BSPLoad.h

    r5204 r5375  
    1111#include <string> 
    1212 
     13#include <fstream> 
    1314 
    1415//Directory entry in header 
  • OpenSceneGraph/trunk/src/osgPlugins/lwo/ReaderWriterLWO.cpp

    r5187 r5375  
    3838 
    3939#include "Converter.h" 
     40#include "VertexMap.h" 
    4041 
    4142#include "old_lw.h" 
     
    105106                if (iss >> mapname >> unit) 
    106107                { 
    107                     conv_options.texturemap_bindings.insert(std::make_pair(mapname,  unit)); 
     108                    conv_options.texturemap_bindings.insert(lwosg::VertexMap_binding_map::value_type(mapname,  unit)); 
    108109                } 
    109110            } 
  • OpenSceneGraph/trunk/src/osgPlugins/net/sockstream.cpp

    r5344 r5375  
    6565#include <string> 
    6666 
    67 #if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || defined (__sgi) || defined (__hpux)  
     67#if (defined(__APPLE__)&&(__GNUC__<4)) || (defined(WIN32)&&!defined(__CYGWIN__)) || defined (__sgi) 
    6868typedef int socklen_t; 
    6969#endif 
     
    247247  case EINTR: 
    248248  case EWOULDBLOCK: 
    249 // On FreeBSD (and probably on Linux too)  
    250 // EAGAIN has the same value as EWOULDBLOCK 
    251 #if !defined(__CYGWIN__) && !defined( __sgi) && !defined(__linux__) && !defined(__sun) && !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__APPLE__)) // LN 
     249#if defined(EAGAIN) && (EAGAIN != EWOULDBLOCK) 
    252250  case EAGAIN: 
    253251#endif 
  • OpenThreads/trunk/Make/makedefs

    r5353 r5375  
    417417  DYNAMICLIBRARYLIB = -ldld 
    418418  OTHER_LIBS        = -lm  
     419  INSTXCMD           = install -c -m 755 
     420  INSTRCMD           = install -c -m 644 
     421endif 
     422 
     423#### AIX Specific Additions 
     424 
     425ifeq ($(OS),AIX) 
     426  CXX               = g++ -D_REENTRANT 
     427  DEPARG            = -M  
     428  INC               +=  
     429  DEF               += 
     430  OPTF              = -O 
     431  DBGF              = -g  
     432  SHARED            =  
     433  ARCH              = 32 
     434  LDFLAGS           =  
     435  LINKARGS          = -lpthread 
     436  LIB_EXT           = a 
     437  PLUGIN_EXT        = a 
     438  DYNAMICLIBRARYLIB = -ldld 
     439  OTHER_LIBS        = -lm  
    419440endif 
    420441