[Psi-devel] [BUG] Compilation broken
Michał Jazłowiecki
michalj at poczta.neostrada.pl
Fri Feb 16 12:47:17 PST 2007
Michał Jazłowiecki napisał(a):
> Ephraim Talrock wrote:
>> Disagree. I checked out currently, completely fresh from svn, and I
>> could compile it!
>>
>> Ciao Ephraim
>
> Either me or my build system need a rest... switching off. Nighty night.
Finally, I worked out what's wrong: if you include whiteboarding in your
CONFIG (CONFIG += whiteboarding), then the line 327 in src/src.pri,
which goes like this:
// Whiteboarding support. Still experimental.
causes confusion to qmake (because of syntax error - comments are
preceded with hashes (#) and do not use C/C++/C#/Java syntax).
Correcting that line to:
# Whiteboarding support. Still experimental.
makes qmake to end its run correctly. However, if CONFIG contains
psi_plugins (CONFIG += psi_plugins), then my linker complains:
../_obj\psiaccount.o(.text+0x2372a):psiaccount.cpp: undefined reference
to `PluginManager::instance()'
./_obj\psiaccount.o(.text+0x23746):psiaccount.cpp: undefined reference
to `PluginManager::processEvent(PsiAccount const*, QDomElemen
t&)'
./_obj\psiaccount.o(.text+0x24e95):psiaccount.cpp: undefined reference
to `PluginManager::instance()'
./_obj\psiaccount.o(.text+0x24ec5):psiaccount.cpp: undefined reference
to `PluginManager::message(PsiAccount*, XMPP::Jid const&, Use
rListItem const*, QString const&)'
./_obj\psiaccount.o(.text+0x33971):psiaccount.cpp: undefined reference
to `PluginManager::instance()'
./_obj\psiaccount.o(.text+0x3398d):psiaccount.cpp: undefined reference
to `PluginManager::addAccount(PsiAccount const*, XMPP::Client
*)'
./_obj\psiaccount.o(.text+0x370c1):psiaccount.cpp: undefined reference
to `PluginManager::instance()'
./_obj\psiaccount.o(.text+0x370dd):psiaccount.cpp: undefined reference
to `PluginManager::addAccount(PsiAccount const*, XMPP::Client
*)'
./_obj\psicon.o(.text+0x38cf):psicon.cpp: undefined reference to
`OptionsDlg::openTab(QString const&)'
./_obj\psicon.o(.text+0x39a7):psicon.cpp: undefined reference to
`OptionsDlg::OptionsDlg(PsiCon*, Options const&, QWidget*)'
./_obj\psicon.o(.text+0x3a12):psicon.cpp: undefined reference to
`OptionsDlg::openTab(QString const&)'
./_obj\psicon.o(.text+0x3b97):psicon.cpp: undefined reference to
`OptionsDlg::OptionsDlg(PsiCon*, Options const&, QWidget*)'
./_obj\psicon.o(.text+0x172e8):psicon.cpp: undefined reference to
`PluginManager::instance()'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [release\psi.exe] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-src-make_default] Error 2
:( And yes, I like to experiment. Anyway, excluding psi_plugins from
CONFIG makes me end up with another error:
In file included from wbscene.h:23,
from wbwidget.h:24,
from wbdlg.h:42,
from wbmanager.h:28,
from wbmanager.cpp:25:
wbitems.h:42: error: redefinition of `struct QMetaTypeId<QGraphicsItem*>'
C:/Qt/4.2.2/include/QtGui/../../src/gui/graphicsview/qgraphicsitem.h:286:
error: previous definition of `struct QMetaTypeId<QGraphic
sItem*>'
wbmanager.cpp: In member function `void WbManager::messageReceived(const
XMPP::Message&)':
wbmanager.cpp:65: error: 'const class XMPP::Message' has no member named
'wb'
wbmanager.cpp:77: error: 'const class XMPP::Message' has no member named
'wb'
wbmanager.cpp:85: error: 'const class XMPP::Message' has no member named
'wb'
wbmanager.cpp:88: error: 'const class XMPP::Message' has no member named
'wb'
wbmanager.cpp:124: error: 'const class XMPP::Message' has no member
named 'wb'
wbmanager.cpp:132: error: 'const class XMPP::Message' has no member
named 'wb'
wbmanager.cpp: In member function `WbDlg*
WbManager::negotiateSession(const XMPP::Message&)':
wbmanager.cpp:175: error: 'const class XMPP::Message' has no member
named 'wb'
wbmanager.cpp:256: error: 'const class XMPP::Message' has no member
named 'wb'
wbmanager.cpp:257: error: 'const class XMPP::Message' has no member
named 'wb'
wbmanager.cpp: In member function `void
WbManager::sendMessage(QDomElement, const XMPP::Jid&, bool)':
wbmanager.cpp:623: error: 'class XMPP::Message' has no member named 'setWb'
mingw32-make[2]: *** [_obj\wbmanager.o] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-src-make_default] Error 2
:(
Regards,
--
Michał Jazłowiecki (michalj)
Psi Forum & Wiki Moderator :: Psi-Daisy Author
More information about the psi-devel
mailing list