Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] shared libcsound on linux?

Date2008-04-06 18:52
Fromvictor
SubjectRe: [Cs-dev] shared libcsound on linux?
I think it is on Windows. Years back we decided that static libs
would be simpler for people building their own Csound who
would not need to know about dynamic library paths etc.
However, this is open to discussion.

Victor
----- Original Message ----- 
From: "Jonatan Liljedahl" 
To: "Developer discussions" 
Sent: Sunday, April 06, 2008 5:28 PM
Subject: Re: [Cs-dev] shared libcsound on linux?


> Thanks, that did the trick.
>
> Shouldn't this be the default?
>
> victor wrote:
>> scons dynamicCsoundLibrary=1
>> ----- Original Message ----- 
>> From: "Jonatan Liljedahl" 
>> To: "Developer discussions" 
>> Sent: Sunday, April 06, 2008 3:00 PM
>> Subject: [Cs-dev] shared libcsound on linux?
>>
>>
>>> I just realized that my csound (built from source version 5.07) only has
>>> a static libsound.a installed. But there's not much point in a static
>>> link with csound when all opcodes are dynamic libs: the user still has
>>> to install csound to be able to use my application that uses the csound
>>> API. (The only thing that happens is that it adds weight to my binary.)
>>>
>>> Is there an option to the scons stuff for creating a shared lib instead?
>>> If so, shouldn't this be the default?
>>>
>>> -- 
>>> /Jonatan         [ http://kymatica.com ]
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>>> Monday, April 7! Use priority code J8TLD2.
>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>> Monday, April 7! Use priority code J8TLD2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -- 
> /Jonatan         [ http://kymatica.com ]
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-04-06 19:35
FromJonatan Liljedahl
SubjectRe: [Cs-dev] shared libcsound on linux?
In most cases, csound is installed in a standard location or at least a
location that your distro has in LD_LIBRARY_PATH...

In the other case, where the user has installed it in their home folder
or similar, he probably already know about appending the location of
libcsound.so to LD_LIBRARY_PATH.

Actually, it's probably easier to know about LD_LIBRARY_PATH than
OPCODEDIR, which must also be set manually if csound is installed in a
non-standard location.

Making the default shared will make applications linking with csound
smaller, and enjoy the benefit of dynamic linking (sharing memory, etc).

victor wrote:
> I think it is on Windows. Years back we decided that static libs
> would be simpler for people building their own Csound who
> would not need to know about dynamic library paths etc.
> However, this is open to discussion.
> 
> Victor
> ----- Original Message ----- 
> From: "Jonatan Liljedahl" 
> To: "Developer discussions" 
> Sent: Sunday, April 06, 2008 5:28 PM
> Subject: Re: [Cs-dev] shared libcsound on linux?
> 
> 
>> Thanks, that did the trick.
>>
>> Shouldn't this be the default?
>>
>> victor wrote:
>>> scons dynamicCsoundLibrary=1
>>> ----- Original Message ----- 
>>> From: "Jonatan Liljedahl" 
>>> To: "Developer discussions" 
>>> Sent: Sunday, April 06, 2008 3:00 PM
>>> Subject: [Cs-dev] shared libcsound on linux?
>>>
>>>
>>>> I just realized that my csound (built from source version 5.07) only has
>>>> a static libsound.a installed. But there's not much point in a static
>>>> link with csound when all opcodes are dynamic libs: the user still has
>>>> to install csound to be able to use my application that uses the csound
>>>> API. (The only thing that happens is that it adds weight to my binary.)
>>>>
>>>> Is there an option to the scons stuff for creating a shared lib instead?
>>>> If so, shouldn't this be the default?
>>>>
>>>> -- 
>>>> /Jonatan         [ http://kymatica.com ]
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>>>> Monday, April 7! Use priority code J8TLD2.
>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>>> Monday, April 7! Use priority code J8TLD2.
>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> -- 
>> /Jonatan         [ http://kymatica.com ]
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>> Monday, April 7! Use priority code J8TLD2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Register now and save $200. Hurry, offer ends at 11:59 p.m., 
> Monday, April 7! Use priority code J8TLD2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net