| Michael Gogins wrote:
>What is your operating system, what is your compiler?
>
>Can you post your custom.py and scons log?
>
>Also, the actual directory tree of opcodes/Loris?
>
>Regards,
>Mike
>
>-----Original Message-----
>From: Hector Centeno-Garcia
>Sent: Nov 19, 2005 11:43 PM
>To: csound@lists.bath.ac.uk
>Subject: [Csnd] building loris opcodes in Linux
>
>Hi,
>
>I was wondering if someone here could help me with building the Loris
>opcodes for Csound 5 using Linux. I've downloaded the Loris package,
>copied the contents into the Opcodes/Loris folder (also copied the
>lorisgens5.c and lorisgens5.h files from the csound CVS into the
>Loris/src folder and renamed them by removing the 5) and done a
>./configure inside that folder. I'm asking scons to build the Loris
>opcodes but after finishing compiling I don't get any loris library file
>and no Loris opcode is recognized.
>
>Thanks in advance,
>
>
>Hectorti
>
>
Thanks for your reply. I'm using Ubuntu Linux Breezy and this is the
output of gcc -v:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared
--with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
My custom.py (including the Linux part only):
import sys
customCPPPATH = []
customCCFLAGS = []
customCXXFLAGS = []
customLIBS = []
customLIBPATH = []
customSHLINKFLAGS = []
customSWIGFLAGS = []
if sys.platform[:5] == 'linux':
platform = 'linux'
customCPPPATH.append('/usr/include/python2.4')
customLIBPATH.append('/usr/lib/python2.4/config')
customCPPPATH.append('/usr/include/tcl8.4')
customLIBPATH.append('/usr/include/tcl8.4')
customCPPPATH.append('/usr/include/lua50')
customLIBPATH.append('/usr/include/lua50')
customCPPPATH.append('/usr/local/include/lo')
customLIBPATH.append('/usr/local/include/lo')
I couldn't find any scons log. The build ends without any errors so I
don't know if maybe thats why there is no log at the end. I found
config.log and the contents are:
file /usr/lib/scons/SCons/Environment.py,line 1019:
Configure( confdir = .sconf_temp )
Checking for C header file stdio.h... scons: `.sconf_temp/conftest_0.c'
is up to date.
scons: `.sconf_temp/conftest_0.o' is up to date.
yes
Checking for C header file sndfile.h... scons:
`.sconf_temp/conftest_1.c' is up to date.
scons: `.sconf_temp/conftest_1.o' is up to date.
yes
Checking for C header file portaudio.h... scons:
`.sconf_temp/conftest_2.c' is up to date.
scons: `.sconf_temp/conftest_2.o' is up to date.
yes
Checking for C header file portmidi.h... scons:
`.sconf_temp/conftest_3.c' is up to date.
scons: `.sconf_temp/conftest_3.o' is up to date.
yes
Checking for C++ header file FL/Fl.H... scons:
`.sconf_temp/conftest_4.cpp' is up to date.
scons: `.sconf_temp/conftest_4.o' is up to date.
yes
Checking for C++ header file boost/any.hpp... scons:
`.sconf_temp/conftest_5.cpp' is up to date.
scons: `.sconf_temp/conftest_5.o' is up to date.
yes
Checking for C header file alsa/asoundlib.h... scons:
`.sconf_temp/conftest_6.c' is up to date.
scons: `.sconf_temp/conftest_6.o' is up to date.
yes
Checking for C header file jack/jack.h... scons:
`.sconf_temp/conftest_7.c' is up to date.
scons: `.sconf_temp/conftest_7.o' is up to date.
yes
Checking for C header file lo/lo.h... scons: `.sconf_temp/conftest_8.c'
is up to date.
scons: `.sconf_temp/conftest_8.o' is up to date.
yes
Checking for C++ header file Opcodes/stk/include/Stk.h... scons:
`.sconf_temp/conftest_9.cpp' is up to date.
g++ -fexceptions -Wall -g -gstabs -O2 -DLINUX -DPIPES -DBETA
-DUSE_DOUBLE -I. -IH -I/usr/include/python2.4 -I/usr/include/tcl8.4
-I/usr/include/lua50 -I/usr/local/include/lo -I/usr/local/include
-I/usr/include -I/usr/X11R6/include -c -o .sconf_temp/conftest_9.o
.sconf_temp/conftest_9.cpp
.sconf_temp/conftest_9.cpp:2:37: error: Opcodes/stk/include/Stk.h: No
such file or directory
scons: *** [.sconf_temp/conftest_9.o] Error 1
no
Failed program was:
1:
2: #include
3:
Error message: failed to compile test program
Checking for C header file m_pd.h... scons: `.sconf_temp/conftest_10.c'
is up to date.
scons: `.sconf_temp/conftest_10.o' is up to date.
yes
Checking for C header file tcl.h... scons: `.sconf_temp/conftest_11.c'
is up to date.
scons: `.sconf_temp/conftest_11.o' is up to date.
yes
Checking for C header file lua.h... scons: `.sconf_temp/conftest_12.c'
is up to date.
scons: `.sconf_temp/conftest_12.o' is up to date.
yes
Checking for C header file Python.h... scons:
`.sconf_temp/conftest_13.c' is up to date.
scons: `.sconf_temp/conftest_13.o' is up to date.
yes
Checking for C++ header file jni.h... scons:
`.sconf_temp/conftest_14.cpp' is up to date.
g++ -fexceptions -Wall -g -gstabs -O2 -DLINUX -DPIPES -DBETA
-DUSE_DOUBLE -I. -IH -I/usr/include/python2.4 -I/usr/include/tcl8.4
-I/usr/include/lua50 -I/usr/local/include/lo -I/usr/local/include
-I/usr/include -I/usr/X11R6/include -c -o .sconf_temp/conftest_14.o
.sconf_temp/conftest_14.cpp
.sconf_temp/conftest_14.cpp:2:17: error: jni.h: No such file or directory
scons: *** [.sconf_temp/conftest_14.o] Error 1
no
Failed program was:
1:
2: #include
3:
Error message: failed to compile test program
Checking for C header file io.h... scons: `.sconf_temp/conftest_15.c' is
up to date.
gcc -Wall -g -gstabs -O2 -DLINUX -DPIPES -DBETA -DUSE_DOUBLE -I. -IH
-I/usr/include/python2.4 -I/usr/include/tcl8.4 -I/usr/include/lua50
-I/usr/local/include/lo -I/usr/local/include -I/usr/include
-I/usr/X11R6/include -c -o .sconf_temp/conftest_15.o
.sconf_temp/conftest_15.c
.sconf_temp/conftest_15.c:2:16: error: io.h: No such file or directory
scons: *** [.sconf_temp/conftest_15.o] Error 1
no
Failed program was:
1:
2: #include
3:
Error message: failed to compile test program
Checking for C header file fcntl.h... scons: `.sconf_temp/conftest_16.c'
is up to date.
scons: `.sconf_temp/conftest_16.o' is up to date.
yes
Checking for C header file unistd.h... scons:
`.sconf_temp/conftest_17.c' is up to date.
scons: `.sconf_temp/conftest_17.o' is up to date.
yes
Checking for C header file stdint.h... scons:
`.sconf_temp/conftest_18.c' is up to date.
scons: `.sconf_temp/conftest_18.o' is up to date.
yes
Checking for C header file sys/time.h... scons:
`.sconf_temp/conftest_19.c' is up to date.
scons: `.sconf_temp/conftest_19.o' is up to date.
yes
Checking for C header file sys/types.h... scons:
`.sconf_temp/conftest_20.c' is up to date.
scons: `.sconf_temp/conftest_20.o' is up to date.
yes
Checking for C header file termios.h... scons:
`.sconf_temp/conftest_21.c' is up to date.
scons: `.sconf_temp/conftest_21.o' is up to date.
yes
Checking for C header file dirent.h... scons:
`.sconf_temp/conftest_22.c' is up to date.
scons: `.sconf_temp/conftest_22.o' is up to date.
yes
Checking for C header file Opcodes/Loris/src/loris.h... scons:
`.sconf_temp/conftest_23.c' is up to date.
scons: `.sconf_temp/conftest_23.o' is up to date.
yes
Checking for C header file fftw3.h... scons: `.sconf_temp/conftest_24.c'
is up to date.
scons: `.sconf_temp/conftest_24.o' is up to date.
yes
Checking for C header file fluidsynth.h... scons:
`.sconf_temp/conftest_25.c' is up to date.
gcc -Wall -g -gstabs -O2 -DLINUX -DPIPES -DHAVE_FCNTL_H -DHAVE_UNISTD_H
-DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H
-DHAVE_DIRENT_H -DBETA -DUSE_DOUBLE -I. -IH -I/usr/include/python2.4
-I/usr/include/tcl8.4 -I/usr/include/lua50 -I/usr/local/include/lo
-I/usr/local/include -I/usr/include -I/usr/X11R6/include -c -o
.sconf_temp/conftest_25.o .sconf_temp/conftest_25.c
.sconf_temp/conftest_25.c:2:24: error: fluidsynth.h: No such file or
directory
scons: *** [.sconf_temp/conftest_25.o] Error 1
no
Failed program was:
1:
2: #include
3:
Error message: failed to compile test program
The Loris folder:
csound5/Opcodes/Loris$ ls -l
total 1620
-rw-r--r-- 1 hector hector 257658 2005-11-03 18:05 aclocal.m4
-rw-r--r-- 1 hector hector 177 2001-09-19 01:40 AUTHORS
drwxr-xr-x 2 hector hector 4096 2005-11-04 00:02 config
-rw-r--r-- 1 hector hector 3327 2005-11-19 22:55 config.h
-rw-r--r-- 1 hector hector 3086 2005-11-03 18:14 config.h.in
-rw-r--r-- 1 hector hector 46832 2005-11-19 22:55 config.log
-rwxr-xr-x 1 hector hector 40428 2005-11-19 22:55 config.status
-rwxr-xr-x 1 hector hector 847011 2005-11-03 18:06 configure
-rw-r--r-- 1 hector hector 13952 2005-11-03 18:05 configure.ac
-rw-r--r-- 1 hector hector 17982 2001-09-12 02:19 COPYING
drwxr-xr-x 2 hector hector 4096 2005-11-19 22:55 csound
drwxr-xr-x 2 hector hector 4096 2005-10-03 13:37 CVS
drwxr-xr-x 2 hector hector 4096 2005-11-19 22:55 doc
-rw-r--r-- 1 hector hector 7831 2001-09-12 02:19 INSTALL
-rwxr-xr-x 1 hector hector 206426 2005-11-19 22:54 libtool
-rw-r--r-- 1 hector hector 39872 2005-08-31 18:27 lorisgens5.C
-rw-r--r-- 1 hector hector 3027 2005-08-14 09:53 lorisgens5.h
-rw-r--r-- 1 hector hector 21376 2005-11-19 22:55 Makefile
-rw-r--r-- 1 hector hector 1345 2005-11-03 16:00 Makefile.am
-rw-r--r-- 1 hector hector 21471 2005-11-03 18:31 Makefile.in
-rw-r--r-- 1 hector hector 8304 2005-05-28 09:00 morphdemo.py
-rw-r--r-- 1 hector hector 23617 2005-11-03 23:46 NEWS
-rw-r--r-- 1 hector hector 3468 2004-05-12 23:33 README
drwxr-xr-x 3 hector hector 4096 2005-11-19 22:55 scripting
drwxr-xr-x 3 hector hector 4096 2005-11-19 22:58 src
-rw-r--r-- 1 hector hector 23 2005-11-19 22:55 stamp-h1
drwxr-xr-x 3 hector hector 4096 2005-11-19 22:55 test
-rw-r--r-- 1 hector hector 662 2005-03-31 19:25 THANKS
-rw-r--r-- 1 hector hector 3711 2005-05-28 09:00 trymorph.csd
drwxr-xr-x 3 hector hector 4096 2005-11-19 22:55 utils
and the src folder:
csound5/Opcodes/Loris/src$ ls -l
total 1364
-rw-r--r-- 1 hector hector 25810 2004-07-29 15:05 AiffData.C
-rw-r--r-- 1 hector hector 12123 2004-07-29 15:05 AiffData.h
-rw-r--r-- 1 hector hector 15042 2004-12-18 00:21 AiffFile.C
-rw-r--r-- 1 hector hector 12256 2005-11-03 15:46 AiffFile.h
-rw-r--r-- 1 hector hector 25576 2005-04-23 22:18 Analyzer.C
-rw-r--r-- 1 hector hector 12185 2004-12-18 00:21 Analyzer.h
-rw-r--r-- 1 hector hector 10482 2004-07-29 15:05 AssociateBandwidth.C
-rw-r--r-- 1 hector hector 3699 2004-07-29 15:05 AssociateBandwidth.h
-rw-r--r-- 1 hector hector 3645 2004-12-18 00:21 Breakpoint.C
-rw-r--r-- 1 hector hector 1501 2005-04-25 02:29 BreakpointEnvelope.h
-rw-r--r-- 1 hector hector 4414 2004-12-18 00:21 Breakpoint.h
-rw-r--r-- 1 hector hector 2642 2004-07-29 15:05 BreakpointUtils.C
-rw-r--r-- 1 hector hector 5014 2004-07-29 15:05 BreakpointUtils.h
-rw-r--r-- 1 hector hector 6301 2005-01-03 14:36 Channelizer.C
-rw-r--r-- 1 hector hector 9784 2005-01-14 19:22 Channelizer.h
-rw-r--r-- 1 hector hector 6380 2005-06-14 17:35 Collator.C
-rw-r--r-- 1 hector hector 13459 2005-11-03 16:19 Collator.h
-rw-r--r-- 1 hector hector 9384 2004-12-22 16:04 Dilator.C
-rw-r--r-- 1 hector hector 15529 2005-01-13 14:01 Dilator.h
-rw-r--r-- 1 hector hector 10280 2005-04-29 17:13 Distiller.C
-rw-r--r-- 1 hector hector 14235 2005-05-03 12:39 Distiller.h
-rw-r--r-- 1 hector hector 5693 2005-02-04 13:44 Endian.C
-rw-r--r-- 1 hector hector 2035 2004-05-26 14:45 Endian.h
-rw-r--r-- 1 hector hector 1583 2005-11-03 15:37 Envelope.C
-rw-r--r-- 1 hector hector 2527 2005-11-03 15:38 Envelope.h
-rw-r--r-- 1 hector hector 2680 2005-01-18 12:41 Exception.C
-rw-r--r-- 1 hector hector 11201 2005-01-18 12:41 Exception.h
-rw-r--r-- 1 hector hector 3749 2004-07-29 15:05 Filter.C
-rw-r--r-- 1 hector hector 5008 2004-07-29 15:05 Filter.h
-rw-r--r-- 1 hector hector 10969 2005-07-28 02:10 FourierTransform.C
-rw-r--r-- 1 hector hector 7469 2005-01-18 12:43 FourierTransform.h
-rwxr-xr-x 1 hector hector 9833 2005-04-25 02:29 FrequencyReference.C
-rwxr-xr-x 1 hector hector 3929 2005-04-25 02:29 FrequencyReference.h
-rw-r--r-- 1 hector hector 14569 2005-07-29 22:19 Fundamental.C
-rw-r--r-- 1 hector hector 10696 2005-11-03 14:34 Fundamental.h
-rw-r--r-- 1 hector hector 4535 2004-07-29 15:05 ieee.c
-rw-r--r-- 1 hector hector 1964 2004-05-05 00:03 ieee.h
-rw-r--r-- 1 hector hector 14740 2004-07-29 15:05 ImportLemur.C
-rw-r--r-- 1 hector hector 2503 2004-07-29 15:05 ImportLemur.h
-rw-r--r-- 1 hector hector 5622 2005-11-03 15:10 KaiserWindow.C
-rw-r--r-- 1 hector hector 3194 2005-11-03 15:19 KaiserWindow.h
-rw-r--r-- 1 hector hector 4238 2005-04-25 02:29 LinearEnvelope.C
-rw-r--r-- 1 hector hector 4721 2005-11-03 14:58 LinearEnvelope.h
-rw-r--r-- 1 hector hector 23054 2005-04-23 22:18 lorisAnalyzer_pi.C
-rw-r--r-- 1 hector hector 6365 2005-04-25 02:29 lorisBpEnvelope_pi.C
-rw-r--r-- 1 hector hector 3919 2005-01-13 14:27 lorisException_pi.C
-rw-r--r-- 1 hector hector 3055 2004-07-29 15:05 lorisException_pi.h
-rw-r--r-- 1 hector hector 39872 2005-08-31 18:27 lorisgens.C
-rw-r--r-- 1 hector hector 36724 2005-11-03 15:11 lorisgens.C.bak
-rw-r--r-- 1 hector hector 3027 2005-08-14 09:53 lorisgens.h
-rw-r--r-- 1 hector hector 2842 2005-11-03 15:11 lorisgens.h.bak
-rw-r--r-- 1 hector hector 34845 2005-11-19 22:55 loris.h
-rw-r--r-- 1 hector hector 34916 2005-08-01 03:01 loris.h.in
-rw-r--r-- 1 hector hector 29619 2005-08-25 17:42 lorisNonObj_pi.C
-rw-r--r-- 1 hector hector 21648 2005-04-23 22:18 lorisPartialList_pi.C
-rw-r--r-- 1 hector hector 19381 2005-05-05 11:52 lorisUtilities_pi.C
-rw-r--r-- 1 hector hector 64396 2005-11-19 22:55 Makefile
-rw-r--r-- 1 hector hector 3329 2005-11-03 16:14 Makefile.am
-rw-r--r-- 1 hector hector 74011 2005-11-03 18:31 Makefile.in
-rw-r--r-- 1 hector hector 5212 2004-07-29 15:05 Marker.C
-rw-r--r-- 1 hector hector 5159 2005-10-26 14:28 Marker.h
-rw-r--r-- 1 hector hector 65006 2005-10-26 14:28 Morpher.C
-rw-r--r-- 1 hector hector 25646 2005-08-25 17:42 Morpher.h
-rw-r--r-- 1 hector hector 6590 2004-07-29 15:05 NoiseGenerator.C
-rw-r--r-- 1 hector hector 2539 2004-07-29 15:05 NoiseGenerator.h
-rw-r--r-- 1 hector hector 5527 2004-07-29 15:05 Notifier.C
-rw-r--r-- 1 hector hector 4213 2004-04-30 01:25 Notifier.h
-rw-r--r-- 1 hector hector 8129 2004-07-29 15:05 Oscillator.C
-rw-r--r-- 1 hector hector 4333 2004-07-29 15:05 Oscillator.h
-rw-r--r-- 1 hector hector 9978 2004-07-29 15:05 PartialBuilder.C
-rw-r--r-- 1 hector hector 3051 2004-07-29 15:05 PartialBuilder.h
-rw-r--r-- 1 hector hector 29573 2005-10-26 15:08 Partial.C
-rw-r--r-- 1 hector hector 28083 2005-04-08 15:43 Partial.h
-rw-r--r-- 1 hector hector 2227 2004-07-29 15:05 PartialList.h
-rw-r--r-- 1 hector hector 3927 2004-07-29 15:05 PartialPtrs.h
-rw-r--r-- 1 hector hector 7851 2005-01-03 14:36 PartialUtils.C
-rw-r--r-- 1 hector hector 22946 2005-04-15 12:26 PartialUtils.h
-rw-r--r-- 1 hector hector 53 2000-12-01 02:55 README
-rw-r--r-- 1 hector hector 16915 2005-04-13 11:49 ReassignedSpectrum.C
-rw-r--r-- 1 hector hector 3008 2005-04-13 11:49 ReassignedSpectrum.h
-rwxr-xr-x 1 hector hector 3854 2005-01-20 11:46 Resampler.C
-rwxr-xr-x 1 hector hector 8979 2005-01-20 11:46 Resampler.h
-rw-r--r-- 1 hector hector 65544 2005-10-26 14:28 SdifFile.C
-rw-r--r-- 1 hector hector 9329 2005-11-03 15:40 SdifFile.h
-rw-r--r-- 1 hector hector 7801 2005-01-14 19:22 Sieve.C
-rw-r--r-- 1 hector hector 8822 2005-10-27 17:35 Sieve.h
-rw-r--r-- 1 hector hector 43830 2005-03-04 19:47 SpcFile.C
-rw-r--r-- 1 hector hector 11504 2005-03-04 19:47 SpcFile.h
-rw-r--r-- 1 hector hector 8086 2005-09-21 17:17 SpectralPeakSelector.C
-rw-r--r-- 1 hector hector 2944 2004-07-29 15:05 SpectralPeakSelector.h
-rw-r--r-- 1 hector hector 1594 2004-07-29 15:05 SpectralPeaks.h
-rw-r--r-- 1 hector hector 9392 2004-12-03 13:41 Synthesizer.C
-rw-r--r-- 1 hector hector 9651 2005-04-15 12:26 Synthesizer.h
Thank you again!
Hector |