Ulf,
Thanks for your reply.
When I built Qt statically I had used this line:
configure -prefix /Users/nsantos/Qt/5.4/clang_32_static -platform macx-clang-32
-commercial -release -static -nomake examples -nomake tests -opengl desktop
-skip webkit -skip multimedia -D QT_QML_NO_DEBUGGER
I had to use -DQT_QML_NO_DEBUGGER because there was an issue when linking a
project using QtQml:
Undefined symbols for architecture i386:
"QTcpServerConnection::QTcpServerConnection()", referenced from:
QQmlDebugServerThread::run() in libQt5Qml.a(qqmldebugserver.o)
ld: symbol(s) not found for architecture i386
Do you think there is a relation between these two problems?
Thanks,
Regards,
Nuno
> On 01/06/2015, at 14:01, Ulf Hermann <[email protected]> wrote:
>
> Hi Nuno,
>
>> This is the .pro
>> [...]
>> LIBS +=
>> /Users/nsantos/Qt/5.4/clang_32_static/qml/QtQuick.2/libqtquick2plugin.a
>> LIBS +=
>> /Users/nsantos/Qt/5.4/clang_32_static/qml/QtQuick/Window.2/libwindowplugin.a
>> LIBS +=
>> /Users/nsantos/Qt/5.4/clang_32_static/qml/QtQuick/Controls/libqtquickcontrolsplugin.a
>> }
>
> You probably have to add the following somewhere:
>
> LIBS += /path/to/libqmldbg_tcp.a
>
> Then you should be able to to link the final library or application also with
> QML debugging enabled. Mind that this way your application has the QML debug
> server built in and whenever you start it with the right arguments or call
> QQmlDebuggingEnabler::startTcpServer() it will open a debug port and accept
> connections from anywhere. With a dynamically linked Qt you have the option
> to delete the plugin in order to prevent this.
>
> regards,
>
> --
> Ulf Hermann, Software Engineer | The Qt Company
>
> The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
> Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der
> Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331
> B
>
> Email: [email protected] | Mobile: + 49 151 68964561 | Phone: +49
> 30 63 92 3255 www.qt.io |Qt Blog: http://blog.qt.digia.com/ | Twitter:
> @QtbyDigia, @Qtproject | Facebook: www.facebook.com/qt
> _______________________________________________
> Interest mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest