Skip to content

Commit

Permalink
osx and linux scripts for maya 2014
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillef committed May 14, 2015
1 parent bab77c7 commit 48cff33
Show file tree
Hide file tree
Showing 11 changed files with 159 additions and 209 deletions.
51 changes: 44 additions & 7 deletions linux/pyqt
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
#!/bin/bash

QTDIR=/usr/local/Trolltech/Qt-4.7.1/

pushd PyQt-x11-gpl-4.9.4
/usr/autodesk/maya2013-x64/bin/mayapy configure.py -q /usr/local/Trolltech/Qt-4.7.1/bin/qmake
make -j4
#!/usr/bin/env bash

MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export MAYA_LOCATION=/usr/autodesk/maya2014-x64
export QTDIR=$MAYA_LOCATION
export QMAKESPEC=$QTDIR/mkspecs/linux-g++-64
export INCDIR_QT=$MAYA_LOCATION/include/Qt
export LIBDIR_QT=$QTDIR/lib

if [ ! -f $QMAKESPEC/qmake.conf ];
then
echo "You need to install qt-4.8.2-mkspecs.tar.gz in $QTDIR/mkspecs !"
exit
fi
if [ ! -f $INCDIR_QT/QtCore/qdir.h ];
then
echo "You need to uncompress $MAYA_LOCATION/include/qt-4.8.2-include.tar.gz in $INCDIR_QT !"
exit
fi
# qt.conf - /Applications/Autodesk/maya2014/Maya.app/Contents/Resources
if [ ! -f $QTDIR/bin/qt.conf ];
then
echo "You need to copy $QTDIR/Resources/qt.conf in $QTDIR/bin !"
exit
fi

test=`grep "Headers=../include/Qt" $QTDIR/bin/qt.conf`
if [ -z "$test" ];
then
echo "You need to edit $QTDIR/bin/qt.conf to use 'Headers=../include/Qt'"
exit
fi

export SIPDIR=$MAYAQTBUILD/sip-4.14.5
export PYQTDIR=$MAYAQTBUILD/PyQt-x11-gpl-4.10

pushd $PYQTDIR
export PATH=$QTDIR/bin:$PATH
$QTDIR/bin/mayapy ./configure.py LIBDIR_QT=$LIBDIR_QT INCDIR_QT=$INCDIR_QT MOC=$QTDIR/bin/moc -w --no-designer-plugin -g
make -j 8
sudo make install
popd

popd
37 changes: 0 additions & 37 deletions linux/pyside

This file was deleted.

36 changes: 0 additions & 36 deletions linux/shiboken

This file was deleted.

19 changes: 13 additions & 6 deletions linux/sip
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/bin/bash

QTDIR=/usr/local/Trolltech/Qt-4.7.1/

pushd sip-4.13.3
/usr/autodesk/maya2013-x64/bin/mayapy ./configure.py
#!/usr/bin/env bash

MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export SIPDIR=$MAYAQTBUILD/sip-4.14.5
export MAYA_LOCATION=/usr/autodesk/maya2014-x64

pushd $SIPDIR
$MAYA_LOCATION/bin/mayapy ./configure.py
make
sudo make install
popd

popd
90 changes: 90 additions & 0 deletions osx/pyqt
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/usr/bin/env bash

MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export MAYA_LOCATION=/Applications/Autodesk/maya2014
export QTDIR=$MAYA_LOCATION/Maya.app/Contents
export QMAKESPEC=$QTDIR/mkspecs/macx-g++
export INCDIR_QT=$MAYA_LOCATION/devkit/include/Qt
export LIBDIR_QT=$QTDIR/MacOS

if [ ! -f $QMAKESPEC/qmake.conf ];
then
echo "You need to install qt-4.8.2-64-mkspecs.tar.gz in $QTDIR/mkspecs !"
exit
fi
if [ ! -f $INCDIR_QT/QtCore/qdir.h ];
then
echo "You need to uncompress $MAYA_LOCATION/devkit/include/qt-4.8.2-include.tar.gz in $INCDIR_QT !"
exit
fi
# qt.conf - /Applications/Autodesk/maya2014/Maya.app/Contents/Resources
if [ ! -f $QTDIR/bin/qt.conf ];
then
echo "You need to copy $QTDIR/Resources/qt.conf in $QTDIR/bin !"
exit
fi

