Extending SWT with Qt widgets
-
I am trying to extends SWT (it's Java widgets that are used by Eclipse) by providing SWT-like wrappers for Qt widgets. I published the sources on "Google Code":http://code.google.com/p/qtwidgetsinswt/.
There is little that I have there at the moment - I was more concerned with technical issues (i.e. integrating with event loops on Windows and Cocoa, checking if signals work, etc) - but it can be used to test feasibility of this approach. I have several Qt questions (mostly in the build area):
Can anybody try to build the Qt part with static linking? I would like to know if it is even possible and what would be the size. Basically if you have environment for static linking with Qt ready all that is needed is to checkout the code and run qmake/make. At least I hope that would be that simple. So far I was unable to properly configure Qt for static linking (I'm Java developer :( )
My project configuration has "TEMPLATE = lib dll". It works fine on Mac but it produces extra file with ".a" extension on Windows. How can I get rid of that file?
Can anybody provide me more information on using "-r" linker flag on mac? "This":http://doc.qt.nokia.com/4.7/mac-differences.html page states: "If you want to build a new dynamic library combining the Qt 4 dynamic libraries, you need to introduce the ld -r flag. Then relocation information is stored in the output file, so that this file could be the subject of another ld run. This is done by setting the -r flag in the .pro file, and the LFLAGS settings." Is there more detailed description on combining libraries? I.e. what are the steps after I build my library with -r flag?
Basically, I have a pretty serious problem with distributing my app. Currently I have to require user to install the Qt SDK - and that's fine for now, till it gets used in any actual product. The build result is a DLL that is accessed through JNI from the Java application. Most Qt guidelines don't really apply to my scenario (i.e. I can't have app bundle on Mac).
Any help would be greatly appreciated.
[ edit: fixed numbering / chetankjain]
-
[quote author="zzhou" date="1285877841"]
Can anybody try to build the Qt part with static linking? I would like to know if it is even possible and what would be the size. Basically if you have environment for static linking with Qt ready all that is needed is to checkout the code and run qmake/make. At least I hope that would be that simple. So far I was unable to properly configure Qt for static linking (I'm Java developer :( )
[/quote]
check this "link":http://doc.qt.nokia.com/4.7/deployment.html for more info, the bottom section of the page has platform specific links that are quite detailed.
-
I have read this documentation - but experimenting with static linking takes a lot of time (i.e. you need to completely rebuild Qt) - and it does not build WebKit when you do configure -static. As I am not sure if it is really doable, I wonder if somebody could try to build it if he already have the configured information.