Can't run: libXft not found even when files are present

Can't run: libXft not found even when files are present

Postby unfa » 19 Aug 2014, 08:43

Hi!

I'm brand new here, trying to get the game working on my machine. I'm running KXStudio (based on Ubuntu) 64-bit on a ASUS K52J laptop with GeForce® 310M w/ 1GB of RAM, intel CORE™ i5 and 8GB of Kingston's RAM.

Every attempt of running the game got me only this message:

{l Code}: {l Select All Code}
$ ./overload.sh
--------------------------------                                                             
Terminal Overload Startup Script                                                             
--------------------------------                                                             
                                                                                             
Checking for commands required by this script...                                             
/usr/bin/dirname                                                                             
/bin/grep                                                                                     
/sbin/ldconfig                                                                               
/usr/bin/objdump                                                                             
/usr/bin/test                                                                                 
                                                                                             
Checking for libraries required to run Terminal Overload...                                   
Checking for 32 bit version of libdl.so.2...                                                 
 -> /lib/i386-linux-gnu/libdl.so.2                                                           
Checking for 32 bit version of libX11.so.6...                                                 
 -> /usr/lib/i386-linux-gnu/libX11.so.6                                                       
Checking for 32 bit version of libXft.so.2...                                                 
   !!! Unable to find 32 bit version of libXft.so.2 !!!                                       
Checking for 32 bit version of libstdc++.so.6...                                             
 -> /usr/lib/i386-linux-gnu/libstdc++.so.6
Checking for 32 bit version of libpthread.so.0...
 -> /lib/i386-linux-gnu/libpthread.so.0
Checking for 32 bit version of libGL.so.1...
 -> /usr/lib/i386-linux-gnu/mesa/libGL.so.1
Checking for 32 bit version of libm.so.6...
 -> /lib/i386-linux-gnu/libm.so.6
Checking for 32 bit version of libgcc_s.so.1...
 -> /lib/i386-linux-gnu/libgcc_s.so.1
Checking for 32 bit version of libc.so.6...
 -> /lib/i386-linux-gnu/libc.so.6
Checking for 32 bit version of librt.so.1...
 -> /lib/i386-linux-gnu/librt.so.1

Unable to locate 32 bit versions of the following libraries:
   - libXft.so.2

Please install 32 bit versions of the missing libraries and try again.

Reminder: If you're stuck and need help, visit the Terminal Overload forum:
            http://forum.freegamedev.net/viewforum.php?f=87


I got an Arch package of the lib32-Xft and got these files linked into another dir:
{l Code}: {l Select All Code}
/lib/i386-linux-gnu# ls libXft*
libXft.so  libXft.so.2  libXft.so.2.3.2


No luck, still can't get TOL to see the library and run.

Anybody has a similar problem? What am I doing wrong?
unfa
 
Posts: 5
Joined: 19 Aug 2014, 00:03

Re: Can't run: libXft not found even when files are present

Postby Julius » 19 Aug 2014, 11:16

Ah, yes I had the same issue on Ubuntu. Torque3D sadly doesn't compile in 64bit so far, thus you need to install the multiarch package of that library.

IIRC it should work like this on Ubuntu: "sudo apt-get install libxft2:i386"

Edit: ahh wait you got these already? Strange... it was working after that on my Kubuntu 14.04...
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Re: Can't run: libXft not found even when files are present

Postby Akien » 19 Aug 2014, 11:22

I would advise against using system libraries from another distro that the one you are running. Most likely they we not compiled against the same version as your distro's core packages. KXStudio does not provide libxft2:i386?
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Re: Can't run: libXft not found even when files are present

Postby Julius » 19 Aug 2014, 12:03

If KXStudio is still 12.04 based it might help to install those ia32 transitional package that was used before full multiarch support was added to Ubuntu.
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Re: Can't run: libXft not found even when files are present

Postby fr1tz » 19 Aug 2014, 13:29

unfa: Try to run ./engine directly, if this works then the overload.sh script is doing something wrong.
User avatar
fr1tz
RotC Moderator
 
Posts: 274
Joined: 01 Jun 2013, 18:22

Re: Can't run: libXft not found even when files are present

Postby unfa » 19 Aug 2014, 17:41

Unfortunately ia32 isn't availabile, the multiarch is already in place.
I'll try the running tip and say what happened.
unfa
 
Posts: 5
Joined: 19 Aug 2014, 00:03

Re: Can't run: libXft not found even when files are present

Postby unfa » 21 Aug 2014, 18:51

I run engine, didn't work, here's the output:

{l Code}: {l Select All Code}
$ ./engine
Initializing platform...
Input Init:
%
% AL lib: oss.c:179: Could not open /dev/dsp: No such file or directory
SFXALProvider - No valid devices found!
DebugDrawer Enabled!
GFX Init:
   Null device found
   OpenGL device found