test=`grep "Data=../.." $QTDIR/bin/qt.conf`
if [ ! -z "$test" ];
then
echo "You need to edit $QTDIR/bin/qt.conf to use 'Data=..'"
exit
fi
test=`grep "Headers=../../include" $QTDIR/bin/qt.conf`
if [ ! -z "$test" ];
then
echo "You need to edit $QTDIR/bin/qt.conf to use 'Headers=../../../devkit/include/Qt'"
exit
fi
test=`grep "Libraries=../lib" $QTDIR/bin/qt.conf`
if [ ! -z "$test" ];
then
echo "You need to edit $QTDIR/bin/qt.conf to use 'Libraries =../MacOS'"
exit
fi
test=`grep "Plugins = qt-plugins" $QTDIR/bin/qt.conf`
if [ ! -z "$test" ];
then
echo "You need to edit $QTDIR/bin/qt.conf to use 'Plugins=../qt-plugins'"
exit
fi
test=`grep "Translations = qt-translations" $QTDIR/bin/qt.conf`
if [ ! -z "$test" ];
then
echo "You need to edit $QTDIR/bin/qt.conf to use 'Translations=../qt-translations'"
exit
fi

for mod in Core Declarative Designer DesignerComponents Gui Help Multimedia Network OpenGL Script ScriptTools Sql Svg WebKit Xml XmlPatterns
do
if [ ! -f $QTDIR/MacOS/libQt${mod}.dylib ];
then
echo "You need to copy a fake Qt$mod dylib - cp $QTDIR/MacOS/Qt$mod $QTDIR/MacOS/libQt${mod}.dylib !"
#cp $QTDIR/MacOS/Qt$mod $QTDIR/MacOS/libQt${mod}.dylib
exit
fi
done
if [ ! -f $QTDIR/MacOS/libphonon.dylib ];
then
echo "You need to copy a fake phonon dylib - cp $QTDIR/MacOS/phonon $QTDIR/MacOS/libphonon.dylib !"
#cp $QTDIR/MacOS/phonon $QTDIR/MacOS/libphonon.dylib
exit
fi

export DYLD_LIBRARY_PATH=$QTDIR/MacOS
export DYLD_FRAMEWORK_PATH=$QTDIR/Frameworks

export SIPDIR=$MAYAQTBUILD/sip-4.14.5
export PYQTDIR=$MAYAQTBUILD/PyQt-mac-gpl-4.10

pushd $PYQTDIR
export PATH=$QTDIR/bin:$PATH
$QTDIR/bin/mayapy ./configure.py LIBDIR_QT=$LIBDIR_QT INCDIR_QT=$INCDIR_QT MOC=$QTDIR/bin/moc -w --no-designer-plugin -g
make -j 8
sudo make install
popd

popd
16 changes: 0 additions & 16 deletions osx/pyqt-1

This file was deleted.

16 changes: 0 additions & 16 deletions osx/pyqt-2

This file was deleted.

21 changes: 0 additions & 21 deletions osx/pyside

This file was deleted.

38 changes: 0 additions & 38 deletions osx/pyside-finalize

This file was deleted.

26 changes: 0 additions & 26 deletions osx/shiboken

This file was deleted.

18 changes: 12 additions & 6 deletions osx/sip
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#!/bin/bash

QTDIR=~/qt-4.7.1

pushd sip-4.13.3
/Applications/Autodesk/maya2013/Maya.app/Contents/bin/mayapy ./configure.py -arch=x86_64
#!/usr/bin/env bash

MAYAQTBUILD="`dirname \"$0\"`" # Relative
export MAYAQTBUILD="`( cd \"$MAYAQTBUILD\" && pwd )`" # Absolutized and normalized
pushd $MAYAQTBUILD

export SIPDIR=$MAYAQTBUILD/sip-4.14.5
export MAYA_LOCATION=/Applications/Autodesk/maya2014

pushd $SIPDIR
$MAYA_LOCATION/Maya.app/Contents/bin/mayapy ./configure.py --arch=x86_64
make
sudo make install
popd

popd

0 comments on commit 48cff33

Please sign in to comment.