| 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 |