Re: [CMake] Problems with CMake and static Qt plugins

2012-10-29 Thread dcrespol
Stephen Kelly-2 wrote > Use > > add_definitions(-DQT_STATICPLUGIN) > > when building your plugin Perfect. Now it works. For some reason I was using that line in the application build that links to the plugin. Thanks a lot! -Daniel -- View this message in context: http://cmake.3232098.n2.n

Re: [CMake] Problems with CMake and static Qt plugins

2012-10-29 Thread Stephen Kelly
dcrespol wrote: > Hi, norulez. > With "@Thiago: QT_STATICPLUGIN does the trick ", what do you mean? How and > where did you use this? > If possible, can you please include both your final plugin and application > CMakeLists.txt files? It was probably a response to Thiago on the Qt mailing list.

Re: [CMake] Problems with CMake and static Qt plugins

2012-10-29 Thread dcrespol
Hi, norulez. With "@Thiago: QT_STATICPLUGIN does the trick ", what do you mean? How and where did you use this? If possible, can you please include both your final plugin and application CMakeLists.txt files? Thanks a lot, -Daniel -- View this message in context: http://cmake.3232098.n2.nabble

Re: [CMake] Problems with CMake and static Qt plugins

2012-03-04 Thread norulez
@Michael: This was a copy/paste failure @Thiago: QT_STATICPLUGIN does the trick Another mistake from me was to use a different name for Q_IMPORT_PLUGIN and for Q_EXPORT_PLUGIN2. One more hint, if someone would make a static plugin is to use the QPluginLoader::staticInstances() function. Thank

Re: [CMake] Problems with CMake and static Qt plugins

2012-03-03 Thread Michael Hertling
On 03/02/2012 02:48 PM, NoRulez wrote: > Hello, > > I use Qt 4.8.0 from the QtSDK and Iwant to generate a static qt plugin. > In my main.cpp I have the following: > > > #include > #include > > Q_IMPORT_PLUGIN(Local) > > intmain(intargc,char*argv[]){ > QApplicationapp(argc,argv); > > . >

[CMake] Problems with CMake and static Qt plugins

2012-03-02 Thread NoRulez
Hello,I use Qt 4.8.0 from the QtSDK and I want to generate a static qt plugin.In my main.cpp I have the following:#include #include Q_IMPORT_PLUGIN(Local)int main(int argc, char* argv[]) {    QApplication app(argc, argv); ...     return app.exec();}The corresponding CMakeLists.txt for