message from Alan W Black <a...@cs.cmu.edu> to festival-talk
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Jon Spriggs wrote:
message from Jon Spriggs <j...@sprig.gs> to festival-talk
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Hi all,

So, I'm back to building Festival and speech-tools. For some reason,
although I got the build to work when I posted last to the list, I
then seem to have removed it from the host, and I can't make it work
any more.

So, I ditched building it on the shared host, and I'm building it on
my laptop, and will then transfer it to the host once I'm done.

However... I successfully managed to build speech-tools (./configure
--prefix=/home/cchits/usr && make make_library) but when I try to make
festival, it can't find ncurses.

I've now build ncurses (version 5.9 - ./configure
--prefix=/home/cchits/usr && make && make install) but I can't get
festival to find it.

Here are the invocations I've used (because I'm so far out of my depth
here, that this is feeling more and more like magic):

(First try - wiped and re-unpacked all the sources)

/home/cchits/usr/_UNPACKED/ncurses-5.9$ ./configure
--prefix=/home/cchits/usr && make && make install
<snip - completes successfully>
/home/cchits/usr/_UNPACKED/ncurses-5.9$ cd ../speech-tools
/home/cchits/usr/_UNPACKED/speech-tools$ ./configure
LDFLAGS='-L/home/cchits/usr/lib' CPPFLAGS='-I/home/cchits/usr/include'
--prefix=/home/cchits/usr && make make_library
<snip - completes successfully>
/home/cchits/usr/_UNPACKED/speech-tools$ cd ../festival
/home/cchits/usr/_UNPACKED/festival$ ./configure
LDFLAGS='-L/home/cchits/usr/lib' CPPFLAGS='-I/home/cchits/usr/include'
--prefix=/home/cchits/usr && make make_library

configure: warning: LDFLAGS=-L/home/cchits/usr/lib: invalid host type
configure: warning: CPPFLAGS=-I/home/cchits/usr/include: invalid host type
configure: error: can only configure for one host and one target at a time

(This time, all of the above steps, but now removing LDFLAGS and
CPPFLAGS in the festival build)

/home/cchits/usr/_UNPACKED/speech-tools$ cd ../festival
/home/cchits/usr/_UNPACKED/festival$ ./configure
--prefix=/home/cchits/usr && make make_library

<snip - all this lot seems to build OK>


BTW You can usually get ncurses from an ncurses-dev package from what ever package management system you are usuing.

Making in directory src/main ...
making dependencies -- festival_main.cc audsp.cc festival_client.cc
gcc -c -fno-implicit-templates -O3 -Wall -I../../src/include
-I../../../speech_tools/include festival_main.cc
gcc -O3 -Wall     -o festival festival_main.o   -L../../src/lib
-lFestival -L../../../speech_tools/lib -lestools
-L../../../speech_tools/lib -lestbase -L../../../speech_tools/lib
-leststring  -lncurses   -ldl -lncurses -lm  -lstdc++ -lgcc
/usr/bin/ld: cannot find -lncurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[2]: *** [festival] Error 1
make[1]: *** [main] Error 2
make: *** [src] Error 2

(Now let's look for where the -lncurses bit is)

/home/cchits/usr/_UNPACKED/festival$ grep -R 'lncurses' *
config/systems/DebianGNULinux.mak:OS_LIBS = -ldl -lncurses

(Amend that file, so it tries to add the /home/cchits/usr/include and
/home/cchits/usr/lib directories)

/home/cchits/usr/_UNPACKED/festival$ tail -n 1 config/systems/DebianGNULinux.mak
OS_LIBS = -ldl -lncurses -L/home/cchits/usr/lib -I/home/cchits/usr/include

/home/cchits/usr/_UNPACKED/festival$ make
<snip - skipped rebuilds>
Making in directory src/main ...
gcc -O3 -Wall     -o festival festival_main.o   -L../../src/lib
-lFestival -L../../../speech_tools/lib -lestools
-L../../../speech_tools/lib -lestbase -L../../../speech_tools/lib
-leststring  -lncurses   -ldl -lncurses -lm  -lstdc++ -lgcc
/usr/bin/ld: cannot find -lncurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[2]: *** [festival] Error 1
make[1]: *** [main] Error 2
make: *** [src] Error 2

In speech_tools/config/config uncomment the lastline

# COMPILERLIBS =

And add you explicit -L PATHTOLIBNCURSES.*

That's sort of a global hammer for getting things in the LD arguments.

Alan


So it appears that my edit didn't work...

Can anyone suggest what I'm doing wrong, and maybe help me fix it?

Thanks!
--
Jon "The Nice Guy" Spriggs
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
=    University of Edinburgh's Festival Speech Synthesis System       =
= http://festvox.org/festival      Sent Via festival-t...@festvox.org =
=                           To unsubscribe mail majord...@festvox.org =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
=    University of Edinburgh's Festival Speech Synthesis System       =
= http://festvox.org/festival      Sent Via festival-t...@festvox.org =
=                           To unsubscribe mail majord...@festvox.org =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

_______________________________________________
Festlang-talk mailing list
Festlang-talk@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/festlang-talk

Reply via email to