PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 626 - Problem building PySide on OS X (qabstractfileengine_wrapper.cpp: No such file or directory)
: Problem building PySide on OS X (qabstractfileengine_wrapper.cpp: No such fil...
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-19 10:17 EET by Thomas Perl
Modified: 2011-01-21 15:44 EET (History)
8 users (show)

See Also:


Attachments
full build log (108.28 KB, text/plain)
2011-01-19 10:21 EET, Thomas Perl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Perl 2011-01-19 10:17:33 EET
This is just a mailing list post turned into a bug report, as I think that
there is some problem with the build system's compatibility with OS X:

http://lists.openbossa.org/pipermail/pyside/2011-January/001870.html


I'm trying to get PySide to build on Mac OS X (and add support for OS
X to my buildscripts ;). I'm now stuck at the following problem:

[  3%] [  3%] Building CXX object
PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstractfileengine_wrapper.cpp.o
Building CXX object
PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp.o
i686-apple-darwin10-g++-4.2.1:
/Users/thp/src/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qabstractfileengine_wrapper.cpp:
No such file or directory
[  3%] i686-apple-darwin10-g++-4.2.1: no input files
i686-apple-darwin10-g++-4.2.1:
/Users/thp/src/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp:
No such file or directory
i686-apple-darwin10-g++-4.2.1: no input files
make[2]: ***
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstractfileengine_wrapper.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: ***
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp.o]
Error 1
Building CXX object
PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstractfileenginehandler_wrapper.cpp.o
i686-apple-darwin10-g++-4.2.1:
/Users/thp/src/pyside/pyside/build/PySide/QtCore/PySide/QtCore/qabstractfileenginehandler_wrapper.cpp:
No such file or directory
i686-apple-darwin10-g++-4.2.1: no input files
make[2]: ***
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstractfileenginehandler_wrapper.cpp.o]
Error 1
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2

Before that error, I get 136 warnings like this (for different classes):

type 'QTimer' is specified in typesystem, but not defined. This could
potentially lead to compilation errors.

The file in question does not exist. This is what is inside the
directory mentioned in the error:

$ ls -al /Users/thp/src/pyside/pyside/build/PySide/QtCore/PySide/QtCore
total 416
drwxr-xr-x  10 thp  staff     340 Jan 17 09:29 .
drwxr-xr-x   3 thp  staff     102 Jan 17 09:29 ..
-rw-r--r--   1 thp  staff   18857 Jan 17 09:29 pyside_qtcore_python.h
-rw-r--r--   1 thp  staff   11515 Jan 17 09:29 qgenericargument_wrapper.cpp
-rw-r--r--   1 thp  staff    1029 Jan 17 09:29 qgenericargument_wrapper.h
-rw-r--r--   1 thp  staff   10155 Jan 17 09:29
qgenericreturnargument_wrapper.cpp
-rw-r--r--   1 thp  staff    1047 Jan 17 09:29 qgenericreturnargument_wrapper.h
-rw-r--r--   1 thp  staff  125134 Jan 17 09:29 qmetaobject_wrapper.cpp
-rw-r--r--   1 thp  staff    1014 Jan 17 09:29 qmetaobject_wrapper.h
-rw-r--r--   1 thp  staff   26827 Jan 17 09:29 qtcore_module_wrapper.cpp

I'm using the gcc tools from Xcode and the Qt framework from the Qt OS X SDK.
Comment 1 Thomas Perl 2011-01-19 10:21:06 EET
Created attachment 227 [details]
full build log

Here is the full log of building PySide with
http://gitorious.org/pyside/buildscripts.

The versions of each submodule:

$ git submodule
 6f64d041693f08a070582e94e09e551456333bf5 apiextractor (0.7.0-68-g6f64d04)
 cb7a4e781352b071ed783b1a3dd0afb283526440 generatorrunner (0.6.0-33-gcb7a4e7)
 814bc522ce510dd37818b87e23ffedd4b7b5c0b8 pyside (0.4.0-419-g814bc52)
 71c2737423e16f854e0c9736b1518ee49d2c9c39 pyside-tools (0.2.0-15-g71c2737)
 5fccb1dafa71929b5a7968d5a3a99f5b442bc2e2 shiboken (0.4.0-270-g5fccb1d)
Comment 2 renato filho 2011-01-19 10:34:29 EET
Hi check if you are using the correct args to cmake command.


http://developer.qt.nokia.com/wiki/Building_PySide_on_Mac_OS_X

Due some bug in mac cmake you need to specify the Qt path manually, try this
using -DALTERNATIVE_QT_INCLUDE_DIR=/Library/Frameworks/
Comment 3 Matti Airas 2011-01-19 10:55:03 EET
Thanks, I'm making this P2 (although I believe this is more of an documentation
issue because the OpenBossa team is building PySide regularly on OS X on our
build farm).
Comment 4 renato filho 2011-01-19 11:41:45 EET
we have this documented on MacOS X compiler wiki.
Comment 5 Matti Airas 2011-01-19 11:45:27 EET
OK - if Thomas can get the thing compiled with those instructions (Renato,
could you provide the URL), I'll resolve this as invalid...
Comment 6 Thomas Perl 2011-01-19 11:54:56 EET
(In reply to comment #5)
> OK - if Thomas can get the thing compiled with those instructions (Renato,
> could you provide the URL), I'll resolve this as invalid...

Yes, I can build it with that addition to the cmake arguments. Thanks a lot for
the help. I'll put my results into the buildscripts repository as soon as I
clean up the scripts a bit.
Comment 7 renato filho 2011-01-21 15:44:54 EET
release beta4