[Cs-dev] Swig and Lua
Date | 2006-01-16 10:05 |
From | Neil 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 |
Date | 2006-01-16 10:45 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Swig and Lua |
Attachments | None |
Date | 2006-01-16 17:26 |
From | schwaahed |
Subject | Re: [Cs-dev] Swig and Lua |
Attachments | None |
Date | 2006-01-17 04:01 |
From | Russell Johnston |
Subject | Re: [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 |
Date | 2006-01-17 09:30 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Swig and Lua |
Attachments | None |
Date | 2006-01-17 23:35 |
From | schwaahed |
Subject | Re: [Cs-dev] Swig and Lua |
Attachments | None |