Re: 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]>
This has the same effect. I am confused by this, I don’t have MacPorts installed, so I though using the MacPorts distribution support would be incorrect. I don’t even know if package-implementations are even the right approach here?

What I am trying to accomplish is to statically link against native zlib on platforms where it is available, and install it on platforms where it isn’t. On Mac OS X it is available, I don’t need any package manager to install it, unless I’d need a different version. On Windows I’d have to install zlib. How would I express this in a feed file?

Thanks for you help, and apologies if I seem to be slow to grasp this.

Cheers,

	Björn

> On 11 Jul 2015, at 05:55, Thomas Leonard <[email protected]> wrote:
> 
> On 11 July 2015 at 00:51, Björn Pollex <[email protected] <mailto:[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 <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/ <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/ <https://www.gigenetcloud.com/>
> _______________________________________________
> Zero-install-devel mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/zero-install-devel <https://lists.sourceforge.net/lists/listinfo/zero-install-devel>

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.