kjsembed uses both QUiLoader and QFormBuilder

David Faure faure at kde.org
Wed Dec 6 21:35:54 GMT 2006


... which doesn't seem to be a problem on linux, but on Mac OS X, linking to both libQtUiTools.a and libQtDesigner leads to:

ld: multiple definitions of symbol _ZN26QAbstractFormBuilderGadget11qt_metacastEPKc.eh
/Users/dfaure/qt/qt-mac-opensource-src-4.2.1/lib/QtDesigner.framework/QtDesigner(single module) definition of _ZN26QAbstractFormBuilderGadget11qt_metacastEPKc.eh
/Users/dfaure/qt/qt-mac-opensource-src-4.2.1/lib/libQtUiTools.a(abstractformbuilder.o) definition of absolute _ZN26QAbstractFormBuilderGadget11qt_metacastEPKc.eh (value 0x0)
ld: multiple definitions of symbol _ZNK26QAbstractFormBuilderGadget10metaObjectEv.eh
/Users/dfaure/qt/qt-mac-opensource-src-4.2.1/lib/QtDesigner.framework/QtDesigner(single module) definition of _ZNK26QAbstractFormBuilderGadget10metaObjectEv.eh
/Users/dfaure/qt/qt-mac-opensource-src-4.2.1/lib/libQtUiTools.a(abstractformbuilder.o) definition of absolute _ZNK26QAbstractFormBuilderGadget10metaObjectEv.eh (value 0x0)
ld: multiple definitions of symbol QAbstractFormBuilderGadget::qt_metacall(QMetaObject::Call, int, void**)
/Users/dfaure/qt/qt-mac-opensource-src-4.2.1/lib/QtDesigner.framework/QtDesigner(single module) definition of QAbstractFormBuilderGadget::qt_metacall(QMetaObject::Call, int, void**)
etc.

As far as I can see, QUiLoader and QFormBuilder are very similar, the former simply exists for code that doesn't need to link to the big libQtDesigner
(which is mostly for designer plugins). Could kjsembed maybe use only QUiLoader?

qwidget_binding.cpp:      gUiLoader = new QUiLoader();
qformbuilder_binding.cpp:        QFormBuilder *formBuilder = new QFormBuilder();

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list