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 1143 - FileHandleFlag causes build to fail on OS X 10.7 (Lion) with Qt 4.8
: FileHandleFlag causes build to fail on OS X 10.7 (Lion) with Qt 4.8
Status: UNCONFIRMED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: Macintosh Mac OS
: P5 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2012-02-20 15:51 EET by Thomas Perl
Modified: 2012-03-08 16:57 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Perl 2012-02-20 15:51:19 EET
When trying to build PySide (latest Git "master" branch checkout using
PySide-BuildScripts), I get the following warning during generation:

  enum 'QFile::FileHandleFlag' is specified in typesystem, but not declared

Then, when building, I get the following compile error:

  [...]/qfsfileengine_wrapper.cpp:1861: error:
       ‘SBK_QFLAGS_QFILE_FILEHANDLEFLAG__IDX’
       was not declared in this scope

When commenting out the typesystem entry for FileHandleFlag(s), the bindings
build correctly:

diff --git a/PySide/QtCore/typesystem_core_common.xml
b/PySide/QtCore/typesystem_core_common.xml
index 017547f..d44d351 100644
--- a/PySide/QtCore/typesystem_core_common.xml
+++ b/PySide/QtCore/typesystem_core_common.xml
@@ -2641,7 +2641,7 @@
     <enum-type name="FileError"/>
     <enum-type name="MemoryMapFlags"/>
     <enum-type name="Permission" flags="Permissions"/>
-    <enum-type name="FileHandleFlag" flags="FileHandleFlags" since="4.8"
revision="4800"/>
+    <!--<enum-type name="FileHandleFlag" flags="FileHandleFlags" since="4.8"
revision="4800"/>-->
     <extra-includes>
       <include file-name="QAbstractFileEngine" location="global"/>
     </extra-includes>

My local Qt installation is from "homebrew" using the source tarball from this
URL:

  http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.0.tar.gz

(just in case this is important - the typesystem XML says since="4.8")
Comment 1 Matti Airas 2012-03-08 16:57:23 EET
PySide is now a Qt-addon and uses Qt Project's JIRA tool for tracking bugs.
Please verify that the bug is still valid and re-submit it in the address
below:

https://bugreports.qt-project.org/

Sorry for the inconvenience!