Fixes for Mac OS X
This commit is contained in:
parent
693a889ece
commit
ec3e1dc611
@ -21,6 +21,8 @@ shift; shift; shift; shift; shift; shift; shift; shift;
|
|||||||
OTHER_LIBS=$1
|
OTHER_LIBS=$1
|
||||||
TIFF_LIB=$2
|
TIFF_LIB=$2
|
||||||
|
|
||||||
|
[ "`uname`" = "Darwin" ] && MAKE=make || MAKE=gmake
|
||||||
|
|
||||||
|
|
||||||
copy_demo_source()
|
copy_demo_source()
|
||||||
{
|
{
|
||||||
@ -32,7 +34,7 @@ copy_demo_source()
|
|||||||
cd $TOPDIR/src/Demos/$d
|
cd $TOPDIR/src/Demos/$d
|
||||||
[ -d $INST_DEMO_SRC/$d ] || mkdir -m 0755 -p $INST_DEMO_SRC/$d
|
[ -d $INST_DEMO_SRC/$d ] || mkdir -m 0755 -p $INST_DEMO_SRC/$d
|
||||||
echo " installing $d"
|
echo " installing $d"
|
||||||
for f in `gmake __instfiles | grep -v gmake`
|
for f in `$MAKE __instfiles | grep -v $MAKE`
|
||||||
do
|
do
|
||||||
src=`echo $f | cut -f1 -d"="`
|
src=`echo $f | cut -f1 -d"="`
|
||||||
dst=`echo $f | cut -f2 -d"="`
|
dst=`echo $f | cut -f2 -d"="`
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
default : $(DIRS)
|
default : $(DIRS)
|
||||||
@for f in $(DIRS); do cd $$f; $(MAKE) $@ || exit 1; cd ..; done
|
@for f in $(DIRS); do echo "Entering directory $$f"; cd $$f; $(MAKE) $@ || exit 1; cd ..; done
|
||||||
|
|
||||||
$(RECURSIVE_TARGETS) : $(DIRS)
|
$(RECURSIVE_TARGETS) : $(DIRS)
|
||||||
@for f in $(DIRS); do cd $$f; $(MAKE) $@ || exit 1; cd ..; done
|
@for f in $(DIRS); do echo "Entering directory $$f"; cd $$f; $(MAKE) $@ || exit 1; cd ..; done
|
||||||
|
@ -179,7 +179,7 @@ endif
|
|||||||
depend : $(MAKEDEPEND)
|
depend : $(MAKEDEPEND)
|
||||||
|
|
||||||
__link :
|
__link :
|
||||||
sh $(TOPDIR)/Make/dolink.sh $(TOPDIR) $(LNSRC) $(LNDEST) "$(LINK)"
|
@sh $(TOPDIR)/Make/dolink.sh $(TOPDIR) $(LNSRC) $(LNDEST) "$(LINK)"
|
||||||
|
|
||||||
__instfiles :
|
__instfiles :
|
||||||
@echo $(INSTFILES)
|
@echo $(INSTFILES)
|
||||||
|
@ -12,8 +12,8 @@ INSTFILES = \
|
|||||||
|
|
||||||
EXEC = osgcameragroup
|
EXEC = osgcameragroup
|
||||||
|
|
||||||
INC += $(PRODUCER_INCLUDE_DIR)
|
INC += $(PRODUCER_INCLUDE_DIR) -I/usr/X11R6/include
|
||||||
LDFLAGS += $(PRODUCER_LIB_DIR)
|
LDFLAGS += $(PRODUCER_LIB_DIR) -L/usr/X11R6/lib
|
||||||
|
|
||||||
include $(TOPDIR)/Make/makerules
|
include $(TOPDIR)/Make/makerules
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ class Vec2
|
|||||||
/// Length of the vector = sqrt( vec . vec )
|
/// Length of the vector = sqrt( vec . vec )
|
||||||
inline float length() const
|
inline float length() const
|
||||||
{
|
{
|
||||||
return sqrtf( _v[0]*_v[0] + _v[1]*_v[1] );
|
return sqrt( _v[0]*_v[0] + _v[1]*_v[1] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Length squared of the vector = vec . vec
|
/// Length squared of the vector = vec . vec
|
||||||
|
@ -55,7 +55,7 @@ class OSGDB_EXPORT Field
|
|||||||
REAL,
|
REAL,
|
||||||
INTEGER,
|
INTEGER,
|
||||||
BLANK,
|
BLANK,
|
||||||
UNINTIALISED
|
UNINITIALISED
|
||||||
};
|
};
|
||||||
|
|
||||||
FieldType getFieldType() const;
|
FieldType getFieldType() const;
|
||||||
|
@ -45,7 +45,7 @@ class MyBillboardTransform : public osg::PositionAttitudeTransform
|
|||||||
osg::Vec3 side = _axis^_normal;
|
osg::Vec3 side = _axis^_normal;
|
||||||
side.normalize();
|
side.normalize();
|
||||||
|
|
||||||
float angle = atan2f(eyevector*_normal,eyevector*side);
|
float angle = atan2(eyevector*_normal,eyevector*side);
|
||||||
billboardRotation.makeRotate(osg::PI_2-angle,_axis);
|
billboardRotation.makeRotate(osg::PI_2-angle,_axis);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ void Field::_init()
|
|||||||
_fieldCacheSize = 0;
|
_fieldCacheSize = 0;
|
||||||
_fieldCache = NULL;
|
_fieldCache = NULL;
|
||||||
|
|
||||||
_fieldType = UNINTIALISED;
|
_fieldType = UNINITIALISED;
|
||||||
|
|
||||||
_withinQuotes = false;
|
_withinQuotes = false;
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ void Field::_copy(const Field& ic)
|
|||||||
void Field::setWithinQuotes(bool withinQuotes)
|
void Field::setWithinQuotes(bool withinQuotes)
|
||||||
{
|
{
|
||||||
_withinQuotes=withinQuotes;
|
_withinQuotes=withinQuotes;
|
||||||
_fieldType = UNINTIALISED;
|
_fieldType = UNINITIALISED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ char* Field::takeStr()
|
|||||||
_fieldCache = NULL;
|
_fieldCache = NULL;
|
||||||
_fieldCacheSize = 0;
|
_fieldCacheSize = 0;
|
||||||
|
|
||||||
_fieldType = UNINTIALISED;
|
_fieldType = UNINITIALISED;
|
||||||
_withinQuotes = false;
|
_withinQuotes = false;
|
||||||
|
|
||||||
return field;
|
return field;
|
||||||
@ -175,13 +175,13 @@ void Field::addChar(char c)
|
|||||||
}
|
}
|
||||||
_fieldCache[_fieldCacheSize++] = c;
|
_fieldCache[_fieldCacheSize++] = c;
|
||||||
_fieldCache[_fieldCacheSize] = 0;
|
_fieldCache[_fieldCacheSize] = 0;
|
||||||
_fieldType = UNINTIALISED;
|
_fieldType = UNINITIALISED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Field::FieldType Field::getFieldType() const
|
Field::FieldType Field::getFieldType() const
|
||||||
{
|
{
|
||||||
if (_fieldType==UNINTIALISED && _fieldCache)
|
if (_fieldType==UNINITIALISED && _fieldCache)
|
||||||
{
|
{
|
||||||
_fieldType = calculateFieldType(_fieldCache,_withinQuotes);
|
_fieldType = calculateFieldType(_fieldCache,_withinQuotes);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
TOPDIR = ../../..
|
TOPDIR = ../../..
|
||||||
include $(TOPDIR)/Make/makedefs
|
include $(TOPDIR)/Make/makedefs
|
||||||
|
|
||||||
CXXFILES = ReaderWriterQT.cpp
|
CXXFILES = ReaderWriterQT.cpp\
|
||||||
CFILES = QTtexture.c
|
QTtexture.cpp
|
||||||
|
|
||||||
LIBS += $(QUICKTIME) $(OSG_LIBS) $(OTHER_LIBS)
|
LIBS += $(QUICKTIME) $(OSG_LIBS) $(OTHER_LIBS)
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ CXXFILES =\
|
|||||||
|
|
||||||
LIBS += -lProducer $(GL_LIBS) -losgGA -losgUtil -losgDB -losg $(OTHER_LIBS)
|
LIBS += -lProducer $(GL_LIBS) -losgGA -losgUtil -losgDB -losg $(OTHER_LIBS)
|
||||||
DEF += -DOSGPRODUCER_LIBRARY
|
DEF += -DOSGPRODUCER_LIBRARY
|
||||||
|
INC += -I/usr/X11R6/include
|
||||||
TARGET_BASENAME = osgProducer
|
TARGET_BASENAME = osgProducer
|
||||||
LIB = $(LIB_PREFIX)$(TARGET_BASENAME).$(LIB_EXT)
|
LIB = $(LIB_PREFIX)$(TARGET_BASENAME).$(LIB_EXT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user