%
GFXStringEnumTranslate: Unassigned value in GFXStringTextureFormat: 13
--------- Loading DIRS ---------
%
--------- Parsing Arguments ---------
Binding server port to default IP
UDP initialized on port 0
The requested renderer, D3D9, doesn't seem to be available. Trying the default, OpenGL.
Attempting to create GFX device: Mesa DRI Intel(R) Ironlake Mobile x86/MMX/SSE2 OpenGL []
Device created, setting adapter and enumerating modes
Initializing GFXCardProfiler (GL2.1)
   o Chipset : 'Intel Open Source Technology Center'
   o Card    : 'Mesa DRI Intel(R) Ironlake Mobile x86/MMX/SSE2'
   o Version : '2.1 Mesa 10.1.0'
   o VRAM    : 0 MB
   - Scanning card capabilities...
GFXCardProfiler (GL2.1) - Setting capability 'maxTextureWidth' to 8192.
GFXCardProfiler (GL2.1) - Setting capability 'maxTextureHeight' to 8192.
GFXCardProfiler (GL2.1) - Setting capability 'maxTextureSize' to 8192.
GFXCardProfiler (GL2.1) - Setting capability 'GL::suppVertexBufferObject' to 1.
GFXCardProfiler (GL2.1) - Setting capability 'GL::suppRenderTexture' to 1.
GFXCardProfiler (GL2.1) - Setting capability 'GL::suppRTBlit' to 1.
GFXCardProfiler (GL2.1) - Setting capability 'GL::suppFloatTexture' to 1.
GFXCardProfiler (GL2.1) - Setting capability 'GL::suppAnisotropic' to 1.
GFXCardProfiler (GL2.1) - Setting capability 'GL::suppFragmentShader' to 1.
GFXCardProfiler (GL2.1) - Setting capability 'GL::APPLE::suppFence' to 0.
GFXCardProfiler (GL2.1) - Setting capability 'GL::Workaround::needsExplicitGenerateMipmap' to 0.
GFXCardProfiler (GL2.1) - Setting capability 'GL::Workaround::X1600DepthBufferCopy' to 0.
GFXCardProfiler (GL2.1) - Setting capability 'GL::Workaround::HD2600DepthBufferCopy' to 0.
GFXCardProfiler (GL2.1) - Setting capability 'GL::Workaround::noManualMips' to 0.             
   - Loading card profiles...                                                                 
      - No card profile core/profile/GL21.cs exists                                           
      - No card profile core/profile/GL21.IntelOpenSourceTechnologyCenter.cs exists           
      - No card profile core/profile/GL21.IntelOpenSourceTechnologyCenter.MesaDRIIntelRIronlakeMobilex86MMXSSE2.cs exists                                                                   
      - No card profile core/profile/GL21.IntelOpenSourceTechnologyCenter.MesaDRIIntelRIronlakeMobilex86MMXSSE2.21Mesa1010.cs exists                                                       
% - PostFX Manager - Executing core/scripts/client/postFx/default.postfxpreset.cs             
% - PostFX Manager - Applying from preset                                                     
% - PostFX Manager - PostFX enabled                                                           
 % - Initialized Core
%
--------- Initializing Directory: scripts ---------
sfxStartup...
SFXSystem::createDevice - created Null device 'SFX Null Device'
   Provider: Null
   Device: SFX Null Device
   Hardware: No
   Buffers: 16
%
--------- Initializing Terminal Overload: Server Scripts ---------
%
--------- Initializing Terminal Overload: Client Scripts ---------
%
--------- Initializing Lighting Systems ---------
Using Advanced Lighting
GFXGLShader::initShader - Error compiling shader!
Program shaders/common/gl/particlesV.glsl: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

GFXGLShader::initShader - Error compiling shader!
Program shaders/common/gl/particlesP.glsl: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

GFXGLShader::initShader - Error compiling shader!
Program shaders/common/gl/particleCompositeV.glsl: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

GFXGLShader::initShader - Error compiling shader!
Program shaders/common/gl/particleCompositeP.glsl: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

%

--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Warning: The requested windowed resolution is equal to or larger than the current desktop resolution. Attempting to find a better resolution
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--FSAA Level : 4
--------------
Missing file: notc/client/shell/StartupGui.gui!
Warning, overwriting material for: xa_notc_mis_eth1_shapes_cube1_mat1
Warning, overwriting material for: smashdecal2.png
Warning, overwriting material for: corona.png
Warning, overwriting material for: laser1.white.png
Warning, overwriting material for: smashdecal2.png
Warning, overwriting material for: footprint
Warning, overwriting material for: footprint
Warning, overwriting material for: laser1.white.png
Warning, overwriting material for: laser1.white.png
Warning, overwriting material for: trail.png
Warning, overwriting material for: trail.png
Warning, overwriting material for: trail.png
Warning, overwriting material for: trail.png
Warning, overwriting material for: trail.png
Could not create a description for binding: thumbrx
Could not create a description for binding: thumbry
Could not create a description for binding: thumblx
Could not create a description for binding: thumbly
Could not create a description for binding: btn_a
Could not create a description for binding: btn_back
Could not create a description for binding: dpadl
Could not create a description for binding: dpadu
Could not create a description for binding: dpadd
Could not create a description for binding: dpadr
Could not create a description for binding: btn_b
Could not create a description for binding: triggerr
Could not create a description for binding: triggerl
Could not create a description for binding: btn_x
Binding server port to default IP
UDP initialized on port 0
 % - Initializing Tools
 % - Initializing Tools Base
 % - Initializing Base Editor
 % - Initializing World Editor
 - Initializing Datablock Editor
 % - Initializing Mission Area Editor
 % - Initializing Physics Tools
