VoxForge
Hello,
I am trying to compile HTK-3.4 on Ubuntu 7.10 but I get this error:
make all
...
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libX11.a when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [HSLab] Error 1
make[1]: Leaving directory `/home/serg/bin/htk/HTKTools'
make: *** [htktools] Error 1
Any idea what might be wrong?
Thanks in advance,
--Sergey
I have found that it is because HTK requires 32 bit libraries. I have tryed to install them using getlibs from http://ubuntuforums.org/showthread.php?t=474790. It solved the libx11-dev. But then I had a new problem - lib32gcc1 which it could not find in repositories.
I will try to install a 32 bit version of Ubuntu.
Hi Sergey,
I compiled HTK v3.4 on 64-bit Fedora (AMD64) with no problems. I am running gcc version 4.1.1 20061011 (Red Hat 4.1.1-30).
I think your problem might be that need the dev version of libX11, or you have the 32-bit version of libX11 installed and you need the 64-bit version, or both (i.e. you need the 64-bit dev version of lbX11).
Note that I think that libX11 is only required for HSLab - the HTK graphical audio recorder. You don't really need this if you are recording your voice with Audacity. You could just remove HSLab from your make files and try compiling without it.
Ken
I became the same error when trying to install under Suse x64.
For me the problem was solved installing 32-bit compatibility of the compiler. In my case:
zypper install gcc45-32bit
Therefore I did not need the 32-bit console.
I have a 64-bit Debian squeeze machine, and configure was creating makefiles with -m32. The right thing to do would be to fix that, but in the meantime this worked as a step between configure and make:
for mf in `find -type f -name Makefile -exec egrep -q '[-]m[0-9]' {} \; -print`; do echo $mf; sed -i.bak '/\W-m32 /{h;s/^/#/p;g;s/-m32 //}' $mf; done
(in a nutshell: in each Makefile, remove the -m32 option)
I was able to build --with-x after the above adjustment.
We'll see if the stuff runs!