[Kde-bindings] [Bug 245371] New: Fails to build libsmokeqtcore: generator produces invalid code

Chris Burel chrisburel at gmail.com
Wed Jul 21 21:31:19 UTC 2010


https://bugs.kde.org/show_bug.cgi?id=245371

           Summary: Fails to build libsmokeqtcore: generator produces
                    invalid code
           Product: bindings
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: OS X
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-bindings at kde.org
        ReportedBy: chrisburel at gmail.com


Version:           unspecified (using Devel) 
OS:                OS X

smokegen is producing bad code on OS X.  It is getting types called
"ExtensionOption" and "ExtensionReturn" when the correct types are
"QAbstractFileEngine::ExtensionOption" and
"QAbstractFileEngine::ExtensionReturn".  It is missing the namespace.

In file included from /Library/Frameworks/QtCore.framework/Headers/QtCore:21,
                 from
/Users/cburel/kdebindings-4.4.92/smoke/qtcore/qtcore_includes.h:1,
                 from
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qtextcodec.h:175: warning:
'QCoreXmlStreamWriter' is already a friend of 'QTextEncoder'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp: In function
'void* __smokeqtcore::cast(void*, short int, short int)':
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:12: error:
'ExtensionOption' was not declared in this scope
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:12: error:
expected primary-expression before 'void'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:12: error:
expected `)' before 'void'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:17: error:
'ExtensionReturn' was not declared in this scope
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:17: error:
expected primary-expression before 'void'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:17: error:
expected `)' before 'void'
make[2]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/smokedata.o] Error 1
make[1]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/all] Error 2
make: *** [all] Error 2


If I manually fix those 2 errors in smokedata.cpp, x_1.cpp then fails to build:
In file included from /Library/Frameworks/QtCore.framework/Headers/QtCore:21,
                 from
/Users/cburel/kdebindings-4.4.92/smoke/qtcore/qtcore_includes.h:1,
                 from
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:2:
/Library/Frameworks/QtCore.framework/Headers/qtextcodec.h:175: warning:
'QCoreXmlStreamWriter' is already a friend of 'QTextEncoder'
/Library/Frameworks/QtCore.framework/Headers/qobject.h: In copy constructor
'QAbstractEventDispatcher::QAbstractEventDispatcher(const
QAbstractEventDispatcher&)':
/Library/Frameworks/QtCore.framework/Headers/qobject.h:309: error:
'QObject::QObject(const QObject&)' is private
/Library/Frameworks/QtCore.framework/Headers/qabstracteventdispatcher.h:59:
error: within this context
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp: In constructor
'__smokeqtcore::x_QAbstractEventDispatcher::x_QAbstractEventDispatcher(const
QAbstractEventDispatcher&)':
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:577: note:
synthesized method 'QAbstractEventDispatcher::QAbstractEventDispatcher(const
QAbstractEventDispatcher&)' first required here
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h: In
constructor '__smokeqtcore::x_QAbstractFileEngine::x_QAbstractFileEngine(const
QAbstractFileEngine&)':
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h:200: error:
'QAbstractFileEngine::QAbstractFileEngine(const QAbstractFileEngine&)' is
private
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:709: error: within
this context
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h: In
constructor
'__smokeqtcore::x_QAbstractFileEngineIterator::x_QAbstractFileEngineIterator(const
QAbstractFileEngineIterator&)':
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h:237: error:
'QAbstractFileEngineIterator::QAbstractFileEngineIterator(const
QAbstractFileEngineIterator&)' is private
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:917: error: within
this context
make[2]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/x_1.o] Error 1
make[1]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/all] Error 2
make: *** [all] Error 2

Reproducible: Didn't try

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kde-bindings mailing list