Error compiling latest CVS. Can't find SF.h? + runtime issue
Posted: Fri Nov 27, 2009 7:20 pm
When I try and compile the latest CVS of linuxsampler I get this:
rumentResourceManager.lo -MD -MP -MF .deps/InstrumentResourceManager.Tpo -c InstrumentResourceManager.cpp -fPIC -DPIC -o .l bs/InstrumentResourceManager.o
In file included from InstrumentResourceManager.cpp:27:
InstrumentResourceManager.h:30:16: error: SF.h: No such file or directory
In file included from InstrumentResourceManager.h:33,
from InstrumentResourceManager.cpp:27:
../../common/Pool.h: In member function 'void Pool<T>::resizePool(int)':
../../common/Pool.h:485: error: 'cerr' is not a member of 'std'
In file included from InstrumentResourceManager.cpp:27:
InstrumentResourceManager.h: At global scope:
InstrumentResourceManager.h:41: error: '::sf2' has not been declared
InstrumentResourceManager.h:41: error: '::sf2' has not been declared
InstrumentResourceManager.h:41: error: template argument 1 is invalid
InstrumentResourceManager.h:41: error: invalid type in declaration before ';' token
In file included from InstrumentResourceManager.cpp:27:
InstrumentResourceManager.h:62: error: '::sf2' has not been declared
InstrumentResourceManager.h:62: error: '::sf2' has not been declared
InstrumentResourceManager.h:62: error: wrong number of template arguments (1, should be 4)
../InstrumentManagerBase.h:163: error: provided for 'template<class F, class I, class R, class S> class LinuxSampler::Instru entManagerDefaultImpl'
InstrumentResourceManager.h:68: error: 'instrument_id_t' was not declared in this scope
InstrumentResourceManager.h:68: error: template argument 1 is invalid
InstrumentResourceManager.h:68: error: template argument 2 is invalid
InstrumentResourceManager.h:69: error: 'instrument_id_t' has not been declared
InstrumentResourceManager.h:70: error: 'instrument_id_t' was not declared in this scope
InstrumentResourceManager.h:70: error: template argument 1 is invalid
InstrumentResourceManager.h:70: error: template argument 2 is invalid
InstrumentResourceManager.h:71: error: 'instrument_info_t' does not name a type
InstrumentResourceManager.h:75: error: '::sf2' has not been declared
InstrumentResourceManager.h:75: error: ISO C++ forbids declaration of 'Preset' with no type
InstrumentResourceManager.h:75: error: 'Preset' declared as a 'virtual' field
InstrumentResourceManager.h:75: error: expected ';' before '*' token
InstrumentResourceManager.h:76: error: '::sf2' has not been declared
etc etc.
I've checked the directory and SF.h isn't in the sf2/ directory. :/
Also, when I configure linuxsampler with --disable-sf2-engine, when I try and load a previously saved .lscp file, I get this in the linuxsampler terminal:
LinuxSampler 1.0.0.cvs2
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2009 Christian Schoenebeck
Detected features: MMX SSE SSE2
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG','SFZ'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed.
LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
Unloading instrument editor plugins...Segmentation fault
And Fantasia-0.9.jar spews out:
27-Nov-2009 18:18:27 org.jsampler.DefaultLSConsoleModel$LSConsoleThread run
INFO: Stream closed.
java.io.IOException: Stream closed.
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:434)
at java.net.SocketInputStream.available(SocketInputStream.java:217)
at org.jsampler.DefaultLSConsoleModel$LscpInputStream.available(DefaultLSConsoleModel.java:528)
at org.jsampler.DefaultLSConsoleModel$LSConsoleThread.processInput(DefaultLSConsoleModel.java:467)
at org.jsampler.DefaultLSConsoleModel$LSConsoleThread.run(DefaultLSConsoleModel.java:443)
Endlessly.
Any ideas what's wrong here?
Thanks.
rumentResourceManager.lo -MD -MP -MF .deps/InstrumentResourceManager.Tpo -c InstrumentResourceManager.cpp -fPIC -DPIC -o .l bs/InstrumentResourceManager.o
In file included from InstrumentResourceManager.cpp:27:
InstrumentResourceManager.h:30:16: error: SF.h: No such file or directory
In file included from InstrumentResourceManager.h:33,
from InstrumentResourceManager.cpp:27:
../../common/Pool.h: In member function 'void Pool<T>::resizePool(int)':
../../common/Pool.h:485: error: 'cerr' is not a member of 'std'
In file included from InstrumentResourceManager.cpp:27:
InstrumentResourceManager.h: At global scope:
InstrumentResourceManager.h:41: error: '::sf2' has not been declared
InstrumentResourceManager.h:41: error: '::sf2' has not been declared
InstrumentResourceManager.h:41: error: template argument 1 is invalid
InstrumentResourceManager.h:41: error: invalid type in declaration before ';' token
In file included from InstrumentResourceManager.cpp:27:
InstrumentResourceManager.h:62: error: '::sf2' has not been declared
InstrumentResourceManager.h:62: error: '::sf2' has not been declared
InstrumentResourceManager.h:62: error: wrong number of template arguments (1, should be 4)
../InstrumentManagerBase.h:163: error: provided for 'template<class F, class I, class R, class S> class LinuxSampler::Instru entManagerDefaultImpl'
InstrumentResourceManager.h:68: error: 'instrument_id_t' was not declared in this scope
InstrumentResourceManager.h:68: error: template argument 1 is invalid
InstrumentResourceManager.h:68: error: template argument 2 is invalid
InstrumentResourceManager.h:69: error: 'instrument_id_t' has not been declared
InstrumentResourceManager.h:70: error: 'instrument_id_t' was not declared in this scope
InstrumentResourceManager.h:70: error: template argument 1 is invalid
InstrumentResourceManager.h:70: error: template argument 2 is invalid
InstrumentResourceManager.h:71: error: 'instrument_info_t' does not name a type
InstrumentResourceManager.h:75: error: '::sf2' has not been declared
InstrumentResourceManager.h:75: error: ISO C++ forbids declaration of 'Preset' with no type
InstrumentResourceManager.h:75: error: 'Preset' declared as a 'virtual' field
InstrumentResourceManager.h:75: error: expected ';' before '*' token
InstrumentResourceManager.h:76: error: '::sf2' has not been declared
etc etc.
I've checked the directory and SF.h isn't in the sf2/ directory. :/
Also, when I configure linuxsampler with --disable-sf2-engine, when I try and load a previously saved .lscp file, I get this in the linuxsampler terminal:
LinuxSampler 1.0.0.cvs2
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2009 Christian Schoenebeck
Detected features: MMX SSE SSE2
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG','SFZ'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed.

LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
Unloading instrument editor plugins...Segmentation fault
And Fantasia-0.9.jar spews out:
27-Nov-2009 18:18:27 org.jsampler.DefaultLSConsoleModel$LSConsoleThread run
INFO: Stream closed.
java.io.IOException: Stream closed.
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:434)
at java.net.SocketInputStream.available(SocketInputStream.java:217)
at org.jsampler.DefaultLSConsoleModel$LscpInputStream.available(DefaultLSConsoleModel.java:528)
at org.jsampler.DefaultLSConsoleModel$LSConsoleThread.processInput(DefaultLSConsoleModel.java:467)
at org.jsampler.DefaultLSConsoleModel$LSConsoleThread.run(DefaultLSConsoleModel.java:443)
Endlessly.
Any ideas what's wrong here?
Thanks.