You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ian Sidor <ia...@me.com> on 2011/05/19 01:00:45 UTC
Generating SVN libraries from source on Mac OSX
I'm building Subversion from source in order to generate static libraries to use in my own application.
I can build Subversion fine but I don't seem to be getting any libraries (dylib's).
Here is what I type in terminal:
curl -O http://subversion.tigris.org/downloads/subversion-1.6.16.tar.gz
curl -O http://subversion.tigris.org/downloads/subversion-deps-1.6.16.tar.gz
tar xzvf subversion-1.6.16.tar.gz
tar xzvf subversion-deps-1.6.16.tar.gz
./configure --enable-static
make
I found a file 'libsvn_client-1.la' which is required for linking. The text inside describes 'libsvn_client-1.dylib' but it is never generated after make is executed.
I've tried everything I can think of & no doubt missing something simple, I'm not too familiar with Unix open source conventions. Can someone help me with this please?
Thank-you.
Ian.
Re: Generating SVN libraries from source on Mac OSX
Posted by Christian Gils <cg...@lluvioso.org>.
Does make's output say anything about the libraries in question? You
should see compilation statements scroll by while make runs.
On Thu, May 19, 2011 at 05:23:51PM +0100, Ian Sidor wrote:
> I tried --disable-shared but I still didn't get any libsvn*.dylib files.
>
> Is there anything else I can try?
Re: Generating SVN libraries from source on Mac OSX
Posted by Ryan Schmidt <su...@ryandesign.com>.
On May 20, 2011, at 05:40, Ian Sidor wrote:
> However, I still cannot find any libsvn*.a files anywhere on the drive.
All I know is Subversion correctly builds both static and dynamic libraries when installed with MacPorts.
$ port installed subversion
The following ports are currently installed:
subversion @1.6.16_0+mod_dav_svn+tools+universal (active)
$ port contents subversion | grep \\.a$
/opt/local/lib/libsvn_client-1.a
/opt/local/lib/libsvn_delta-1.a
/opt/local/lib/libsvn_diff-1.a
/opt/local/lib/libsvn_fs-1.a
/opt/local/lib/libsvn_fs_base-1.a
/opt/local/lib/libsvn_fs_fs-1.a
/opt/local/lib/libsvn_fs_util-1.a
/opt/local/lib/libsvn_ra-1.a
/opt/local/lib/libsvn_ra_local-1.a
/opt/local/lib/libsvn_ra_neon-1.a
/opt/local/lib/libsvn_ra_serf-1.a
/opt/local/lib/libsvn_ra_svn-1.a
/opt/local/lib/libsvn_repos-1.a
/opt/local/lib/libsvn_subr-1.a
/opt/local/lib/libsvn_wc-1.a
You could read the MacPorts subversion Portfile, and install subversion with MacPorts and read the debug output, to see exactly how that's accomplished; maybe you can adapt that for your own manual build. Or maybe you can just make use of the libraries MacPorts installs, and forgo building manually.
Re: Generating SVN libraries from source on Mac OSX
Posted by Ian Sidor <ia...@me.com>.
Ok thanks to all, I have my script working correctly now.
Regards,
Ian.
On 20 May 2011, at 18:00, Blair Zajac wrote:
>
> On May 20, 2011, at 3:40 AM, Ian Sidor wrote:
>
>> Oops. Thank-you for pointing that out, my mistake.
>>
>> However, I still cannot find any libsvn*.a files anywhere on the drive.
>>
>> As described in my first mail, there is a file I can see with the extension 'LA' which is a text file. It states that the libraries will be built to /usr/local/lib but they don't seem to be there after I execute make.
>
> You have to run make install to get them to install into /usr/local/lib.
>
> BTW, if you're building libraries for your application, it's probably best to pick a different directory than /usr/local, since it's a common dumping ground. Choose something like /opt/my_company_name/product_name.
>
> Also, you could build with MacPorts into /opt/my_company_name/product_name and then have it provide all the .a's.
>
> Blair
>
Re: Generating SVN libraries from source on Mac OSX
Posted by Blair Zajac <bl...@orcaware.com>.
On May 20, 2011, at 3:40 AM, Ian Sidor wrote:
> Oops. Thank-you for pointing that out, my mistake.
>
> However, I still cannot find any libsvn*.a files anywhere on the drive.
>
> As described in my first mail, there is a file I can see with the extension 'LA' which is a text file. It states that the libraries will be built to /usr/local/lib but they don't seem to be there after I execute make.
You have to run make install to get them to install into /usr/local/lib.
BTW, if you're building libraries for your application, it's probably best to pick a different directory than /usr/local, since it's a common dumping ground. Choose something like /opt/my_company_name/product_name.
Also, you could build with MacPorts into /opt/my_company_name/product_name and then have it provide all the .a's.
Blair
Re: Generating SVN libraries from source on Mac OSX
Posted by Ian Sidor <ia...@me.com>.
Oops. Thank-you for pointing that out, my mistake.
However, I still cannot find any libsvn*.a files anywhere on the drive.
As described in my first mail, there is a file I can see with the extension 'LA' which is a text file. It states that the libraries will be built to /usr/local/lib but they don't seem to be there after I execute make.
./configure --disable-shared --enable-static
make
Thanks,
Ian.
On 19 May 2011, at 17:31, Blair Zajac wrote:
> Static libraries end in .a, not .dylib, those are shared.
>
> Blair
>
> On May 19, 2011, at 9:23 AM, Ian Sidor wrote:
>
>> I tried --disable-shared but I still didn't get any libsvn*.dylib files.
>>
>> Is there anything else I can try?
>>
>>
>> On 19 May 2011, at 07:47, Daniel Shahaf wrote:
>>
>>> Just ignore the file you don't need then?
>>>
>>> Or try --disable-shared
>>>
>>> Ian Sidor wrote on Thu, May 19, 2011 at 00:00:45 +0100:
>>>> I'm building Subversion from source in order to generate static libraries to use in my own application.
>>>>
>>>> I can build Subversion fine but I don't seem to be getting any libraries (dylib's).
>>>>
>>>> Here is what I type in terminal:
>>>>
>>>> curl -O http://subversion.tigris.org/downloads/subversion-1.6.16.tar.gz
>>>> curl -O http://subversion.tigris.org/downloads/subversion-deps-1.6.16.tar.gz
>>>>
>>>> tar xzvf subversion-1.6.16.tar.gz
>>>> tar xzvf subversion-deps-1.6.16.tar.gz
>>>>
>>>> ./configure --enable-static
>>>> make
>>>>
>>>>
>>>> I found a file 'libsvn_client-1.la' which is required for linking. The text inside describes 'libsvn_client-1.dylib' but it is never generated after make is executed.
>>>>
>>>> I've tried everything I can think of & no doubt missing something simple, I'm not too familiar with Unix open source conventions. Can someone help me with this please?
>>>>
>>>> Thank-you.
>>>> Ian.
>>
>
Re: Generating SVN libraries from source on Mac OSX
Posted by Blair Zajac <bl...@orcaware.com>.
Static libraries end in .a, not .dylib, those are shared.
Blair
On May 19, 2011, at 9:23 AM, Ian Sidor wrote:
> I tried --disable-shared but I still didn't get any libsvn*.dylib files.
>
> Is there anything else I can try?
>
>
> On 19 May 2011, at 07:47, Daniel Shahaf wrote:
>
>> Just ignore the file you don't need then?
>>
>> Or try --disable-shared
>>
>> Ian Sidor wrote on Thu, May 19, 2011 at 00:00:45 +0100:
>>> I'm building Subversion from source in order to generate static libraries to use in my own application.
>>>
>>> I can build Subversion fine but I don't seem to be getting any libraries (dylib's).
>>>
>>> Here is what I type in terminal:
>>>
>>> curl -O http://subversion.tigris.org/downloads/subversion-1.6.16.tar.gz
>>> curl -O http://subversion.tigris.org/downloads/subversion-deps-1.6.16.tar.gz
>>>
>>> tar xzvf subversion-1.6.16.tar.gz
>>> tar xzvf subversion-deps-1.6.16.tar.gz
>>>
>>> ./configure --enable-static
>>> make
>>>
>>>
>>> I found a file 'libsvn_client-1.la' which is required for linking. The text inside describes 'libsvn_client-1.dylib' but it is never generated after make is executed.
>>>
>>> I've tried everything I can think of & no doubt missing something simple, I'm not too familiar with Unix open source conventions. Can someone help me with this please?
>>>
>>> Thank-you.
>>> Ian.
>
Re: Generating SVN libraries from source on Mac OSX
Posted by Ian Sidor <ia...@me.com>.
I tried --disable-shared but I still didn't get any libsvn*.dylib files.
Is there anything else I can try?
On 19 May 2011, at 07:47, Daniel Shahaf wrote:
> Just ignore the file you don't need then?
>
> Or try --disable-shared
>
> Ian Sidor wrote on Thu, May 19, 2011 at 00:00:45 +0100:
>> I'm building Subversion from source in order to generate static libraries to use in my own application.
>>
>> I can build Subversion fine but I don't seem to be getting any libraries (dylib's).
>>
>> Here is what I type in terminal:
>>
>> curl -O http://subversion.tigris.org/downloads/subversion-1.6.16.tar.gz
>> curl -O http://subversion.tigris.org/downloads/subversion-deps-1.6.16.tar.gz
>>
>> tar xzvf subversion-1.6.16.tar.gz
>> tar xzvf subversion-deps-1.6.16.tar.gz
>>
>> ./configure --enable-static
>> make
>>
>>
>> I found a file 'libsvn_client-1.la' which is required for linking. The text inside describes 'libsvn_client-1.dylib' but it is never generated after make is executed.
>>
>> I've tried everything I can think of & no doubt missing something simple, I'm not too familiar with Unix open source conventions. Can someone help me with this please?
>>
>> Thank-you.
>> Ian.
Re: Generating SVN libraries from source on Mac OSX
Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Just ignore the file you don't need then?
Or try --disable-shared
Ian Sidor wrote on Thu, May 19, 2011 at 00:00:45 +0100:
> I'm building Subversion from source in order to generate static libraries to use in my own application.
>
> I can build Subversion fine but I don't seem to be getting any libraries (dylib's).
>
> Here is what I type in terminal:
>
> curl -O http://subversion.tigris.org/downloads/subversion-1.6.16.tar.gz
> curl -O http://subversion.tigris.org/downloads/subversion-deps-1.6.16.tar.gz
>
> tar xzvf subversion-1.6.16.tar.gz
> tar xzvf subversion-deps-1.6.16.tar.gz
>
> ./configure --enable-static
> make
>
>
> I found a file 'libsvn_client-1.la' which is required for linking. The text inside describes 'libsvn_client-1.dylib' but it is never generated after make is executed.
>
> I've tried everything I can think of & no doubt missing something simple, I'm not too familiar with Unix open source conventions. Can someone help me with this please?
>
> Thank-you.
> Ian.