Installing 32-bit libraries to run Textroom

If none of the more specific forums is the right place to ask

Installing 32-bit libraries to run Textroom

Postby Cerales » 2010-11-25 14:44

I'm trying to run textroom on my Squeeze system. After having some trouble trying to compile it from source I just installed it via the Linux self-installer that's available for it. However, when I run it, I encounter the following error:

Code: Select all
textroom: error while loading shared libraries: libSDL_mixer-1.2.so.0: cannot open shared object file: No such file or directory


However, I do have the libSDL_mixer1.2 library installed.

From some searching elsewhere I'm led to believe that this is because Textroom is a 32-bit application and thus it looks in /usr/lib32, not /usr/lib, for its libraries. As should have been obvious, simply attempting to copy the library into /usr/lib32 doesn't work. I tried installed the ia32-libs package but it didn't seem to affect this issue.

Does anyone know what I can do here?
User avatar
Cerales
 
Posts: 9
Joined: 2010-10-23 08:21

Re: Installing 32-bit libraries to run Textroom

Postby aspnair » 2010-11-25 17:07

Could you post the output of
ldd /path/to/textroom
Compressed Air Energy Storage, Entropy and Efficiency
http://saurorja.org/2012/06/18/compress ... fficiency/
User avatar
aspnair
 
Posts: 1247
Joined: 2009-06-18 12:27
Location: Twitter: @anand_sivaram

Re: Installing 32-bit libraries to run Textroom

Postby stevepusser » 2010-11-25 23:26

No doubt it was looking for the 32-bit version of the missing SDL library.

What exactly was the problem with compiling from source? Squeeze has all the necessary versions of the dev packages, according to the how-to. You may have just missed one.
stevepusser
 
Posts: 3682
Joined: 2009-10-06 05:53

Re: Installing 32-bit libraries to run Textroom

Postby Cerales » 2010-11-26 02:47

Thanks for the replies. Sorry if I'm unclear with anything, I've been using Debian for a while but fairly casually, and I usually don't install anything that isn't in the distribution.

What exactly was the problem with compiling from source? Squeeze has all the necessary versions of the dev packages, according to the how-to. You may have just missed one.


I'm not really sure. I can qmake and make without errors, but I get the following output when I execute "sudo make install":

Code: Select all
sudo make install
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/sounds/keyany.wav /usr/share/sounds/
strip /usr/share/sounds/keyany.wav
strip:/usr/share/sounds/keyany.wav: File format not recognized
make: [install_data] Error 1 (ignored)
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/sounds/keyenter.wav /usr/share/sounds/
strip /usr/share/sounds/keyenter.wav
strip:/usr/share/sounds/keyenter.wav: File format not recognized
make: [install_data] Error 1 (ignored)
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/dict/tr.aff /usr/share/myspell/dicts/
strip /usr/share/myspell/dicts/tr.aff
strip:/usr/share/myspell/dicts/tr.aff: File format not recognized
make: [install_dict] Error 1 (ignored)
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/dict/tr.dic /usr/share/myspell/dicts/
strip /usr/share/myspell/dicts/tr.dic
strip:/usr/share/myspell/dicts/tr.dic: File format not recognized
make: [install_dict] Error 1 (ignored)
install -m 755 -p "textroom" "/usr/bin/textroom"
strip "/usr/bin/textroom"
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/desktop/textroom.desktop /usr/share/applications/
strip /usr/share/applications/textroom.desktop
strip:/usr/share/applications/textroom.desktop: File format not recognized
make: [install_desktop] Error 1 (ignored)
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/desktop/textroom-uninstall /usr/bin/
strip /usr/bin/textroom-uninstall
strip:/usr/bin/textroom-uninstall: File format not recognized
make: [install_uninstaller] Error 1 (ignored)
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/desktop/textroom-txr-mime.xml /usr/share/textroom/
strip /usr/share/textroom/textroom-txr-mime.xml
strip:/usr/share/textroom/textroom-txr-mime.xml: File format not recognized
make: [install_mime] Error 1 (ignored)
install -m 755 -p /home/dbryan/Downloads/textroom-0.6.5/resource/images/textroom.png /usr/share/pixmaps/
strip /usr/share/pixmaps/textroom.png
strip:/usr/share/pixmaps/textroom.png: File format not recognized
make: [install_icon] Error 1 (ignored)


Could you post the output of
ldd /path/to/textroom


