[Interest] Bug when building Qt statically? Undefined symbols for architecture i386: "QTcpServerConnection::QTcpServerConnection()"

Nuno Santos nunosantos at imaginando.pt
Sat May 30 10:34:19 CEST 2015


Alright! I will open a bug report.

Thx Thiago.

> On 30/05/2015, at 00:21, Thiago Macieira <thiago.macieira at intel.com> wrote:
> 
> On Friday 29 May 2015 22:46:22 Nuno Santos wrote:
>> Hi,
>> 
>> I have been faced with this problem on Windows and now I have the same
>> problem on Mac OSX. This happens when I build Qt statically
>> 
>> Undefined symbols for architecture i386:
>>  "QTcpServerConnection::QTcpServerConnection()", referenced from:
>>      QQmlDebugServerThread::run() in libQt5Qml.a(qqmldebugserver.o)
>> ld: symbol(s) not found for architecture i386
>> 
>> My quick workaround is to configure with QT_QML_NO_DEBUGGER
>> 
>> I haven’t dig deeper to understand the exact problem.
>> 
>> Should I report this as a bug?
> 
> Yes. The use of QTcpServerConnection appears intentional in static builds:
> 
> #if defined(QT_STATIC) && ! defined(QT_NO_QML_DEBUGGER)
>    QQmlDebugServerConnection *connection
>            = new QTcpServerConnection;
> #else
>    QQmlDebugServerConnection *connection
>            = server->d_func()->loadConnectionPlugin(m_pluginName);
> #endif
> 
> Probably because of the lack of plugins in static builds.
> 
> But QTcpServerConnection is not provided inside QtQml. It's still in the 
> plugin (src/plugins/qmltooling/qmldbg_tcp) and I don't see anything in QtQml 
> making the inclusion of that code.
> 
> So, yes, this is a bug. The QML TCP debugger should be built into QtQml if the 
> static code tries to use it.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com <http://intel.com/>
>  Software Architect - Intel Open Source Technology Center
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest <http://lists.qt-project.org/mailman/listinfo/interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150530/d2f05262/attachment.html>


More information about the Interest mailing list