VoxForge
I checked the development files and they arent installed, so I tried to install pulseaudio like this:
./configure
sudo make all
sudo make install
But when I try to run ./configure, it gives me this error:
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.4 or later installed.
I tried to install different versions to see if I dont need that version of libtool, but, I get the same error.
I supose that I need to install libtool 2.4 but its difficult for me because as you know im a starter with linux. So what would you do in this case?
Do you know how to install that libtool?
--- (Edited on 12/1/2016 2:51 pm [GMT-0600] by kiguaran001) ---
Normally applications like pulseaudio are supplied with the system in two packages, the working binary and the development files. By default the binary will be installed into your system, and you only install the development files if and when required. The development files will create a binary with effort, but you don't need to do that, the binaries are already done for you, and probably installed already. Julius has probably seen that you have the binaries all right, but needs to see the development files just to pick up a few bits of extra information.
> which pulseaudio
/usr/bin/pulseaudio
> pulseaudio --version
pulseaudio 9.0-rebootstrapped
or similar will show that you have the binaries available already, they don't need to be built. Just install the development package to put the dev stuff in their proper places and try building Julius again.
--- (Edited on 2016-12-01 4:09 pm [GMT-0500] by colbec) ---
I understand what you mean, I looked for the binaries as you said and I have them installed:
which pulseaudio
/usr/bin/pulseaudio
pulseaudio --version
pulseaudio 9.0
So as you said Im trying to install the development package. I tried to install it like this;
git clone git://anongit.freedesktop.org/pulseaudio/pulseaudio
Cloning into 'pulseaudio'...
remote: Counting objects: 61738, done.
remote: Compressing objects: 100% (10477/10477), done.
Receiving objects: 100% (61738/61738), 11.18 MiB | 1.20 MiB/s, done.
remote: Total 61738 (delta 51643), reused 61143 (delta 51191)
Resolving deltas: 100% (51643/51643), done.
Checking connectivity... done.
So I think it worked but julius isnt working still. So I dont know if I have installed the development package properly or I still have to do something else whit that development packages.
--- (Edited on 12/2/2016 4:38 am [GMT-0600] by kiguaran001) ---
Two problems:
1. when you clone from git you are certainly putting some development files onto your computer, but they end up in the wrong place (home partition) where they should be located in a place that the compiler can find them during the Julius make process. First try to see if your package manager can find the development files and install from there. Then they will automatically go into the right place for Julius compile to find them.
Here is the beginning of the file list fetched from my libpulse-devel via my package manager Yast: p, li { white-space: pre-wrap; }
/usr/include/pulse
/usr/include/pulse/cdecl.h
/usr/include/pulse/channelmap.h
/usr/include/pulse/context.h
/usr/include/pulse/def.h
...
2. This is only potentially a problem: by fetching development stuff from git you have a possibility that you end up with different files than were used to create the running binary already on your system, in which case Julius might compile, but then start throwing errors when it accesses the binaries.
--- (Edited on 2016-12-02 6:09 am [GMT-0500] by colbec) ---
Im sorry colbec I understand what you are saying about the git files but, I dont understant the command you suggested me, I dont understand how to fetch via the package manager and libpulse.
I have installed another libpulse-dev without using git like this:
sudo apt-get update
sudo apt-get install libpulse-dev
It got installed well but julius cant find any pulseaudio header still
--- (Edited on 12/2/2016 6:06 am [GMT-0600] by kiguaran001) ---
apt-get is your package manager. Evidently you are using Ubuntu or related distro. I don't have that distro so maybe someone who does can provide specific help. Fetching that dev package with apt-get will ensure that you have the right version of the devel files and should put them in the right place in your system files.
Next thing: in the output from your command "./configure ... --with-mictype=pulseaudio" you should see some lines like
...
checking for esd.h... no
checking for pa_simple_new in -lpulse-simple... yes
checking pulse/simple.h usability... yes
checking pulse/simple.h presence... yes
checking for pulse/simple.h... yes
checking for DatLink/NetAudio support... no
...
what do you see?
Do you now have a file in your system "/usr/include/pulse/simple.h"? If not, where did the devel package put it?
--- (Edited on 2016-12-02 7:49 am [GMT-0500] by colbec) ---
yes you are right im using Ubuntu.
The simple.h file is as you said in /usr/include/pulse/simple.h
This is the output when I run this command:
~/julius-4.2.2$ ./configure --prefix=/usr --with-mictype=pulseaudio
loading cache ./config.cache
checking host system type... x86_64-unknown-linux
checking host specific optimization flag... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
creating ./config.status
creating Makefile
creating mkbingram/Makefile
creating mkbinhmm/Makefile
creating adinrec/Makefile
creating adintool/Makefile
creating mkss/Makefile
creating generate-ngram/Makefile
creating jclient-perl/Makefile
creating man/Makefile
configuring in mkgshmm
running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for perl... (cached) /usr/bin/perl
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
creating ./config.status
creating Makefile
creating mkgshmm
configuring in gramtools
running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... x86_64-unknown-linux
checking host-specific optimization flag... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking host specific optimization flag... skipped
checking for rm... (cached) /bin/rm
checking for perl... (cached) /usr/bin/perl
checking for iconv... (cached) /usr/bin/iconv
checking for Jcode module in perl... Can't locate Jcode.pm in @INC (you may need to install the Jcode module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.2 /usr/local/share/perl/5.22.2 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .).
BEGIN failed--compilation aborted.
configure: warning: no Jcode module in perl, gram2sapixml.pl may not work
checking for readline/readline.h... (cached) no
checking for malloc.h... (cached) yes
creating ./config.status
creating Makefile
creating mkdfa/Makefile
creating mkdfa/mkdfa.pl
creating mkdfa/mkfa-1.44-flex/Makefile
creating dfa_minimize/Makefile
creating generate/Makefile
creating accept_check/Makefile
creating nextword/Makefile
creating yomi2voca/Makefile
creating yomi2voca/yomi2voca.pl
creating gram2sapixml/Makefile
creating gram2sapixml/gram2sapixml.pl
creating dfa_determinize/Makefile
configuring in jcontrol
running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... x86_64-unknown-linux
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
creating ./config.status
creating Makefile
configuring in julius
running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... x86_64-unknown-linux
checking host-specific optimization flag... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for winnls.h... (cached) no
checking for iconv... (cached) yes
checking for iconv declaration... (cached)
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for charset conversion... iconv
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
configuring in libjulius
running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... x86_64-unknown-linux
checking host-specific optimization flag... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for ar... (cached) /usr/bin/ar
checking for ranlib... (cached) ranlib
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking return type of signal handlers... (cached) void
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for POSIX thread library in -lpthread... yes
creating ./config.status
creating Makefile
creating libjulius-config
creating libjulius-config-dist
creating src/version.c
creating doxygen.conf.ver
creating include/julius/config.h
include/julius/config.h is unchanged
configuring in libsent
running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... x86_64-unknown-linux
checking host specific optimization flag... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for rm... (cached) /bin/rm
checking for ar... (cached) /usr/bin/ar
checking for ranlib... (cached) ranlib
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for working const... (cached) yes
checking for socklen_t... yes
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for strcasecmp... (cached) yes
checking for sleep... (cached) yes
checking for alsa/asoundlib.h... (cached) no
checking for sys/asoundlib.h... (cached) no
checking for sys/soundcard.h... (cached) yes
checking for esd.h... (cached) no
checking for pa_simple_new in -lpulse-simple... (cached) no
configure: error: no PulseAudio header!
configure: error: ./configure failed for libsent
The reason for de error might be this?
BEGIN failed--compilation aborted.
configure: warning: no Jcode module in perl, gram2sapixml.pl may not work
what do you think about?
--- (Edited on 12/3/2016 5:56 am [GMT-0600] by Visitor) ---
The jcode error I think only refers to the perl script it relates to, not to the overall make of Julius.
I don't know why your system cannot see the simple.h - it is in the right place. You might check that the privileges are correct, that is that your compile is allowed to get those files.
My hope is that someone with knowledge of the situation will respond here, or if not you might consider posting a message at https://github.com/julius-speech/julius/issues where you will be talking to more Julius users, possibly some with Ubuntu.
--- (Edited on 2016-12-03 3:13 pm [GMT-0500] by colbec) ---
There is linking error with libpulse-simple, most likely you screwed something in your system.
To get more information and furhter help you need to look inside/share the config.log file from the julius root.
--- (Edited on 12/4/2016 11:16 [GMT+0300] by nsh) ---