[Csnd] LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE
Date | 2014-08-01 08:04 |
From | francesco |
Subject | [Csnd] LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
I have try to add a entry in cmake LUA_H_PATH=path to lua.h but doesn't works. What can i do? Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/LUA-H-PATH-so-disabling-BUILD-LUA-INTERFACE-tp5736572.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-08-05 23:13 |
From | Steven Yi |
Subject | Re: [Csnd] LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
Hi Francesco, What OS are you working on? And what value did you try using? On OSX, I have this in my CMakeCache.txt: LUA_H_PATH:PATH=/usr/local/include steven On Fri, Aug 1, 2014 at 3:04 AM, francesco |
Date | 2014-08-06 07:22 |
From | francesco |
Subject | [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
Again sorry ... i'm on linux Ubuntu 12.04 32 bit. Lua header files are in /usr/local/include or in /usr/local/include/luajit-2.0. i tried both in cmake GUI, adding a entry LUA_H_PATH, and in command line cmake -D"LUA_H_PATH=/usr/local/include/". But seems to remain empty (LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE). Maybe am i wronging something as usual? :) Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/LUA-H-PATH-so-disabling-BUILD-LUA-INTERFACE-tp5736572p5736629.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-08-06 07:29 |
From | francesco |
Subject | [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
ok, looking at CMakeLists.txt i have found this # Relative install paths set(EXECUTABLE_INSTALL_DIR "bin") set(LUA_H_PATH "") i changed the last line with the right path, i know this should be not the way, but worked :) Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/LUA-H-PATH-so-disabling-BUILD-LUA-INTERFACE-tp5736572p5736630.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-08-06 12:08 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
There was a line at the end of the make CMakeLists.txt to reset LUA_H_PATH to an empty string. This absolutely guaranteed that the configuration would never work. Also the LUA_H_PATH commands were not consistent. There is a problem in that the Lua headers go in /usr/local/include on Linux and in /usr/local/include/luajit-2.0 on MinGW. I have fixed these problems but they need to be tested on Linux and OS X. It will be necessary for the user to set this variable.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 6, 2014 at 2:22 AM, francesco <ilterzouomo@fastwebnet.it> wrote: Again sorry ... |
Date | 2014-08-06 17:30 |
From | Steven Yi |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
The code change has broken things here for /usr/local/include/luajit-2.0. I'm reverting it, minus the setting of LUA_H_PATH to "". On Wed, Aug 6, 2014 at 7:08 AM, Michael Gogins |
Date | 2014-08-06 17:32 |
From | Andres Cabrera |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
You need to do: -DLUA_H_PATH= "=/usr/local/include/"Cheers, Andrés On Wed, Aug 6, 2014 at 1:22 AM, francesco <ilterzouomo@fastwebnet.it> wrote: Again sorry ... |
Date | 2014-08-06 18:08 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-08-06 18:21 |
From | francesco |
Subject | [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
Hello Andres, i made this cmake -D"LUA_H_PATH=/usr/local/include/" and cmake -D"LUA_H_PATH=/usr/local/include/luajit-2.0" but did not work. But Your command is different so maybe (well .. for sure :)) i was wrong. I will try. Thanks, ciao, francesco -- View this message in context: http://csound.1045644.n5.nabble.com/LUA-H-PATH-so-disabling-BUILD-LUA-INTERFACE-tp5736572p5736650.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-08-06 18:24 |
From | francesco |
Subject | [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
Hello Michael, in my system (Ubuntu 12.04) i have lua.h and lua.hpp either in /usr/local/include that in /usr/local/include/luajit-2.0 so i guess on linux should work, if you have both Lua that LuaJIT. Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/LUA-H-PATH-so-disabling-BUILD-LUA-INTERFACE-tp5736572p5736651.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-08-06 18:57 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
LuaJIT is required for the Lua opcodes. Both LuaJIT and Lua will enable the Lua interfaces. The idea is to use LuaJIT, if you have it, in place of Lua.
Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 6, 2014 at 1:24 PM, francesco <ilterzouomo@fastwebnet.it> wrote: Hello Michael, |
Date | 2014-08-07 00:26 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
By the way, I have re-reverted Steven's changes as they do not seem to work on Windows. Steven, have you built the Lua features with your changes on WIndows/MinGW and if so how did you do it? My changes SHOULD work on Linux if you set LUA_H_PATH to the directory containing lua.h. The find_path command in CMake is not documented to work to find "path/file," it appears to be designed to find "file."
Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 6, 2014 at 1:57 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2014-08-07 00:46 |
From | Steven Yi |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
No, this worked just fine on OSX and and Linux for searching for luajit and you've now broken it twice for me. This has worked for a long while. When you make; make install luajit on Windows, does it not install into /usr/local/include/luajit-2.0/lua.h? I have not built the Lua stuff on Windows. I can take a look at it shortly, but the changes you have reapplied are certainly not correct as they remove dependency checks on the header (and break things on OSX and Linux...) On Wed, Aug 6, 2014 at 7:26 PM, Michael Gogins |
Date | 2014-08-07 01:21 |
From | Michael Gogins |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
Yes, luajit installs lua.h as you describe. The problem is that the find_path command doesn't work the way you want it to on Windows. That is why I asked if you had built it on Windows yourself, I thought maybe you had got it to work where I had not. Regards, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Aug 6, 2014 at 7:46 PM, Steven Yi <stevenyi@gmail.com> wrote: No, this worked just fine on OSX and and Linux for searching for |
Date | 2014-08-07 02:00 |
From | Steven Yi |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
I'm going to undo your commit again here and modify to use PATH_SUFFIXES for sub directory search paths. I will be pushing commits and testing across platforms for the moment, please do not make any commits while I'm in the middle of this. On Wed, Aug 6, 2014 at 8:21 PM, Michael Gogins |
Date | 2014-08-07 02:14 |
From | Steven Yi |
Subject | Re: [Csnd] Re: LUA_H_PATH="", so disabling BUILD_LUA_INTERFACE |
I've modified the CMake files to use PATH_SUFFIXES, and also modified them to search for lua51 if luajit or luajit-5.1 libraries are not found. This matches up with lua51.dll being generated on Windows with LuaJit's default Makefile settings. I built and installed LuaJit-2.0.3 with make install. Afterwards, I copied lua51.dll into /usr/local/lib. With the changes, I can build on OSX and Windows. Michael: could you give this a try and let me know if the build is working out there? On Wed, Aug 6, 2014 at 9:00 PM, Steven Yi |