Re: [Interest] QtPlugins statically linked not loading

2016-07-07 Thread David Faure
On lundi 1 juin 2015 18:18:07 CEST Nuno Santos wrote: > #ifdef Q_OS_WINDOWS > #include > Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) > #endif Old mail, but for the record: surely the issue was that the correct #define is Q_OS_WIN32, not Q_OS_WINDOWS (this never existed). -- David Faure |

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Ulf Hermann
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 +=

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Tim Blechmann
2015-06-01 15:30:48.854 Live[81151:5901261] _DPSDiscardEvents: FlushEventsMatchingListFromQueue returned error (-50) /Applications/Ableton Live 9 Standard.app/Contents/MacOS /Users/nsantos/Qt/5.4/clang_32_static/plugins QQmlApplicationEngine failed to load component qrc:/main.qml:1 module

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Thiago Macieira
On Monday 01 June 2015 15:01:14 Ulf Hermann wrote: You probably have to add the following somewhere: LIBS += /path/to/libqmldbg_tcp.a but like I said, he shouldn't have to. That's a bug in QtQml that it uses qmldbg_tcp without linking to it. -- Thiago Macieira - thiago.macieira (AT)

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Ulf Hermann
On 06/01/2015 06:10 PM, Thiago Macieira wrote: On Monday 01 June 2015 15:01:14 Ulf Hermann wrote: You probably have to add the following somewhere: LIBS += /path/to/libqmldbg_tcp.a but like I said, he shouldn't have to. That's a bug in QtQml that it uses qmldbg_tcp without linking to it.

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Thiago Macieira
On Monday 01 June 2015 15:32:43 Nuno Santos wrote: qrc:/main.qml:1 module QtQuick is not installed qrc:/main.qml:2 module QtQuick.Window is not installed Did you add the necessary QT_IMPORT_PLUGIN to a .cpp file? Can you try QTPLUGIN += whatever instead of LIBS += for those plugins? That

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Nuno Santos
Ulf, I have recompiled Qt without the -DQT_QML_NO_DEBUGGER I have also changed the .pro to include directory the libs: 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

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Nuno Santos
Ulf, I have followed your suggestion and with the same build of static Qt (with -DQT_QML_NO_DEBUGGER on) I have added the following plugins to the .pro file: QT += qml quick TARGET = drc TEMPLATE = lib DEFINES += VST macx:{ CONFIG += lib_bundle shared QTPLUGIN += qcocoa qmldbg_tcp

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Ulf Hermann
macx:{ CONFIG += lib_bundle shared QTPLUGIN += qcocoa *qmldbg_tcp qmldbg_tcp_qtdeclarative* I guess this doesn't have any effect on static builds. I'm no qmake expert, though. Also, there is only one of them. It's called qmldbg_tcp. QMAKE_POST_LINK = mv -f $(TARGET)

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Nuno Santos
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

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Ulf Hermann
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

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Nuno Santos
Tim, This is precisely the problem i’m experiencing. Andy Shaw, the assignee, posted a comment in the middle of May 2015: Andy Shaw added a comment - 06/May/15 4:03 PM - edited https://codereview.qt-project.org/#/c/111866/ submitted https://codereview.qt-project.org/111870 is also needed Do

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Thiago Macieira
On Monday 01 June 2015 18:37:45 Ulf Hermann wrote: On 06/01/2015 06:10 PM, Thiago Macieira wrote: On Monday 01 June 2015 15:01:14 Ulf Hermann wrote: You probably have to add the following somewhere: LIBS += /path/to/libqmldbg_tcp.a but like I said, he shouldn't have to. That's a bug

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Nuno Santos
Thiago, Yes! On 01 Jun 2015, at 17:12, Thiago Macieira thiago.macie...@intel.com wrote: On Monday 01 June 2015 15:32:43 Nuno Santos wrote: qrc:/main.qml:1 module QtQuick is not installed qrc:/main.qml:2 module QtQuick.Window is not installed Did you add the necessary QT_IMPORT_PLUGIN to

Re: [Interest] QtPlugins statically linked not loading

2015-06-01 Thread Nuno Santos
Hi, I just want to share with you that I have checked Qt from source: git clone https://code.qt.io/qt/qt5.git cd qt5 git checkout 5.5 perl init-repository and then applied this two patches by cherry picking: https://codereview.qt-project.org/#/c/111866/

Re: [Interest] QtPlugins statically linked not loading

2015-05-31 Thread Thiago Macieira
On Sunday 31 May 2015 19:18:16 Nuno Santos wrote: /Users/nsantos/Qt/5.4/clang_32_static/lib BIGMAC:lib nsantos$ ls -la total 176024 drwxr-xr-x 123 nsantos staff 4182 29 Mai 22:50 . drwxr-xr-x 13 nsantos staff 442 29 Mai 21:56 .. drwxr-xr-x 37 nsantos staff 1258 29 Mai

Re: [Interest] QtPlugins statically linked not loading

2015-05-31 Thread Nuno Santos
Thx Thiago. On 31/05/2015, at 20:18, Thiago Macieira thiago.macie...@intel.com wrote: On Sunday 31 May 2015 19:18:16 Nuno Santos wrote: /Users/nsantos/Qt/5.4/clang_32_static/lib BIGMAC:lib nsantos$ ls -la total 176024 drwxr-xr-x 123 nsantos staff 4182 29 Mai 22:50 . drwxr-xr-x 13

Re: [Interest] QtPlugins statically linked not loading

2015-05-30 Thread Nuno Santos
Exactly Thiago! Why isn't it able to locate the plugins then on other machines then? Do I need anything else? One curious fact. In this last couple of days I have been trying to deploy a plugin bundle of OSX with Qt frameworks bundled inside the plugin. I have given up when I realized plugins

Re: [Interest] QtPlugins statically linked not loading

2015-05-30 Thread Nuno Santos
Thiago, This is the .pro TEMPLATE = lib DEFINES += VST CONFIG += plugin win32 { CONFIG += dll QMAKE_LFLAGS+=/DEF:$$PWD/audiolab.def QTPLUGIN += qwindows qtquick2plugin windowplugin qtquickcontrolsplugin LIBS += qwindows.lib LIBS +=

[Interest] QtPlugins statically linked not loading

2015-05-30 Thread Nuno Santos
Hi, I’m having an awkward problem. I’m building and compiling a plugin bundle with a statically built version of Qt. The plugin results in a single dll/bundle and loads successfully on my computer. But as soon as the plugin is open on another computer, it is instantiated but there is no

Re: [Interest] QtPlugins statically linked not loading

2015-05-30 Thread Thiago Macieira
On Saturday 30 May 2015 15:23:54 Nuno Santos wrote: I’m building and compiling a plugin bundle with a statically built version of Qt. The plugin results in a single dll/bundle and loads successfully on my computer. There's something wrong with this part of the explanation. A statically