Comments

Flat
HTK comple error.
User: Sergey S.
Date: 4/12/2008 8:13 pm
Views: 9229
Rating: 35

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 

Re: HTK comple error.
User: Sergey S.
Date: 4/13/2008 5:43 am
Views: 524
Rating: 34

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.

Re: HTK comple error.
User: kmaclean
Date: 4/13/2008 9:44 am
Views: 258
Rating: 39

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 

Re: HTK comple error.
User: Sergey S.
Date: 4/16/2008 8:50 am
Views: 247
Rating: 34
Hi Ken,
Thanks for the info.
I think that Fedora is better in regard of compatibility with 32 bit libraries.
In Ubuntu there is no easy way to install a specific library version.
Someone wrote a script for this purpose but on my computer it does not work.
It gives me error:
"Failed to download file http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.2/lib32gcc1_4.2.1-5ubuntu4_i386.deb".
Instead of debugging the script I thought it would be easier to install a 32bit version of Ubuntu on another partition.
It was not very straight forward either. Fedora again is much better here too.
Unfortunately Fedora does not work very good with my motherboard, so I have to use Ubuntu.
And Ubuntu has other nice features that other distro lack, so I don't suffer much ;-)
After I configure the environment in 32 bit Ubuntu I will install the HTK and post here the result.
Thanks again,
--Sergey
Re: HTK comple error.
User: aaa
Date: 11/6/2008 9:18 am
Views: 129
Rating: 21

I became the same error, too.

Therefor, is was settled as follow.

# linux32 bash

↑ 32 bit termainal

#./configure --prefix=/home/yourname/htk

#make all

#make install

 

ok!

Re: HTK comple error.
User: georgi
Date: 6/14/2011 10:50 am
Views: 137
Rating: 18

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.

Re: HTK comple error.
User: bjb
Date: 3/3/2012 10:43 am
Views: 140
Rating: 21

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!

Re: HTK comple error.
User: emgraro
Date: 6/18/2013 8:59 am
Views: 232
Rating: 12

Thanks!


This solution was good for me too. Wink

PreviousNext