Csound Csound-dev Csound-tekno Search About

[Cs-dev] Compile Questions (mostly mac)

Date2009-12-06 23:24
Frommatt ingalls
Subject[Cs-dev] Compile Questions (mostly mac)
Hope someone could help me here:

+ Is it possible to compile Csound as a commandline application using no dynamic libraries for opcodes, main engine, and other plugins?

+ If not -- is using gdb still possible? (inside xcode?)

+ Is there an Xcode project for CsoundLib?

THANKS!
matt

matt ingalls
matt@sonomatics.com




------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-12-06 23:37
FromSteven Yi
SubjectRe: [Cs-dev] Compile Questions (mostly mac)
Not directly related, but I'd love it if all of the opcode plugins
with no external dependencies would be merged back into core.

On 12/6/09, matt ingalls  wrote:
> Hope someone could help me here:
>
> + Is it possible to compile Csound as a commandline application using no
> dynamic libraries for opcodes, main engine, and other plugins?
>
> + If not -- is using gdb still possible? (inside xcode?)
>
> + Is there an Xcode project for CsoundLib?
>
> THANKS!
> matt
>
> matt ingalls
> matt@sonomatics.com
>
>
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

-- 
Sent from my mobile device

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-12-07 07:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] Compile Questions (mostly mac)
On 6 Dec 2009, at 23:24, matt ingalls wrote:

> Hope someone could help me here:
>
> + Is it possible to compile Csound as a commandline application  
> using no dynamic libraries for opcodes, main engine, and other  
> plugins?
Never done this, but it would require code change possibly substantial.

> + If not -- is using gdb still possible? (inside xcode?)
Not sure if inside Xcode, but gdb has been used in the command-line. I  
don't often use it myself, but Steven, John and the others have.

> + Is there an Xcode project for CsoundLib?
I have not heard of one.


>
> THANKS!
> matt
>
> matt ingalls
> matt@sonomatics.com
>
>
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-12-07 19:19
Frommatt ingalls
SubjectRe: [Cs-dev] Compile Questions (mostly mac)
On Dec 6, 2009, at 11:20 PM, Victor Lazzarini wrote:

> 
> On 6 Dec 2009, at 23:24, matt ingalls wrote:
> 
>> Hope someone could help me here:
>> 
>> + Is it possible to compile Csound as a commandline application  
>> using no dynamic libraries for opcodes, main engine, and other  
>> plugins?
> Never done this, but it would require code change possibly substantial.

i thought as much.   that pretty much rules out running on an iPhone, i think.

> 
>> + If not -- is using gdb still possible? (inside xcode?)
> Not sure if inside Xcode, but gdb has been used in the command-line. I  
> don't often use it myself, but Steven, John and the others have.


well i am basically wondering how one steps into the csoundlib dylib
and then from there inside an opcode dylib.


> 
>> + Is there an Xcode project for CsoundLib?
> I have not heard of one.

ok thanks,
m@



------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-12-07 19:42
FromFelipe Sateler
SubjectRe: [Cs-dev] Compile Questions (mostly mac)
AttachmentsNone  None  
On Mon, 2009-12-07 at 11:19 -0800, matt ingalls wrote:
> On Dec 6, 2009, at 11:20 PM, Victor Lazzarini wrote:
> 
> > 
> > On 6 Dec 2009, at 23:24, matt ingalls wrote:
> > 
> > 
> >> + If not -- is using gdb still possible? (inside xcode?)
> > Not sure if inside Xcode, but gdb has been used in the command-line. I  
> > don't often use it myself, but Steven, John and the others have.
> 
> 
> well i am basically wondering how one steps into the csoundlib dylib
> and then from there inside an opcode dylib.

You can place checkpoints in opcode libs. Gdb will complain that it
cannot find the symbol, and asks if it is to be found later on with
another library load.



-- 
Saludos,
Felipe Sateler

Date2009-12-07 20:08
FromMichael Gogins
SubjectRe: [Cs-dev] Compile Questions (mostly mac)
Actually it should be possible to build a version of Csound that is
all statically linked. It would require adding some #ifdefs to the
code and/or changing the way plugins are loaded.

Currently, plugins have identically named module functions. The code
could, and perhaps should, be changed to prefix module functions with
the library base name. If that were done, a new initialization
function could call each module initialization function without having
to load shared libraries to do so, and without the multiple
definitions of symbols for the same names that would otherwise result.

Some plugin-based languages already use this scheme; Lua, e.g., looks
for xxx_init, not _init, in plugins named xxx.

Alternatively, all module functions could be #ifdef'd out for static
compilation and linkage, and then the opcode data (the rows in the
OENTRY table) could also be #ifdef'd into the current builtin opcode
table.

Then the module loading code would have to be #ifdef'd out for static builds.

I can't think of any other major changes that would be required, but
perhaps someone else can.

Another thought, is look into SCons documentation and OS X development
forums for how to  build the kinds of targets that you need, and
modify SConstruct accordingly.

Regards,
Mike

On 12/7/09, matt ingalls  wrote:
>
> On Dec 6, 2009, at 11:20 PM, Victor Lazzarini wrote:
>
>>
>> On 6 Dec 2009, at 23:24, matt ingalls wrote:
>>
>>> Hope someone could help me here:
>>>
>>> + Is it possible to compile Csound as a commandline application
>>> using no dynamic libraries for opcodes, main engine, and other
>>> plugins?
>> Never done this, but it would require code change possibly substantial.
>
> i thought as much.   that pretty much rules out running on an iPhone, i
> think.
>
>>
>>> + If not -- is using gdb still possible? (inside xcode?)
>> Not sure if inside Xcode, but gdb has been used in the command-line. I
>> don't often use it myself, but Steven, John and the others have.
>
>
> well i am basically wondering how one steps into the csoundlib dylib
> and then from there inside an opcode dylib.
>
>
>>
>>> + Is there an Xcode project for CsoundLib?
>> I have not heard of one.
>
> ok thanks,
> m@
>
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net