PDA

View Full Version : htk on ubuntu 64-bit



uniqueumang
September 30th, 2007, 11:52 PM
Hello
i am not very sure if this topic should be here but i think it is most appropriate place to have my topic.
We are making a speech recognizerusing TCL/TK and C. To assist this project we are allowed to use HTK. However I can't install HTK on 64-bit Ubuntu as it can't find files such as stubs-32.h .After close instpection I realize that since my ubuntu is 64-bit it can't be installed .

Please tell me if there is a way to install HTK on ubuntu-64bit

Thanks a lot.

j_g
October 1st, 2007, 02:11 AM
You can use 32-bit apps on 64-bit Ubuntu. But you have to make sure that (somewhere in the LIBPATH of your 64-bit OS) you have the 32-bit libraries used by a particular 32-bit app.

Here's an article about doing that with Debian. It should be applicable to Ubuntu as well:

http://www.debian-administration.org/articles/531

That article also gives links to other, more complicated methods of "reproducing a 32-bit environment on a 64-bit OS".

But of course, if you're writing an app to use some 32-bit library, then your app must also be compiled 32-bit. A 64-bit app can't use a 32-bit library, and a 32-bit app can't use a 64-bit library.

Do you want to make a 64-bit app using a particular library, but you can't find a 64-bit version of that lib? In that case, grab the 32-bit source and try to compile it on your 64-bit system. The 64-bit version of gcc you installed on your system will compile the source as 64-bit. Any "long" or "unsigned long" variables in the code will be automatically promoted (by the compiler) to 64-bit. (ie, It's as if they had been declared as LONGLONG in the source). Any pointers will automatically be compiled to 64-bit as well. "int" or "unsigned int" variables will remain 32-bit, even in the 64-bit compile. Hopefully, the code will compile straight away to a 64-bit version without any issues.

NOTE: You can compile a 32-bit on your 64-bit OS running the 64-bit version of gcc. You just have to specify an extra flag to the 64-bit gcc to tell it to spit out a 32-bit executable. So you should be able to develop a 32-bit app, using a 32-bit library, on your 64-bit system, and test it there too.

uniqueumang
October 7th, 2007, 08:06 AM
link to the article doesn't work at all

matrim33
February 13th, 2008, 04:59 PM
Hi, I'm hoping that someone will be able to help me with a problem I am having. I am trying to install HTK on my 64-bit Feisty Fawn Ubuntu, but i am running into a problem.

When I ran the Make scripts (after running ./configure) I received these two errors:

/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

After doing some research, I found that the reason I was getting these errors was because HTK was attempting to use the 64-bit versions of libX11.so and libX11.a (HTK is a 32-bit program, so this was causing a problem). I was able to get past the first error by creating a symbolic link in /usr/lib/ linking to the libX11.so located in /usr/lib32/

My problem is this: it appears that I do not have a 32-bit version of libX11.a - i have run a locate on libX11.a and the only thing that comes up is the 64-bit version - there is no libX11.a in /usr/lib32/. I have done extensive googling on this problem, but have yet to come up with a solution.

Does anybody have an idea on how i can get past this problem? Is there a package that I am missing? Is there any way that I can compile a 32-bit version of libX11.a on my own?

Any help would be very much appreciated. Thanks in advance.

-Matrim

dabraude
October 20th, 2011, 06:39 PM
See this thread
http://ubuntuforums.org/showthread.php?t=1685706

sisco311
October 20th, 2011, 11:06 PM
Necro...

Thread closed.