Code: Select all
   linux-gate.so.1 =>  (0xf776f000)
   libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf76a6000)
   libSDL_mixer-1.2.so.0 => not found
   libhunspell-1.2.so.0 => not found
   libQtGui.so.4 => not found
   libQtCore.so.4 => not found
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf768c000)
   libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7597000)
   libm.so.6 => /lib32/libm.so.6 (0xf7570000)
   libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7552000)
   libc.so.6 => /lib32/libc.so.6 (0xf740b000)
   libasound.so.2 => /usr/lib32/libasound.so.2 (0xf7343000)
   librt.so.1 => /lib32/librt.so.1 (0xf733a000)
   libdl.so.2 => /lib32/libdl.so.2 (0xf7336000)
   libdirectfb-1.2.so.9 => /usr/lib32/libdirectfb-1.2.so.9 (0xf72c0000)
   libfusion-1.2.so.9 => /usr/lib32/libfusion-1.2.so.9 (0xf72b7000)
   libdirect-1.2.so.9 => /usr/lib32/libdirect-1.2.so.9 (0xf72a3000)
   libvga.so.1 => /usr/lib32/libvga.so.1 (0xf7242000)
   /lib/ld-linux.so.2 (0xf7770000)
   libx86.so.1 => /lib32/libx86.so.1 (0xf723f000)
User avatar
Cerales
 
Posts: 9
Joined: 2010-10-23 08:21

Re: Installing 32-bit libraries to run Textroom

Postby aspnair » 2010-11-26 09:21

I guess you are using a 64bit debian.
Why are you compiling textroom for 32bit? Just install the necessary development packages for SDL and QT and compile it natively for 64 bit. From your ldd, it is not able to find qt/sdl 32 bit libraries.
Compressed Air Energy Storage, Entropy and Efficiency
http://saurorja.org/2012/06/18/compress ... fficiency/
User avatar
aspnair
 
Posts: 1247
Joined: 2009-06-18 12:27
Location: Twitter: @anand_sivaram

Re: Installing 32-bit libraries to run Textroom

Postby Cerales » 2010-11-26 09:30

Hmph, I wasn't aware that I was compiling it for 32 bit. How do I compile it for 64 bit?
User avatar
Cerales
 
Posts: 9
Joined: 2010-10-23 08:21

Re: Installing 32-bit libraries to run Textroom

Postby aspnair » 2010-11-26 12:09

Normally by default it should get compiled natively. That means for 64bit in your case.
configure/make/install should only compile for native system, unless you specify some thing else.
So go through the "configure" output and compilation terminal output to see how it got compiled for 32bit machine.
You can use "file" utility to verify the machine type of a object/binary file.
Compressed Air Energy Storage, Entropy and Efficiency
http://saurorja.org/2012/06/18/compress ... fficiency/
User avatar
aspnair
 
Posts: 1247
Joined: 2009-06-18 12:27
Location: Twitter: @anand_sivaram

Re: Installing 32-bit libraries to run Textroom

Postby stevepusser » 2010-11-26 20:12

Those error 1 messages that you got appear be be non fatal--as far as I can tell, it's a command to strip debugging symbols from a library that generates the error, since it's being applied to sound and image files, so it's just ignored.

Try uninstalling the 32-bit deb file, reinstalling your 64-bit compiled version, and see if it did get installed into /usr/bin.

If so, try the terminal command

/usr/bin/textroom

and see what happens.
stevepusser
 
Posts: 3682
Joined: 2009-10-06 05:53

Re: Installing 32-bit libraries to run Textroom

Postby Cerales » 2010-11-28 02:40

stevepusser wrote:Those error 1 messages that you got appear be be non fatal--as far as I can tell, it's a command to strip debugging symbols from a library that generates the error, since it's being applied to sound and image files, so it's just ignored.


Embarrassingly, this was indeed the case - they were non-fatal and Textroom works perfectly when I run it after doing a make.

Thanks for the help, everyone.
User avatar
Cerales
 
Posts: 9
Joined: 2010-10-23 08:21

Re: Installing 32-bit libraries to run Textroom

Postby stevepusser » 2010-11-28 04:25

I can see what's going on because I've made all those embarrassing mistakes already; many, many times. Textroom does not look too hard to create a proper Debian package for, either. Does not look like anyone has bothered to do that yet...
stevepusser
 
Posts: 3682
Joined: 2009-10-06 05:53


Return to General Questions

Who is online

Users browsing this forum: No registered users and 31 guests

fashionable