Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Fix the luajit include path in csound. This patch is used in the 5.19.01 csound AUR PKGBUILD file from https://gist.github.com/4343591. With this patch, the luaCsnd module is compiled correctly, and 'luajit /path/to/lua_example.lua' generates a WAV file! :)

View luajit-include-path.patch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff -ru Csound5.19.01.orig/SConstruct Csound5.19.01/SConstruct
--- Csound5.19.01.orig/SConstruct 2013-01-07 04:49:34.000000000 -0800
+++ Csound5.19.01/SConstruct 2013-01-31 00:19:12.824750713 -0800
@@ -793,7 +793,7 @@
tclhfound = tclhfound or configure.CheckHeader(tmp, language = "C")
zlibhfound = configure.CheckHeader("zlib.h", language = "C")
midiPluginSdkFound = configure.CheckHeader("funknown.h", language = "C++")
-luaFound = configure.CheckHeader("lua.h", language = "C")
+luaFound = configure.CheckHeader("luajit-2.0/lua.h", language = "C")
#print 'LUA: %s' % (['no', 'yes'][int(luaFound)])
swigFound = 'swig' in commonEnvironment['TOOLS']
print 'Checking for SWIG... %s' % (['no', 'yes'][int(swigFound)])
@@ -1464,7 +1464,7 @@
print 'CONFIGURATION DECISION: Building Lua wrapper to Csound C++ interface library.'
luaWrapperEnvironment = csoundWrapperEnvironment.Clone()
if getPlatform() != 'win32':
- csoundWrapperEnvironment.Append(CPPPATH=['/usr/include/lua5.1'])
+ luaWrapperEnvironment.Append(CPPPATH=['/usr/include/luajit-2.0'])
if getPlatform() == 'win32':
csoundLuaInterface = luaWrapperEnvironment.SharedObject(
'interfaces/lua_interface.i',
@@ -2223,7 +2223,7 @@
if(luaFound == 1):
luaEnvironment.Append(LIBS = ['luajit-5.1'])
luaEnvironment.Append(LIBS = ['util', 'dl', 'm'])
- luaEnvironment.Append(CPPPATH = '/usr/local/include/luajit-2.0')
+ luaEnvironment.Append(CPPPATH = '/usr/include/luajit-2.0')
elif getPlatform() == 'win32':
if(luaFound == 1):
luaEnvironment.Append(LIBS = ['lua51'])
@@ -2557,6 +2557,7 @@
if getPlatform() == 'win32':
luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('luaCsnd lua51 CsoundAC csnd fltk_images'))
else:
+ luaCsoundACWrapperEnvironment.Append(CPPPATH = ['/usr/include/luajit-2.0'])
luaCsoundACWrapperEnvironment.Prepend(LIBS = [luaWrapper])
luaCsoundACWrapperEnvironment.Prepend(LIBS = Split('luajit-5.1 CsoundAC csnd fltk_images'))
luaCsoundACWrapper = luaCsoundACWrapperEnvironment.SharedObject(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.