diff --git a/linux/pyqt b/linux/pyqt index 18d65d4..ead7988 100644 --- a/linux/pyqt +++ b/linux/pyqt @@ -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 diff --git a/linux/pyside b/linux/pyside deleted file mode 100644 index 8118b56..0000000 --- a/linux/pyside +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -export CMAKE=~/cmake/bin/cmake -export QMAKE=/usr/local/Trolltech/Qt-4.7.1/bin/qmake -export MAYA_LOCATION=/usr/autodesk/maya2013-x64 -export SHIBOKEN_DIR=~/shiboken-1.1.2/_output/lib/cmake/Shiboken-1.1.2 -export CMAKE_C_COMPILER=/opt/gcc412/bin/gcc412 -export CMAKE_CXX_COMPILER=/opt/gcc412/bin/g++412 -export LD_LIBRARY_PATH=$MAYA_LOCATION/lib - -pushd pyside-qt4.8+1.1.2 - -mkdir _output -mkdir _build -pushd _build - -$CMAKE -DQT_QMAKE_EXECUTABLE=$QMAKE -DBUILD_TESTS=False -DCMAKE_BUILD_TYPE=Release -DShiboken_DIR=$SHIBOKEN_DIR -DCMAKE_C_COMPILER=$CMAKE_C_COMPILER -DCMAKE_CXX_COMPILER=$CMAKE_CXX_COMPILER -DCMAKE_INSTALL_PREFIX=~/pyside-qt4.8+1.1.2/_output .. - -make -sudo make install - -pushd $MAYA_LOCATION/lib/python2.6/site-packages -mkdir PySide -pushd PySide -cp ~/pyside-qt4.8+1.1.2/_output/lib/libpyside-python2.6.so.1.1.2 . -ln -s libpyside-python2.6.so.1.1.2 libpyside-python2.6.so.1.1 -ln -s libpyside-python2.6.so.1.1 libpyside-python2.6.so -cp ~/pyside-qt4.8+1.1.2/_output/lib/python2.6/site-packages/PySide/* . -popd -popd - -sudo echo "/usr/autodesk/maya2013-x64/lib/python2.6/site-packages/PySide" > /etc/ld.so.conf.d/pyside.conf -sudo ldconfig - -popd -popd - diff --git a/linux/shiboken b/linux/shiboken deleted file mode 100644 index 789b11e..0000000 --- a/linux/shiboken +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -export CMAKE=~/cmake/bin/cmake -export QTDIR=/usr/local/Trolltech/Qt-4.7.1 -export QMAKE=$QTDIR/bin/qmake -export MAYA_LOCATION=/usr/autodesk/maya2013-x64 -export PYTHON_EXEC=$MAYA_LOCATION/bin/mayapy -export PYTHON_INC=$MAYA_LOCATION/include/python2.6 -export PYTHON_LIB=$MAYA_LOCATION/lib/libpython2.6.so -export CMAKE_C_COMPILER=/opt/gcc412/bin/gcc412 -export CMAKE_CXX_COMPILER=/opt/gcc412/bin/g++412 - -pushd shiboken-1.1.2 - -mkdir _output -mkdir _build -pushd _build - -$CMAKE -DQT_QMAKE_EXECUTABLE=$QMAKE -DBUILD_TESTS=False -DPYTHON_EXECUTABLE=$PYTHON_EXEC -DPYTHON_INCLUDE_DIR=$PYTHON_INC -DPYTHON_LIBRARY=$PYTHON_LIB -DCMAKE_BUILD_TYPE=Release -DENABLE_ICECC=0 -DCMAKE_INSTALL_PREFIX=~/shiboken-1.1.2/_output -DCMAKE_C_COMPILER=$CMAKE_C_COMPILER -DCMAKE_CXX_COMPILER=$CMAKE_CXX_COMPILER .. - -make -sudo make install/fast - -pushd $MAYA_LOCATION/lib/python2.6/site-packages -cp ~/shiboken-1.1.2/_output/lib/libshiboken-python2.6.so.1.1.2 . -ln -s libshiboken-python2.6.so.1.1.2 libshiboken-python2.6.so.1.1 -ln -s libshiboken-python2.6.so.1.1 libshiboken-python2.6.so -cp ~/shiboken-1.1.2/_output/lib/python2.6/site-packages/shiboken.so . -popd - -sudo echo "/usr/autodesk/maya2013-x64/lib/python2.6/site-packages" > /etc/ld.so.conf.d/shiboken.conf -sudo ldconfig - -popd -popd - diff --git a/linux/sip b/linux/sip index e3d769a..4b483b2 100644 --- a/linux/sip +++ b/linux/sip @@ -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 diff --git a/osx/pyqt b/osx/pyqt new file mode 100644 index 0000000..d932134 --- /dev/null +++ b/osx/pyqt @@ -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 diff --git a/osx/pyqt-1 b/osx/pyqt-1 deleted file mode 100644 index d995f19..0000000 --- a/osx/pyqt-1 +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -export QTDIR=~/qt-4.7.1 -export PATH=~/qt-4.7.1/bin:$PATH -export QMAKESPEC=macx-g++ -export DYLD_LIBRARY_PATH=~/qt-4.7.1/lib - -pushd PyQt-mac-gpl-4.9.4 -/Applications/Autodesk/maya2013/Maya.app/Contents/bin/mayapy ./configure.py LIBDIR_QT=~/qt-4.7.1/lib INCDIR_QT=~/qt-4.7.1/include MOC=~/qt-4.7.1/bin/moc -w --no-designer-plugin - -# See instructions at http://images.autodesk.com/adsk/files/pyqtmaya2013.pdf -# grep –r warnold ./* -# then go and execute pyqt-2 - -popd - diff --git a/osx/pyqt-2 b/osx/pyqt-2 deleted file mode 100644 index f65f536..0000000 --- a/osx/pyqt-2 +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -export QTDIR=~/qt-4.7.1 -export PATH=~/qt-4.7.1/bin:$PATH -export QMAKESPEC=macx-g++ -export DYLD_LIBRARY_PATH=~/qt-4.7.1/lib - -pushd PyQt-mac-gpl-4.9.4 - -make -j 8 -sudo make install - -for mod in phonon QtCore QtDeclarative QtDesigner QtDesignerComponents QtGui QtHelp QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmPatterns; do sudo find /Applications/Autodesk/maya2013/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PyQt4 -name "*so" -exec install_name_tool -change ${mod}.framework/Versions/4/{mod} @executable_path/${mod} {} \;; done; - -popd - diff --git a/osx/pyside b/osx/pyside deleted file mode 100644 index cc63393..0000000 --- a/osx/pyside +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -export CMAKE=~/cmake/CMake-2.8.9.app/Contents/bin/cmake -export QTDIR=~/qt-4.7.1 -export QMAKE=$QTDIR/bin/qmake -export SHIBOKEN_DIR=~/shiboken-1.1.2/_output - -pushd pyside-qt4.8+1.1.2 - -mkdir _output -mkdir _build -pushd _build - -$CMAKE -DQT_QMAKE_EXECUTABLE=$QMAKE -DBUILD_TESTS=False -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.6.sdk -DShiboken_DIR=$SHIBOKEN_DIR -DCMAKE_INSTALL_PREFIX=~/pyside-qt4.8+1.1.2/_output -DALTERNATE_QT_INCLUDE_DIR=$QTDIR/include .. - -make -sudo make install - -popd -popd - diff --git a/osx/pyside-finalize b/osx/pyside-finalize deleted file mode 100644 index d5889bb..0000000 --- a/osx/pyside-finalize +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -export MYHOME=~ -export DOCS=$MYHOME -export MAYA_LOCATION=/Applications/Autodesk/maya2013 -export PYTHON_SITE=$MAYA_LOCATION/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages - -# Config shiboken / PySide -export SHIBOKEN=$DOCS/shiboken-1.1.2/_output/lib -export PYSIDE=$DOCS/pyside-qt4.8+1.1.2/_output/lib - -cd $PYTHON_SITE -cp $SHIBOKEN/libshiboken-python2.6.1.1.2.dylib . -ln -s libshiboken-python2.6.1.1.2.dylib libshiboken-python2.6.1.1.dylib -ln -s libshiboken-python2.6.1.1.dylib libshiboken-python2.6.dylib -cp $SHIBOKEN/python2.6/site-packages/shiboken.so . - -mkdir PySide -cd PySide - -cp $SHIBOKEN/libshiboken-python2.6.1.1.2.dylib . -ln -s libshiboken-python2.6.1.1.2.dylib libshiboken-python2.6.1.1.dylib -ln -s libshiboken-python2.6.1.1.dylib libshiboken-python2.6.dylib - -cp $PYSIDE/libpyside-python2.6.1.1.2.dylib . -ln -s libpyside-python2.6.1.1.2.dylib libpyside-python2.6.1.1.dylib -ln -s libpyside-python2.6.1.1.dylib libpyside-python2.6.dylib - -cp $PYSIDE/python2.6/site-packages/PySide/* . - -# The following 4 lines are one single line each to execute properly -for mod in QtCore QtDeclarative QtDesigner QtDesignerComponents QtGui QtHelp QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmlPatterns phonon; do find /Applications/Autodesk/maya2013/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PySide -name "*.so" -exec install_name_tool -change ${mod}.framework/Versions/4/${mod} @executable_path/${mod} {} \;;done; - -for mod in QtCore QtDeclarative QtDesigner QtDesignerComponents QtGui QtHelp QtMultimedia QtNetwork QtOpenGL QtScript QtScriptTools QtSql QtSvg QtWebKit QtXml QtXmlPatterns phonon; do find /Applications/Autodesk/maya2013/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PySide -name "*.dylib" -exec install_name_tool -change ${mod}.framework/Versions/4/${mod} @executable_path/${mod} {} \;;done; - -for mod in libpyside-python2.6.1.1.dylib libshiboken-python2.6.1.1.dylib ; do find /Applications/Autodesk/maya2013/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PySide -name "*.so" -exec install_name_tool -change ${mod} @executable_path/../Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PySide/${mod} {} \;;done; - -for mod in libpyside-python2.6.1.1.dylib libshiboken-python2.6.1.1.dylib ; do find /Applications/Autodesk/maya2013/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PySide -name "*.dylib" -exec install_name_tool -change ${mod} @executable_path/../Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/PySide/${mod} {} \;;done; diff --git a/osx/shiboken b/osx/shiboken deleted file mode 100644 index 763840b..0000000 --- a/osx/shiboken +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -QTDIR=~/qt-4.7.1 - -export CMAKE=~/cmake/CMake-2.8.9.app/Contents/bin/cmake -export QMAKE=~/qt-4.7.1/bin/qmake -export MAYA_LOCATION=/Applications/Autodesk/maya2013 -export PYTHON_EXEC=$MAYA_LOCATION/Maya.app/Contents/bin/mayapy -export PYTHON_SITE=$MAYA_LOCATION/Maya.app/Contents/Frameworks/Python.framework -export PYTHON_INC=$PYTHON_SITE/Headers -export PYTHON_LIB=/usr/lib/libpython2.6.dylib - -pushd shiboken-1.1.2 - -mkdir _output -mkdir _build -pushd _build - -$CMAKE -DQT_QMAKE_EXECUTABLE=$QMAKE -DBUILD_TESTS=False -DPYTHON_EXECUTABLE=$PYTHON_EXEC -DPYTHON_INCLUDE_DIR=$PYTHON_INC -DPYTHON_LIBRARY=$PYTHON_LIB -DCMAKE_BUILD_TYPE=Release -DENABLE_ICECC=0 -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.6.sdk -DCMAKE_INSTALL_PREFIX=~/shiboken-1.1.2/_output - -make -sudo make install/fast - -popd -popd - diff --git a/osx/sip b/osx/sip index 0bb1a47..b2e1e24 100644 --- a/osx/sip +++ b/osx/sip @@ -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