Use 0compile to link against native binary for lib
Björn Pollex <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <http://zero-install.sourceforge.net/2004/injector/interface>">
<name>zlib</name>
<summary>Compression library</summary>
<package-implementation distributions="Mac" package="zlib"/>
</interface>
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?
Cheers,
Björn
------------------------------------------------------------------------------
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