No luck with solaris yet. A bug was posted on this too; it's still open. What we need is someone with Solaris experience to make an a-to-d file like the one for sun4m or the linux or FreeBSD ones. I don't expect that should be too much trouble for someone, and hopefully a volunteer will turn up :)
kevin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At least if you are using Solaris 7 x86 (called Intel Platform Edition by Sun peoples), and have an license of the Open Sound System, your could use the AD-interface of Linux.
But in order to build Sphinx-II on Solaris 7 x86 with Linux AD-interface, you should pass "-Dlinux" to your compiler. And you have to patch at least two files:
1. Before including <sys/soundcard.h> in ad_i386_linux.c in the src/libsphinx2 directory , you must undefine "linux" by "#undef linux", and redefine this to 1 again by "#define linux 1" after the "#include <sys/soundcard.h>" preprocessor di
rective (this is a hack, and please verify that the system can actually find your <sys/soundcard.h> somewere).
2. You have to include the Header files <sys/filio.h> in the files src/examples/clicore.c and src/examples/srvcore.c, since FION... symbols are only defined in sys/filio.h on Solaris 7 (This is a common problem also existing in most GNU sof
twares).
Since I have no SPARC hardware, this is all I can tell about Sphinx-II experinces on Solaris.
Yue Shi Lai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any special instructions for building on Solaris?
Right now I'm getting stuck at:
I../../src/examples/ -I/usr/local/include -g -O2 -c tty-continuous.c
/bin/sh ../../libtool --mode=link gcc -g -O2 -s -o sphinx2-continuous tty-continuous.o ../../src/libsphinx2/.libs/libsphinx2.a -lm
mkdir .libs
gcc -g -O2 -s -o sphinx2-continuous tty-continuous.o ../../src/libsphinx2/.libs/libsphinx2.a -lm
tty-continuous.o: In function `utterance_loop':
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:128: undefined reference to `ad_read'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:128: undefined reference to `cont_ad_init'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:128: undefined reference to `ad_read'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:130: undefined reference to `ad_start_rec'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:132: undefined reference to `cont_ad_calib'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:141: undefined reference to `cont_ad_read'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:161: undefined reference to `cont_ad_read'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:190: undefined reference to `ad_stop_rec'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:191: undefined reference to `ad_read'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:192: undefined reference to `cont_ad_reset'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:211: undefined reference to `ad_start_rec'
/afs/sipb.mit.edu/project/outland/arch/sun4x_56/build/sphinx2-0.1/src/examples/tty-continuous.c:215: undefined reference to `cont_ad_close'
No luck with solaris yet. A bug was posted on this too; it's still open. What we need is someone with Solaris experience to make an a-to-d file like the one for sun4m or the linux or FreeBSD ones. I don't expect that should be too much trouble for someone, and hopefully a volunteer will turn up :)
kevin
I'm looking to see if the binaries stay compatible.
At least if you are using Solaris 7 x86 (called Intel Platform Edition by Sun peoples), and have an license of the Open Sound System, your could use the AD-interface of Linux.
But in order to build Sphinx-II on Solaris 7 x86 with Linux AD-interface, you should pass "-Dlinux" to your compiler. And you have to patch at least two files:
1. Before including <sys/soundcard.h> in ad_i386_linux.c in the src/libsphinx2 directory , you must undefine "linux" by "#undef linux", and redefine this to 1 again by "#define linux 1" after the "#include <sys/soundcard.h>" preprocessor di
rective (this is a hack, and please verify that the system can actually find your <sys/soundcard.h> somewere).
2. You have to include the Header files <sys/filio.h> in the files src/examples/clicore.c and src/examples/srvcore.c, since FION... symbols are only defined in sys/filio.h on Solaris 7 (This is a common problem also existing in most GNU sof
twares).
Since I have no SPARC hardware, this is all I can tell about Sphinx-II experinces on Solaris.
Yue Shi Lai