[Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit
Date | 2013-08-01 14:21 |
From | Anders Genell |
Subject | [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
Dear Devs! I just cloned Csound 6 from git and built using cmake without any extra arguments (i.e. mkdir build; cd build; cmake ..; make). I noticed from the cmake output that Lua opcodes are not built because Lua libraries could not be found. I have the Lua5.1 headers in /usr/include/lua5.1 and I have Swig2.0 installed. Are there any more libs I need, or some linking I need to do? I am mainly building to update my nano editor syntax highlighting config file to Csound 6, preferably with all bells and whistles, so if there is a general instruction to build an as complete version as possible of Csound 6 on (Ubuntu) Linux, that would be most welcome! Best regards, Anders ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-08-01 14:46 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
Attachments | None None |
Needs LuaJIT, not standard lua. On Aug 1, 2013 9:22 AM, "Anders Genell" <anders.genell@gmail.com> wrote:
Dear Devs! |
Date | 2013-08-01 14:48 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
I think it needs LUAjit rather than 5.1 But Mike is the expert > Dear Devs! > > I just cloned Csound 6 from git and built using cmake without any extra > arguments (i.e. mkdir build; cd build; cmake ..; make). I noticed from the > cmake output that Lua opcodes are not built because Lua libraries could > not be found. I have the Lua5.1 headers in /usr/include/lua5.1 and I have > Swig2.0 installed. Are there any more libs I need, or some linking I need > to do? > > I am mainly building to update my nano editor syntax highlighting config > file to Csound 6, preferably with all bells and whistles, so if there is a > general instruction to build an as complete version as possible of Csound > 6 on (Ubuntu) Linux, that would be most welcome! > > Best regards, > Anders > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-08-01 15:03 |
From | Anders Genell |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
Attachments | None None |
Aha, thank you! But I do have /usr/include/lua/luajit-2.0 as well. Do I need to remove lua5.1? Also, Faust opcodes are not included - should I install some libs for those as well? I have done apt-get build-dep csound, so most dependencies are met. Maybe there could be some info added to the wiki page about building Csound6 for including these "extras"? Regards, /Anders
|
Date | 2013-08-01 15:03 |
From | Felipe Sateler |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
On Thu, Aug 1, 2013 at 9:46 AM, Michael Gogins |
Date | 2013-08-01 16:25 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
Attachments | None None |
Precisely and completely: The Lua interface can work with either standard Lua or LuaJIT. The Lua opcodes can only work with LuaJIT, but not with standard Lua.
If you use LuaJIT, you must make sure you link with the LuaJIT shared library, not the standard Lua shared library. The easiest way to do this is to remove the Lua library and use its name for the LuaJIT shared library. make install for LuaJIT does not do this by default but you can do it with a symbolic link.
=========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Thu, Aug 1, 2013 at 10:03 AM, Felipe Sateler <fsateler@gmail.com> wrote:
|
Date | 2013-08-01 16:58 |
From | Anders Genell |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
Attachments | None None |
Well, it's the opcodes I'm trying to build so LuaJit it is. I have linked luajit-2.0 to lua5.1 in /usr/include lrwxrwxrwx 1 root root 11 Aug 1 17:48 /usr/include/lua5.1 -> luajit-2.0/ /usr/include/luajit-2.0: total 40 -rw-r--r-- 1 root root 5547 Jan 3 2012 lauxlib.h -rw-r--r-- 1 root root 4127 Jan 3 2012 luaconf.h -rw-r--r-- 1 root root 11686 Jan 3 2012 lua.h -rw-r--r-- 1 root root 135 Jan 3 2012 lua.hpp -rw-r--r-- 1 root root 2585 Jan 3 2012 luajit.h -rw-r--r-- 1 root root 1113 Jan 3 2012 lualib.h but it is still not found by cmake: -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- /home/lillamy/src/csound6-git LIBRARY INSTALL DIR: lib -- Not using Custom.cmake file. -- BUILD_BIN_DIR set to /home/lillamy/src/csound6-git/csound6 -- BUILD_LIB_DIR set to /home/lillamy/src/csound6-git/csound6 -- BUILD_PLUGINS_DIR set to /home/lillamy/src/csound6-git/csound6 -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- Looking for libintl.h -- Looking for libintl.h - found -- Looking for C++ include eigen3/Eigen/Dense -- Looking for C++ include eigen3/Eigen/Dense - not found -- Found Gettext: /usr/bin/msgmerge -- Looking for lrint in m -- Looking for lrint in m - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for io.h -- Looking for io.h - not found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for termios.h -- Looking for termios.h - found -- Looking for values.h -- Looking for values.h - found -- Looking for winsock.h -- Looking for winsock.h - not found -- Looking for sys/socket.h -- Looking for sys/socket.h - found -- Looking for dirent.h -- Looking for dirent.h - found -- USE_LRINT is enabled -- Found FLEX: /usr/bin/flex (found version "2.5.35") -- Found BISON: /usr/bin/bison (found version "2.5") -- Looking for pthread_spin_lock -- Looking for pthread_spin_lock - found -- Looking for pthread_barrier_init -- Looking for pthread_barrier_init - found -- USE_OPEN_MP is enabled -- Not building with score parser -- Not building with new parser debugging -- Building with multicore -- USE_GETTEXT is enabled -- Using GNU Gettext -- Building on Linux -- Looking for strtok_r -- Looking for strtok_r - found -- Looking for strtod_l -- Looking for strtod_l - found -- Boost version: 1.46.1 -- Looking for ladspa.h -- Looking for ladspa.h - found -- Looking for fluidsynth.h -- Looking for fluidsynth.h - found -- Looking for jack/jack.h -- Looking for jack/jack.h - found -- Looking for C++ include gmm/gmm.h -- Looking for C++ include gmm/gmm.h - found -- Looking for lo/lo.h -- Looking for lo/lo.h - found -- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.3.4") -- Found PNG: /usr/lib/i386-linux-gnu/libpng.so -- Found PythonLibs: /usr/lib/libpython2.7.so -- Looking for wiiuse.h -- Looking for wiiuse.h - not found -- Looking for p5glove.h -- Looking for p5glove.h - not found -- BUILD_CHUA_OPCODES is enabled -- BUILD_DSSI_OPCODES is enabled -- BUILD_FLUID_OPCODES is enabled -- BUILD_JACK_OPCODES is enabled -- BUILD_LINEAR_ALGEBRA_OPCODES is enabled -- BUILD_OSC_OPCODES is enabled -- BUILD_IMAGE_OPCODES is enabled -- BUILD_PYTHON_OPCODES is enabled -- LUA_LIBRARIES="LUA_LIBRARIES-NOTFOUND", so disabling BUILD_LUA_OPCODES -- BUILD_LUA_OPCODES is disabled -- WIIUSE_H="", so disabling BUILD_WIIMOTE_OPCODES -- BUILD_WIIMOTE_OPCODES is disabled -- P5GLOVE_H="", so disabling BUILD_P5GLOVE_OPCODES -- BUILD_P5GLOVE_OPCODES is disabled -- BUILD_FAUST_OPCODES is disabled -- BUILD_STK_OPCODES is enabled -- -- ## REALTIME AUDIO AND MIDI ## -- Looking for alsa/asoundlib.h -- Looking for alsa/asoundlib.h - found -- Looking for pulse/simple.h -- Looking for pulse/simple.h - found -- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/i386-linux-gnu/libX11.so -- Found FLTK: fltk_images;fltk_forms;fltk -- APPLE="", so disabling USE_COREMIDI -- COREMIDI_INCLUDE_PATH="COREMIDI_INCLUDE_PATH-NOTFOUND", so disabling USE_COREMIDI -- COREMIDI_LIBRARY="COREMIDI_LIBRARY-NOTFOUND", so disabling USE_COREMIDI -- COREFOUNDATION_LIBRARY="COREFOUNDATION_LIBRARY-NOTFOUND", so disabling USE_COREMIDI -- USE_COREMIDI is disabled -- APPLE="", so disabling USE_AUDIOUNIT -- COREAUDIO_INCLUDE_PATH="COREAUDIO_INCLUDE_PATH-NOTFOUND", so disabling USE_AUDIOUNIT -- COREAUDIO_LIBRARY="COREAUDIO_LIBRARY-NOTFOUND", so disabling USE_AUDIOUNIT -- AUDIOUNIT_INCLUDE_PATH="AUDIOUNIT_INCLUDE_PATH-NOTFOUND", so disabling USE_AUDIOUNIT -- AUDIOUNIT_LIBRARY="AUDIOUNIT_LIBRARY-NOTFOUND", so disabling USE_AUDIOUNIT -- COREFOUNDATION_LIBRARY="COREFOUNDATION_LIBRARY-NOTFOUND", so disabling USE_AUDIOUNIT -- USE_AUDIOUNIT is disabled -- USE_ALSA is enabled -- USE_PULSEAUDIO is enabled -- USE_PORTAUDIO is enabled -- USE_PORTMIDI is enabled -- USE_JACK is enabled -- USE_FLTK is enabled -- BUILD_VIRTUAL_KEYBOARD is enabled -- -- Building C++ interface library -- Found SWIG: /usr/bin/swig2.0 (found suitable version "2.0.4", required is "2.0") -- Found JNI: /usr/lib/jvm/default-java/jre/lib/i386/libjawt.so -- Found Java: /usr/bin/java (found version "1.6.0.27") -- Could NOT find Lua51 (missing: LUA_LIBRARIES) -- BUILD_PYTHON_INTERFACE is enabled -- BUILD_JAVA_INTERFACE is enabled -- LUA51_FOUND="FALSE", so disabling BUILD_LUA_INTERFACE -- BUILD_LUA_INTERFACE is disabled -- Building csLadspa -- BUILD_CSBEATS is enabled -- BUILD_PD_CLASS is enabled -- BUILD_WINSOUND is disabled -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4") -- Could NOT find Lua51 (missing: LUA_LIBRARIES) -- BUILD_CSOUND_AC is disabled -- EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC_PYTHON_INTERFACE -- BUILD_CSOUND_AC_PYTHON_INTERFACE is disabled -- LUA51_FOUND="FALSE", so disabling BUILD_CSOUND_AC_LUA_INTERFACE -- EIGEN_DENSE="EIGEN_DENSE-NOTFOUND", so disabling BUILD_CSOUND_AC_LUA_INTERFACE -- BUILD_CSOUND_AC_LUA_INTERFACE is disabled -- BUILD_CSOUNDVST is disabled -- CUNIT_LIBRARY="CUNIT_LIBRARY-NOTFOUND", so disabling BUILD_TESTS -- BUILD_STATIC_LIBRARY="OFF", so disabling BUILD_TESTS -- BUILD_TESTS is disabled -- Configuring done -- Generating done
|
Date | 2013-08-03 13:51 |
From | Anders Genell |
Subject | Re: [Cs-dev] Building Csound6 from git with Lua opcodes on Ubuntu 12.04 32bit |
Attachments | None None |
To follow up, I managed to build the Lua opcodes, but not the Faust opcodes and not the wiimote or p5glove opcodes. Right now I issue the following command to build: cmake -D LUA_LIBRARIES=/usr/lib/i386-linux-gnu/libluajit-5.1.so -D LUA_INCLUDE_DIR=/usr/include/luajit-2.0/ -D EIGEN_DENSE=/usr/include/eigen3/Eigen/Dense -D BUILD_CSOUND_AC:BOOL="ON" I had to build llvm from source using cmake in order to get LLVM-config.cmake on my system, which was needed to build faust opcodes, but the faust libraries cant be found, and looking in /usr/lib/faust/ shows a number of makefiles and cpp files. How do I build against library source code? Maybe I, like Faust, need to strike a deal with the devil himself?
Where can I find the wiiuse_h and the p5glove_h files and corresponding libraries? Best regards, Anders
On Thu, Aug 1, 2013 at 5:58 PM, Anders Genell <anders.genell@gmail.com> wrote:
|