Compiling Qt/Pyside Maya 2013 Osx

259 views
Skip to first unread message

flavius

unread,
Nov 22, 2013, 2:39:59 PM11/22/13
to python_in...@googlegroups.com
Hello Everyone,

I'm running up against an issue while trying to compile the Qt Libraries and PySide for OSX. 

I using this post a guide ... http://around-the-corner.typepad.com/adn/2012/10/building-qt-pyqt-pyside-for-maya-2013.html

I downloaded the modified qt library from autodesk (http://www.autodesk.com/lgplsource), and also managed to extract the MacOSX10.6.sdk from Xcode 4.1 pkg


I ran configure using these options ...

./configure -prefix /Users/**myHomeDir**/qt-4.7.1 -arch x86_64 -debug-and-release -no-rpath -silent -no-qt3support -sdk /**PATH**/**TO**/**SDK**/MacOSX10.6.sdk/


The problem I run into is when I run make I get this error:

compiling animation/qabstractanimation.cpp
error: unable to read PCH file .pch/debug-shared/QtCore_debug.gch: 'Is a directory'
make[2]: *** [.obj/debug-shared/qabstractanimation.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-corelib-make_default-ordered] Error 2


I also ran configure with the -no-pch option which did allow the qt library to compile, however when I went to compile shiboken there were no QtGui libraries in my qt-4.7.1 folder so shiboken wouldn't compile.


Anyone run into this before and have any ideas on how to remedy the problem?


My configuration:

System Version: OS X 10.8.5 (12F45)
Kernel Version: Darwin 12.5.0
Boot Volume: Macintosh HD
Boot Mode: Normal

Justin Israel

unread,
Nov 22, 2013, 6:09:06 PM11/22/13
to python_in...@googlegroups.com
I tried a while back to build PySide against Maya and found it really difficult, then gave up. Fortunately they ship PySide now with Maya 2014. I'm not sure, but it seemed like the instructions on that blog may have missed some things in the command line for building shiboken? I tried a little bit of the process and failed during the Shiboken build process.

Although I had no problem building Qt:

$ ./configure -opensource -silent -fast -arch x86_64 -debug-and-release -no-rpath -no-qt3support -sdk /Developer/SDKs/MacOSX10.6.sdk -nomake docs -no-libmng -no-accessibility  -nomake examples -nomake demos -nomake translations -prefix /Users/justin/Downloads/Qt-4.7.1-Maya/qt-adsk-4.7.1/dist
$ make -j9
$ make install

I tried this with shiboken, to get it to configure without error
$ cd _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=../_output -DLIB_INSTALL_DIR=../_output

But it failed a whole bunch in the make.



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/59d307a7-70c6-4f0e-be6e-b9c200e9c62d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

fabian...@gree.co.jp

unread,
Nov 25, 2013, 2:20:37 PM11/25/13
to python_in...@googlegroups.com
@Justin thanks for the reply. I was finally able to build the QT libraries, I just had to make sure I was using xcode 4.5.2 and the 10.6 SDK from xcode 4.3.

Like you I am still having issues compiling shiboken, cmake runs without issue, but make I get an error about finding QtCore Library at the very end of the process ...

[ 96%] Built target shiboken
[ 98%] Running generator for 'shiboken'...
dyld: Library not loaded: QtCore.framework/Versions/4/QtCore
Referenced from: /Users/homedir/Downloads/shiboken-1.1.2/_build/generator/shiboken
Reason: image not found
/bin/sh: line 1: 49602 Trace/BPT trap: 5 /Users/homedir/Downloads/shiboken-1.1.2/_build/generator/shiboken --project-file=/Users/homedir/Downloads/shiboken-1.1.2/_build/shibokenmodule/shibokenmodule.txt
make[2]: *** [shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 133
make[1]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2
make: *** [all] Error 2


So close, arghh!

Justin Israel

unread,
Nov 25, 2013, 2:32:04 PM11/25/13
to python_in...@googlegroups.com

Maybe you need to set
DYLD_LIBRARY_FALLBACK_PATH=/path/to/built/Qt/libs?

Although since its looking for Qt built as a framework you probably need to set the alternative one:

DYLD_FRAMEWORK_FALLBACK_PATH

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/dyld.1.html

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

flavius

unread,
Nov 25, 2013, 4:19:41 PM11/25/13
to python_in...@googlegroups.com
When I set either of those variables I get a shell error ...

dyld: warning, unknown environment variable: DYLD_FRAMEWORK_FALLBACK_PATH

did you mean set those when I call cmake e.g. adding flag -DDYLD_FRAMEWORK_FALLBACK_PATH ?

I'm wondering if there's just an issue with the Qt I compiled on 10.8.5?  I can't even launch the qtdemo after compiling because it complains of an error.

Justin Israel

unread,
Nov 25, 2013, 4:35:24 PM11/25/13
to python_in...@googlegroups.com
I think the -D flag is for passing flags into cmake. These would be just general flags for the linker so set in the env. Not sure what the issue would be then :-/


--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

Justin Israel

unread,
Nov 26, 2013, 10:26:22 PM11/26/13
to python_in...@googlegroups.com
Sorry, that error you were getting was because I had a typo in the name of the env variable:

DYLD_FALLBACK_FRAMEWORK_PATH

flavius

unread,
Dec 11, 2013, 7:29:08 PM12/11/13
to python_in...@googlegroups.com
So it turns out I'm having issues just compiling Qt.  Well let me rephrase, I can compile Qt (no errors), however if I try to launch designer after the fact I get this error ...

Designer cannot be opened because of a problem.

Check with the developer to make sure Designer works with this version of OS X. You may need to reinstall the application. Be sure to install any available updates for the application and OS X.


Clicking Report yields this info ...

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: QtDesignerComponents.framework/Versions/4/QtDesignerComponents
  Referenced from: /Users/USER/*/Designer.app/Contents/MacOS/Designer
  Reason: image not found

Any ideas on that?  Some google searching yielded someone copying all the frameworks to /System/Frameworks/ but it was for a slightly different problem


On Tuesday, November 26, 2013 7:26:22 PM UTC-8, Justin Israel wrote:
Sorry, that error you were getting was because I had a typo in the name of the env variable:

DYLD_FALLBACK_FRAMEWORK_PATH

On Tue, Nov 26, 2013 at 10:35 AM, Justin Israel <justin...@gmail.com> wrote:
I think the -D flag is for passing flags into cmake. These would be just general flags for the linker so set in the env. Not sure what the issue would be then :-/
On Tue, Nov 26, 2013 at 10:19 AM, flavius <fel...@gmail.com> wrote:
When I set either of those variables I get a shell error ...

dyld: warning, unknown environment variable: DYLD_FRAMEWORK_FALLBACK_PATH

did you mean set those when I call cmake e.g. adding flag -DDYLD_FRAMEWORK_FALLBACK_PATH ?

I'm wondering if there's just an issue with the Qt I compiled on 10.8.5?  I can't even launch the qtdemo after compiling because it complains of an error.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

flavius

unread,
Dec 11, 2013, 8:07:16 PM12/11/13
to python_in...@googlegroups.com
*Update*

So copying all the compiled Qt*.framework 's out of qt-4.7.1/lib into /System/Frameworks let QtDesigner load without error.  Not sure why I had to do that manually.

fabian...@gree.co.jp

unread,
Dec 12, 2013, 1:19:07 PM12/12/13
to python_in...@googlegroups.com
Successfully compiled Shiboken, but upon trying to compile PySide I get these errors ... (Tried compiling both Shiboken/PySide 1.1.2 and 1.2.1)


/Users/*/Downloads/pyside-qt4.8+1.1.2/_build/plugins/moc_customwidget.cxx:14:2: error: "This file was generated using the moc from 4.7.1. It"
#error "This file was generated using the moc from 4.7.1. It"
^
/Users/*/Downloads/pyside-qt4.8+1.1.2/_build/plugins/moc_customwidget.cxx:15:2: error: "cannot be used with the include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
^
/Users/*/Downloads/pyside-qt4.8+1.1.2/_build/plugins/moc_customwidget.cxx:16:2: error: "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
^
2 warnings and 3 errors generated.
make[2]: *** [plugins/CMakeFiles/uiplugin.dir/moc_customwidget.cxx.o] Error 1
make[1]: *** [plugins/CMakeFiles/uiplugin.dir/all] Error 2

Justin Israel

unread,
Dec 12, 2013, 2:06:31 PM12/12/13
to python_in...@googlegroups.com

Do you have some older version of Qt in your path that the compile is picking up? Check which version of moc/qmake is seen in your environment.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/32fb6e5c-7594-4595-ab1e-fe8aefd28b15%40googlegroups.com.

flavius

unread,
Dec 12, 2013, 7:19:58 PM12/12/13
to python_in...@googlegroups.com
Yea I'm pointing everything to my Qt install ...

>>which moc
/Users/*/qt-4.7.1/bin/moc

Justin Israel

unread,
Dec 12, 2013, 7:59:13 PM12/12/13
to python_in...@googlegroups.com
I think (and I may be wrong) you are using a pyside source that is already set up against qt-4.8, hence the name in the package archive. You might want to try this download instead:



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

flavius

unread,
Dec 16, 2013, 2:24:55 PM12/16/13
to python_in...@googlegroups.com
Yea I noticed that as well, but was following the Cyrille's how to guide from above.  I'm not sure of the differences between just the standard PySide-1.1.2.tar.bz and the PySide-qt4.8+1.2.1.tar.bz other than the name implying that it's specific to a Qt version.  I'll try the standard PySide-1.1.2

Reply all
Reply to author
Forward
0 new messages