Yes, I think so. I'll try to get some info about it, but it won't happen before next week. Unfortunately I don't have access to a Mac, so I can't check it out myself.
Yes, I think so. I'll try to get some info about it, but it won't happen before next week. Unfortunately I don't have access to a Mac, so I can't check it out myself.
To create a framework you have to add lib_bundle to CONFIG. Then adjust the path to the lib. For me it didn't worked fine. Should anything else be done?
widgets.pro
Qt Code:
mac : CONFIG += lib_bundleTo copy to clipboard, switch view to plain text mode
plugin.pro
Qt Code:
mac : LIBS += -L../widgets/wwwidgets4.framework -lwwwidgets4 #mac : LIBS += -L../widgets/wwwidgets4.framework/Versions/0 -lwwwidgets4To copy to clipboard, switch view to plain text mode
Qt Code:
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lwwwidgets4 /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lwwwidgets4 is not an object file (not allowed in a library)To copy to clipboard, switch view to plain text mode
Blah, sorry, I forgotGive me time until Wednesday, please.
A side question - does the widget library work? Apart from the non-working plugin, can you use wwWidgets by adding CONFIG+=wwwidgets to your project file?
Ok, I've done some reading. First of all please run otool on the wwidgets plugin (libwwwidgetsplugin.dylib) and post the result here. Then run otool on the widget library (libwwwidgets4.dylib) and post the result as well. Finally post the absolute path to:
1. Qt libraries
2. libwwwidgets4.dylib
3. libwwwidgetsplugin.dylib
You'll need all that information to use a tool called install_name_tool. You can enter its name in Qt Assistant to learn about what it does.
I solved it... the solution by Reimer was very close.
But you cannot add a reference to a framework like a library. Mac OS X frameworks are little bit different that .dylib libraries, so libtool fails if you handle the framework like a dylib.
In plugin.pro, the correct declaration is:
Qt Code:
LIBS += -framework wwwidgets4To copy to clipboard, switch view to plain text mode
Note that this requires that the framework already exists in /Library/Frameworks!
So, compile the main plugin, run 'make install' and produce the designer plugin after...
Bookmarks