No physics plugin exists.
 % - Initializing Shape Editor
Could not create a description for binding: shift -
Could not create a description for binding: shift =
Could not create a description for binding: =
Could not create a description for binding: -
 - Initializing Road and Path Editor
Could not create a description for binding: =
Could not create a description for binding: -
 % - Initializing Gui Editor
 % - Initializing Particle Editor
 % - Initializing Forest Editor
 % - Initializing Material Editor
 % - Initializing Debugger
Missing file: tools/debugger/Scripts/debugger.ed.cs!
Missing file: tools/debugger/Gui/breakConditionDlg.ed.gui!
Missing file: tools/debugger/Gui/connectDlg.ed.gui!
Missing file: tools/debugger/Gui/editWatchDlg.ed.gui!
Missing file: tools/debugger/Gui/findDlg.ed.gui!
Missing file: tools/debugger/Gui/debugger.ed.gui!
Missing file: tools/debugger/Gui/watchDlg.ed.gui!
 % - Initializing Sketch Tool
 % - Initializing Decal Editor
 % - Initializing River Editor
Could not create a description for binding: =
Could not create a description for binding: -
 % - Initializing Mesh Road Editor
Could not create a description for binding: =
Could not create a description for binding: -
Engine initialized...
Window focus status changed: focus: 1
AntiAliasing has been disabled; it is not compatible with AdvancedLighting.
GFXGLShader::initShader - Error compiling shader!
Program shaders/common/fixedFunction/gl/colorV.glsl: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

GFXGLShader::initShader - Error compiling shader!
Program shaders/common/fixedFunction/gl/colorP.glsl: 0:1(10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

% Segmentation fault
unfa
 
Posts: 5
Joined: 19 Aug 2014, 00:03

Re: Can't run: libXft not found even when files are present

Postby Julius » 21 Aug 2014, 18:58

Ahh, let me guess, it's a Nvidia Optimus laptop, right? The driver of the intel gpu on the i5 (at least mine in a sandy bridge) doesn't support a high enough OpenGL version.

Try starting it with Bumblebee or turn on Primus in the nvidia-settings.
User avatar
Julius
Community Moderator
 
Posts: 3297
Joined: 06 Dec 2009, 14:02

Re: Can't run: libXft not found even when files are present

Postby fr1tz » 21 Aug 2014, 21:35

The game segfaults if the OpenGL graphics subsystem fails. It needs at least OpenGL 3.2 but it's weird that it doesn't complain that it's not available.
User avatar
fr1tz
RotC Moderator
 
Posts: 274
Joined: 01 Jun 2013, 18:22

Re: Can't run: libXft not found even when files are present

Postby BioHazardX » 08 Sep 2014, 17:10

I have the same problem in a nvidia optimus laptop 64-bit. Can't run the game for that missing file.
SURVIVAL STRATEGY!
User avatar
BioHazardX
 
Posts: 183
Joined: 07 Jan 2012, 12:03
Location: from the 90's

Re: Can't run: libXft not found even when files are present

Postby fr1tz » 08 Sep 2014, 19:43

overload.sh is basically just a script that checks if it can find 32bit versions of the libs that TOL requires. just launch ./overload directly. If that works then there's something wrong with the overload.sh script.
User avatar
fr1tz
RotC Moderator
 
Posts: 274
Joined: 01 Jun 2013, 18:22

Re: Can't run: libXft not found even when files are present

Postby mray » 08 Sep 2014, 20:15

depending on the driver you are using you may want to put an "optirun" infront of the path of overload.sh.
like:

optirun "/path/to/overload.sh"

(you may need the quotation mark when using folders with spaces in their name like "../My Projects/..")
mray
 
Posts: 52
Joined: 01 Feb 2014, 15:55

Re: Can't run: libXft not found even when files are present

Postby Akien » 08 Sep 2014, 20:26

mray {l Wrote}:depending on the driver you are using you may want to put an "optirun" infront of the path of overload.sh.
like:

optirun "/path/to/overload.sh"

(you may need the quotation mark when using folders with spaces in their name like "../My Projects/..")


That works if you're using a system for which bumblebee has been packaged and is installed.
On Ubuntu 14 IIRC you might be able to activate the nvidia GPU in nvidia-settings, thanks to Ubuntu's dreadful nvidia-prime hack :)
Godot Engine project manager and maintainer.
Occasional FOSS gamedev: Lugaru, OpenDungeons, Jetpaca, Minilens.
User avatar
Akien
 
Posts: 737
Joined: 22 Feb 2014, 13:14

Who is online

Users browsing this forum: No registered users and 1 guest