Csound Csound-dev Csound-tekno Search About

[Cs-dev] Swig and Lua

Date2006-01-16 10:05
FromNeil Dökkalfar
Subject[Cs-dev] Swig and Lua
Hi,

CSound works perfectly but i have a small problem with the SConstruct
file, at line 886, "SWIGFLAGS = [swigflags, '-lua', '-outdir', '.'])".
When i disable the lua backend, there is no problem, otherwise, there is
a command like "swig -c++ -includeall -verbose ... -lua -outdir . ..."
which gets executed. But swig doesn't seems to like that and prints an
error message:

  Preprocessing...
  :6: Unable to find 'ua'

I also tried to use a cc-like argument (-llua) but same problem. Note
that i have the lua library installed in /usr and i have the
/usr/*/*lua* files (and so lua is detected by scons). Unfortunately i
know nothing about swig.

Hope to have an answer :)
Great job, thanks a lot (i finally have csound on an amd64 system!).

neil



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-01-16 10:45
FromIstvan Varga
SubjectRe: [Cs-dev] Swig and Lua
AttachmentsNone  

Date2006-01-16 17:26
Fromschwaahed
SubjectRe: [Cs-dev] Swig and Lua
AttachmentsNone  

Date2006-01-17 04:01
FromRussell Johnston
SubjectRe: [Cs-dev] Swig and Lua
I built Lua from source, which produced liblua.[a|so|so.5.0] but not
liblua50.* (current csound SConstruct wants the latter at line 888).

I'm not well-versed with scons, but I guess the following would work
for both cases:

         if configure.CheckLib('lua'):
             csoundInterfacesEnvironment.Prepend(LIBS = ['lua'])
         elif configure.CheckLib('lua50'):
             csoundInterfacesEnvironment.Prepend(LIBS = ['lua50'])
         elif [test for other names used by known lua packages???]

Thanks to all,
Russell

schwaahed wrote:
> Hi,
> 
> I have SWIG 1.3.27 and Lua 5.0.2 and almost all of my
> headaches from building csound over the past few months
> on linux were related to the Lua wrapper. Once I started
> disabling Lua my build problems disappeared. It just seems
> something is a little weird with the Lua wrapper. I don't need
> it but I stayed away from all of the language wrappers until
> you (Istvan) told me how to disable it. This may be irrelevant in
> light of the releases going out, but I do think it is worth noting.
> 
> -Thanks for all the excellent work!
> schwaahed
> 
> 
> On 1/16/06, Istvan Varga  wrote:
>> You need SWIG 1.3.27 or newer for building the Lua wrapper.
>>
>> On Monday 16 January 2006 11:05, Neil Dökkalfar wrote:
>>
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-01-17 09:30
FromIstvan Varga
SubjectRe: [Cs-dev] Swig and Lua
AttachmentsNone  

Date2006-01-17 23:35
Fromschwaahed
SubjectRe: [Cs-dev] Swig and Lua
AttachmentsNone