Re: Use 0compile to link against native binary for lib
Thomas Leonard <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy9Fp2oFCd74=hhutyRHQCYPbgXjLtQCkrTpcJtFfbN27A@mail.gmail.com> |
On 11 July 2015 at 00:51, Björn Pollex <[email protected]> wrote: > Hi all, > > I am trying to build an application using 0compile, and have 0compile > provision all the static libraries that application links against. Currently > I’m trying to make it use the native zlib on Mac OS X. I am really stabbing > around in the dark here, as the documentation on these things seems a bit > sparse to me. Here is my current approach: > > I’ve created a local feed file zlib.xml with the following contents: > > <?xml version="1.0"?> > <interface > xmlns="http://zero-install.sourceforge.net/2004/injector/interface"> > <name>zlib</name> > <summary>Compression library</summary> > <package-implementation distributions="Mac" package="zlib"/> > </interface> According to http://0install.net/distribution-integration.html the distribution name should be "MacPorts" here. > In my programs local feed I refer to this as follows, from within the > <command name=“compile”> element: > > <requires > interface="/Users/bjoern/Documents/Programming/feeds/zlib.xml"> > <environment name="FOO" insert="" mode="prepend" /> > </requires> > > The binding is really just for experimentation. This setup does not work, > 0compile reports this: > > Can't find all required implementations: > - /Users/bjoern/Documents/Programming/cpp/my-application/my-application.xml > -> 0.1-pre (.) > - /Users/bjoern/Documents/Programming/feeds/zlib.xml -> (problem) > No known implementations at all > > I’m guessing that I’ve misunderstood the purpose of using > distributions=“Mac”. How can I make 0compile detect my native version of > zlib? -- Dr Thomas Leonard http://roscidus.com/blog/ GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Zero-install-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/zero-install-devel