[Cs-dev] Building Csound6
Date | 2013-05-08 09:18 |
From | PINOT Francois |
Subject | [Cs-dev] Building Csound6 |
Hello devs, I built Csound6 on Ubuntu 12.04 64 bit. The command 'csound -z' displays 1706 opcodes which is all I need to work with Csound. So I decided to switch to version 6 of Csound for production right now. The building process is much simpler with cmake than it was with scons. When I was building Csound5, I used a custom wiiuse library (v0.12). But it doesn't work anymore with Csound6. Googling around, I found this: https://github.com/rpavlik/wiiuse. It seems serious and maintained and it has development for the wii motion plus features. I built and installed the library using those commands from a build directory: cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ../wiiuse-master make sudo make install sudo ln -fs /usr/local/lib/libwiiuse.so /usr/lib/libwiiuse.so sudo ldconfig I prefer to install all my built packages into /usr/local, so I had to create the symlink for the library into /usr/lib so that cmake can find it when building Csound. The library displays as 'wiiuse v0.14.0'. I had to modify the file 'csound6/Opcodes/wiimote.c': I commented out lines 83, 85, 86, and 87, keeping line 84 'define WIIMOTE_STATE_CONNECTED (0x0008)'. It seems that this wiiuse fork reversed to the version 0.12 connection definition. It works fine with just a noticeable delay before getting the connection to the wiimote (about 10 seconds). As this fork of wiiuse seems maintained, perhaps could we recommand its use and remove the lines I commented out in wiimote.c? Regards Francois ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-08 10:25 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Building Csound6 |
Excellent! I have been a little concerned about the future of wiiuse but had not found that, although i was using v0.13. i will try to take the v0.14 and adjust as you suggest Thanks ==John ff > Hello devs, > > I built Csound6 on Ubuntu 12.04 64 bit. The command 'csound -z' displays > 1706 opcodes which is all I need to work with Csound. So I decided to > switch to version 6 of Csound for production right now. > > The building process is much simpler with cmake than it was with scons. > > When I was building Csound5, I used a custom wiiuse library (v0.12). But > it doesn't work anymore with Csound6. Googling around, I found this: > https://github.com/rpavlik/wiiuse. It seems serious and maintained and > it has development for the wii motion plus features. I built and > installed the library using those commands from a build directory: > > cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release > ../wiiuse-master > make > sudo make install > sudo ln -fs /usr/local/lib/libwiiuse.so /usr/lib/libwiiuse.so > sudo ldconfig > > I prefer to install all my built packages into /usr/local, so I had to > create the symlink for the library into /usr/lib so that cmake can find > it when building Csound. > > The library displays as 'wiiuse v0.14.0'. I had to modify the file > 'csound6/Opcodes/wiimote.c': I commented out lines 83, 85, 86, and 87, > keeping line 84 'define WIIMOTE_STATE_CONNECTED (0x0008)'. It seems > that this wiiuse fork reversed to the version 0.12 connection > definition. It works fine with just a noticeable delay before getting > the connection to the wiimote (about 10 seconds). > > As this fork of wiiuse seems maintained, perhaps could we recommand its > use and remove the lines I commented out in wiimote.c? > > Regards > > Francois > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-08 14:41 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Building Csound6 |
How about #if defined(WIIUSE_0_13) # define WIIMOTE_STATE_CONNECTED (0x0010) #else # define WIIMOTE_STATE_CONNECTED (0x0008) #endif ?? ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-08 15:06 |
From | PINOT Francois |
Subject | Re: [Cs-dev] Building Csound6 |
Sounds good to me, and it would work with wiiuse 0.12 too, if people still use it. Le 08/05/2013 15:41, jpff@cs.bath.ac.uk a écrit : > How about > > #if defined(WIIUSE_0_13) > # define WIIMOTE_STATE_CONNECTED (0x0010) > #else > # define WIIMOTE_STATE_CONNECTED (0x0008) > #endif > > ?? > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |