[Interest] How to create a loadable bundle in OSX with qmake/qtcreator?
Nuno Santos
nunosantos at imaginando.pt
Sat Nov 1 20:58:35 CET 2014
Hi,
Thanks for your reply.
In last resort I will use Xcode directly, but as I want to try to integrate a QML view inside the plugin window I thought that using QtCreator would also be useful.
I have found this:
http://qt-project.org/forums/viewthread/1119 <http://qt-project.org/forums/viewthread/1119>
I it is date from 2010 but I have tried and it doesn’t seem to provide any sort of effect:
macx:{
# plugin necessary because otherwise compatibility
# version parameters are added, which are not
# supported with bundles
CONFIG += plugin
QMAKE_LFLAGS_PLUGIN -= -dynamiclib
QMAKE_LFLAGS_PLUGIN += -bundle
}
I have also tried to take the TEMPLATE = lib out but it complains about the missing main function.
Any ideas?
Thanks,
Regards,
Nuno
> On 01/11/2014, at 18:26, René J.V. Bertin <rjvbertin at gmail.com <mailto:rjvbertin at gmail.com>> wrote:
>
> On Saturday November 01 2014 17:12:08 Nuno Santos wrote:
>
>> I’m trying to build a loadable lib module as a bundle with qmake/qtcreator. This loadable lib module is a VST plugin, a standard created by Steinberg for audio plugins, just like the audiounits from Apple.
>
> If all else fails, could you use CMake? AFAIK it does know how to create shared "modules", which is what you seem to be after.
>
>> TEMPLATE = lib
>> CONFIG += lib_bundle
>
> I think that creates a library-in-a-bundle AKA a framework. And that's what you seem to get ...
>
>> And this is the content of an already existent vst plugin:
>>
>> ./Contents
>> ./Contents/Info.plist
>> ./Contents/MacOS
>> ./Contents/MacOS/Dexed
>> ./Contents/PkgInfo
>> ./Contents/Resources
>> ./Contents/Resources/Dexed.rsrc
>> ./Contents/Resources/RecentFilesMenuTemplate.nib
>>
>> The main difference, is that the lib file is located under Contents/MacOS just like an executable.
>> Does anyone know how to produce this kind of bundles with qmake/qtcreator?
>
> Have you tried building as a bundle executable? You may have to add a/some linker flags to make the binary into a module rather than an executable (which would require a main function, etc).
>
> R.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141101/bc81801f/attachment.html>
More information about the Interest
mailing list