Ubuntu install

For discussion about Trine 2, released in December 2011 on Windows, Mac, Xbox, PlayStation Network and later on Linux and Wii U.
Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Ubuntu install

Postby Galaad » Mon May 07, 2012 8:50 am

Hello,

Please excuse me I have a little request, I'm new to LInux and i wanted to enjoy Trine 2 on my new platform, i had no problem installing the game, following the instructions and always choosing the recommended choice, but when I try to launch it, the window where you can choose language, resolution etc appears but then when i click "start Trine 2" nothing happens. I saw there are some things in the README file but i don't understand how to do it.

Please, explain me how to do this :

"Starting the game manually from a terminal (may provide some additional info):

export LD_LIBRARY_PATH=./lib/lib32
bin/trine2_linux_32bit

Or by listing at the required library files manually:

export LD_LIBRARY_PATH=./lib/lib32
ldd bin/trine2_linux_32bit
ldd bin/trine2_linux_launcher_32bit

These commands will list you the libraries that the game binaries depend on.
Look for any library lines that say: not found"

Thank you very much in advance,
Best regards

PS, I'm on Lucid Lynx x86_64

User avatar
FB_JussiE
Posts: 267
Joined: Wed Nov 23, 2011 4:09 pm
Location: Finland
Contact:

Re: Ubuntu install

Postby FB_JussiE » Mon May 07, 2012 9:01 am

Hello Galaad!

First you need to open terminal, which you can either start by going to the applications menu and look for it (it's icon is usually a black screen) or press alt+f2 and type terminal.

You should then be presented a window with text something like "[email protected]:~$".
Here go to the Trine2's folder using the "cd" command.
For example if your Trine2 is installed in your home directory under Trine2 folder you can type the following:

Code: Select all

cd ~/Trine2

Once in the Trine2 folder type in the commands you mentioned (each on a seperate line):

Code: Select all

export LD_LIBRARY_PATH=./lib/lib32
bin/trine2_linux_32bit


There should be some text appearing in the terminal now and on success the game will launch.

Feel free to ask if something was left unclear :)

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Mon May 07, 2012 9:51 am

Hello and thank you for your fast reply FB_JussIE !

Please, I may be stupid, this is what happens :

Code: Select all

[email protected]:/usr/local/games/Trine2$ export LD_LIBRARY_PATH=./lib/lib32
[email protected]:/usr/local/games/Trine2$ bin/trine2_linux_32bit
Segmentation fault

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Mon May 07, 2012 10:06 am

Ok if i do this this happens :

Code: Select all

[email protected]:/usr/local/games/Trine2$ export LD_LIBRARY_PATH=./lib/lib32
[email protected]:/usr/local/games/Trine2$ ldd bin/trine2_linux_32bit
   linux-gate.so.1 =>  (0xf7773000)
   libz.so.1 => /usr/lib32/libz.so.1 (0xf773d000)
   libSDL-1.3.so.0 => ./lib/lib32/libSDL-1.3.so.0 (0xf7646000)
   libGLU.so.1 => /usr/lib32/libGLU.so.1 (0xf75d5000)
   libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf755f000)
   libCg.so => ./lib/lib32/libCg.so (0xf6c7f000)
   libCgGL.so => ./lib/lib32/libCgGL.so (0xf6c12000)
   libopenal.so.1 => /usr/lib32/libopenal.so.1 (0xf6bc4000)
   libogg.so.0 => /usr/lib32/libogg.so.0 (0xf6bbc000)
   libvorbis.so.0 => /usr/lib32/libvorbis.so.0 (0xf6b93000)
   libvorbisfile.so.3 => /usr/lib32/libvorbisfile.so.3 (0xf6b8a000)
   libPhysXLoader.so.1 => ./lib/lib32/libPhysXLoader.so.1 (0xf6b7a000)
   libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf6a85000)
   libm.so.6 => /lib32/libm.so.6 (0xf6a5e000)
   libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf6a3f000)
   libc.so.6 => /lib32/libc.so.6 (0xf68e6000)
   libdl.so.2 => /lib32/libdl.so.2 (0xf68e2000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf68c9000)
   libGL.so.1 => /usr/lib32/mesa/libGL.so.1 (0xf6864000)
   /lib/ld-linux.so.2 (0xf7774000)
   librt.so.1 => /lib32/librt.so.1 (0xf685a000)
   libX11.so.6 => /usr/lib32/libX11.so.6 (0xf673d000)
   libXext.so.6 => /usr/lib32/libXext.so.6 (0xf672d000)
   libXxf86vm.so.1 => /usr/lib32/libXxf86vm.so.1 (0xf6727000)
   libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf6723000)
   libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf671c000)
   libdrm.so.2 => /lib32/libdrm.so.2 (0xf6711000)
   libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf66f7000)
   libXau.so.6 => /usr/lib32/libXau.so.6 (0xf66f3000)
   libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf66ed000)
[email protected]:/usr/local/games/Trine2$ ldd bin/trine2_linux_launcher_32bit
   linux-gate.so.1 =>  (0xf7717000)
   libgtk-x11-2.0.so.0 => /usr/lib32/libgtk-x11-2.0.so.0 (0xf7320000)
   libgdk-x11-2.0.so.0 => /usr/lib32/libgdk-x11-2.0.so.0 (0xf728a000)
   libatk-1.0.so.0 => /usr/lib32/libatk-1.0.so.0 (0xf726d000)
   libgio-2.0.so.0 => /usr/lib32/libgio-2.0.so.0 (0xf71cf000)
   libpangoft2-1.0.so.0 => /usr/lib32/libpangoft2-1.0.so.0 (0xf71a8000)
   libgdk_pixbuf-2.0.so.0 => /usr/lib32/libgdk_pixbuf-2.0.so.0 (0xf718e000)
   libpango-1.0.so.0 => /usr/lib32/libpango-1.0.so.0 (0xf714b000)
   libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf70d4000)
   libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf70a4000)
   libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf7065000)
   libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf7060000)
   libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf705a000)
   librt.so.1 => /lib32/librt.so.1 (0xf7050000)
   libglib-2.0.so.0 => /lib32/libglib-2.0.so.0 (0xf6f86000)
   libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf6f82000)
   libXxf86vm.so.1 => /usr/lib32/libXxf86vm.so.1 (0xf6f7c000)
   libSM.so.6 => /usr/lib32/libSM.so.6 (0xf6f73000)
   libdl.so.2 => /lib32/libdl.so.2 (0xf6f6e000)
   libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf6e79000)
   libm.so.6 => /lib32/libm.so.6 (0xf6e53000)
   libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf6e34000)
   libpthread.so.0 => /lib32/libpthread.so.0 (0xf6e1b000)
   libc.so.6 => /lib32/libc.so.6 (0xf6cc2000)
   libX11.so.6 => /usr/lib32/libX11.so.6 (0xf6ba4000)
   libXext.so.6 => /usr/lib32/libXext.so.6 (0xf6b94000)
   libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf6b8a000)
   libXi.so.6 => /usr/lib32/libXi.so.6 (0xf6b7c000)
   libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf6b74000)
   libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf6b69000)
   libpangocairo-1.0.so.0 => /usr/lib32/libpangocairo-1.0.so.0 (0xf6b5d000)
   libXcomposite.so.1 => /usr/lib32/libXcomposite.so.1 (0xf6b59000)
   libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf6b55000)
   libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf6b4f000)
   libcairo.so.2 => /usr/lib32/libcairo.so.2 (0xf6ad5000)
   libz.so.1 => /usr/lib32/libz.so.1 (0xf6abf000)
   libpcre.so.3 => /lib32/libpcre.so.3 (0xf6a8e000)
   libresolv.so.2 => /lib32/libresolv.so.2 (0xf6a7a000)
   libselinux.so.1 => /lib32/libselinux.so.1 (0xf6a5f000)
   libexpat.so.1 => /lib32/libexpat.so.1 (0xf6a37000)
   /lib/ld-linux.so.2 (0xf7718000)
   libICE.so.6 => /usr/lib32/libICE.so.6 (0xf6a1e000)
   libuuid.so.1 => /lib32/libuuid.so.1 (0xf6a19000)
   libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf69ff000)
   libpixman-1.so.0 => /usr/lib32/libpixman-1.so.0 (0xf69a4000)
   libdirectfb-1.2.so.0 => /usr/lib32/libdirectfb-1.2.so.0 (0xf692d000)
   libfusion-1.2.so.0 => /usr/lib32/libfusion-1.2.so.0 (0xf6923000)
   libdirect-1.2.so.0 => /usr/lib32/libdirect-1.2.so.0 (0xf690d000)
   libpng12.so.0 => /lib32/libpng12.so.0 (0xf68e8000)
   libxcb-render-util.so.0 => /usr/lib32/libxcb-render-util.so.0 (0xf68e2000)
   libxcb-render.so.0 => /usr/lib32/libxcb-render.so.0 (0xf68da000)
   libXau.so.6 => /usr/lib32/libXau.so.6 (0xf68d6000)
   libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf68d0000)
[email protected]:/usr/local/games/Trine2$ ls
bin             KNOWN_LINUX_ISSUES  README_TRINE2_FEDORA      trine2.desktop
data            lib                 README_TRINE2_LINUX_MINT  trine2.png
data1.fbq       log                 README_TRINE2_OPENSUSE    trine2.sh
datalinux1.fbq  README              README_TRINE2_UBUNTU
[email protected]:/usr/local/games/Trine2$ ./trine2.sh
[email protected]:/usr/local/games/Trine2$ nohup: redirecting stderr to stdout


The game still doesn't launch !

Sorry again and thanks,
Regards

User avatar
FB_JussiE
Posts: 267
Joined: Wed Nov 23, 2011 4:09 pm
Location: Finland
Contact:

Re: Ubuntu install

Postby FB_JussiE » Mon May 07, 2012 10:27 am

Hello again

It seems like there wasn't any libraries missing.

Have you enabled the proprietary graphics drivers ?
You can do this in Ubuntu by going to the "Restricted Drivers" menu and enabling one of the drivers in there.

If this does not help let us know and I'll look more in to it.

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Mon May 07, 2012 10:39 am

No but I have the NVIDIA driver (295.49) for my graphic card working, I have 3d cube desktop effects enabled, wouldn't it make some conflicts with it if I enable a proprietary driver ? I have none available in the "Hardware Drivers" menu anyways (I couldn't find a "Restricted Drivers" menu ?)... Please excuse me if I don't make complete or any sense, I don't quite understand Linux world yet :)

User avatar
FB_JussiE
Posts: 267
Joined: Wed Nov 23, 2011 4:09 pm
Location: Finland
Contact:

Re: Ubuntu install

Postby FB_JussiE » Mon May 07, 2012 10:47 am

Oh "Hardware Drivers" is the same menu, I jus recalled the name wrong :).
Seems like you already have proprietary drivers then.

You should check that you have the package "lib32-nvidia-utils" installed.
To install packages open "synaptic" search for the package and select install (and apply changes), the package will appear as installed if you already have it, which means that this isn't the thing causing the problem.

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Mon May 07, 2012 11:02 am

Ok that may be the issue ? I don't have any "lib32-nvidia-utils" appearing in my synaptic, how should I get it then ?

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Mon May 07, 2012 6:02 pm

I'm really having difficulties finding a binary package for Debian of "lib32-nvidia-utils"... I was also thinking that as game menu appears and my driver functions correctly the problem is elsewhere ?

I'm sorry if I bother you,
Regards

User avatar
FB_JussiE
Posts: 267
Joined: Wed Nov 23, 2011 4:09 pm
Location: Finland
Contact:

Re: Ubuntu install

Postby FB_JussiE » Tue May 08, 2012 8:26 am

Hey again and sorry for the delay.

I went trough the output you posted again and I still belive the issue is with the game not actually using the NVidia drivers.
You should make sure you have 32bit NVidia drivers available as well.
Unfortunately I dont have Ubuntu machine with NVidia HW handy at the moment, but I belive you need package called something like "nvidia-glx-ia32" in Ubuntu, but don't know for sure. Look for nvidia and 32 related stuff in synaptic and check the package info for 32bit driver/multiarch related stuff.

You could also go trough the packages mentioned in the readme and check that they're all installed, this is very unlikely the cause of the problem as there weren't any libraries missing in the output...

Sorry I can not be more helpful at the moment.

berarma
Posts: 16
Joined: Fri Apr 29, 2011 2:10 am

Re: Ubuntu install

Postby berarma » Tue May 08, 2012 2:06 pm

It seems your nvidia drivers aren't correctly installed. There's a reference to a mesa lib that shouldn't be there. How have you installed the nvidia drivers? You should have used the Ubuntu method, from the hardware drivers window.

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Fri May 11, 2012 5:13 am

@FB_JussIE : Thank you for your reply, I didn't find anything in my synaptic, I'll look more into it..

@berarma : Thank you for your reply, I've installed the nvidia driver by downloading it, then, in Ubuntu the terminal says you have to exit x server for installation. After making the command ./* it was "successfully installed" and desktop effects were enabled...

User avatar
fb_jpk
Posts: 140
Joined: Thu Jun 16, 2005 8:05 pm

Re: Ubuntu install

Postby fb_jpk » Mon May 14, 2012 11:32 am

berarma wrote:It seems your nvidia drivers aren't correctly installed. There's a reference to a mesa lib that shouldn't be there. How have you installed the nvidia drivers? You should have used the Ubuntu method, from the hardware drivers window.


Yeah, this is the issue that prevents Trine 2 from running, you can see it from the ldd output lines...

The line:

Code: Select all

libGL.so.1 => /usr/lib32/mesa/libGL.so.1 (0xf6864000)

Tells that you are using the software based MesaGL rather than nvidia's OpenGL drivers. (At least in case of the 32 bit applications, 64 bit apps might even have a different library in use). That line should not read .../mesa/... if it was the nvidia driver.

I don't remember the exact location for it, but on Ubuntu, enabling nvidia drivers should be quite easy (Once you find the correct location to enable it). Somewhere in the system settings menu or something like that (perhaps system -> administration?), you should find an icon looking like a green PCI/graphics card and it should be labeled "restricted drivers", "proprietary drivers" or "hardware drivers" or something like that. (Sorry, I'm on a windows machine right now and don't really remember the exact location for it.) When you open it, it should list you the available nvidia drivers. Enabling them drivers from there should be just a few clicks (and then it will download and install them, followed by a required restart).

It should usually be a painless operation on Ubuntu using the automated tools, but sometimes it can fail due to some curious reason, and then you'll have to download and install the nvidia drivers manually from the nvidia site - And that may sometimes turn out to be a very complex operation (requiring plenty of terminal commands and such). I would definitely suggest trying to use the automated Ubuntu properietary driver installation first for anyone who's not familiar tweaking with linux. After installing the drivers, try out the game or see the ldd lines, and look for the libGL.so.1 line - once you get rid of the mesa reference there, you should have the drivers installed.

Xpander
Posts: 34
Joined: Fri Apr 15, 2011 5:40 am
Location: Estonia

Re: Ubuntu install

Postby Xpander » Mon May 14, 2012 9:31 pm

ia32-libs is the package name in ubuntu for 32bit stuff.
but if u installing drivers from website then u have some problems.
so its better to run sudo sh NVIDIA-blablainstaller.run --uninstall

and then install the drivers from distro repository to have everything working
or use the x-swat ppa to be able to have the latest versions
Linux Mint 13 alpha 64bit
* AMD Phenom II x4 955 BE (3,2 ghz)
* 8GB ddr3 1600mhz
* Asus GTX 560Ti DirectCU

berarma
Posts: 16
Joined: Fri Apr 29, 2011 2:10 am

Re: Ubuntu install

Postby berarma » Tue May 15, 2012 10:56 am

Galaad wrote:@berarma : Thank you for your reply, I've installed the nvidia driver by downloading it, then, in Ubuntu the terminal says you have to exit x server for installation. After making the command ./* it was "successfully installed" and desktop effects were enabled...


You're using the Nvidia driver installer and that isn't recomended on distributions that provide their equivalent packaged drivers. It may conflict with other packages and manual tweaking is generally necessary, no matter what the installer says when it finishes. Some applications may work, but others will fail.

Following on the advice given above and taking the simplest possible path I think you should uninstall your manually installed Nvidia driver and then install the Ubuntu one. The commands to type on a terminal would be:

Code: Select all

NVIDIA-?????.run --uninstall
sudo apt-get install nvidia-current


The first command must be typed in the directory where the Nvidia driver install you used is and changing the question marks for the appropiate string. The second command installs the newest nvidia driver on Lucid, that is version 195.36.24.

In case your graphics card isn't supported by this driver version you should upgrade to Precise Pangolin or get help on Ubuntu forums to fix the Nvidia driver installer but that's not officially supported so I'd recommend the former. I hope that helps.

Galaad
Posts: 8
Joined: Mon May 07, 2012 8:45 am

Re: Ubuntu install

Postby Galaad » Tue May 15, 2012 4:35 pm

Thank you for your replies, I understand I mustn't have installed the nvidia driver correctly. I dropped Ubuntu anyway because I recently started to have quite A LOT of very weird bugs, I switched to a pure Debian. I still enjoy Trine 2 on a macbook =)
Thank you again very much, for your time, and for the detailled informations/explications provided.
Best regards

Aimeeing
Posts: 1
Joined: Sat May 19, 2012 7:06 am
Contact:

Re: Ubuntu install

Postby Aimeeing » Sat May 19, 2012 7:14 am

It should usually be a painless operation on Ubuntu using the automated tools, but sometimes it can fail due to some curious reason, and then you'll have to download and install the nvidia drivers manually from the nvidia site - And that may sometimes turn out to be a very complex operation (requiring plenty of terminal commands and such). I would definitely suggest trying to use the automated Ubuntu properietary driver installation first for anyone who's not familiar tweaking with linux. After installing the drivers, try out the game or see the ldd lines, and look for the libGL.so.1 line - once you get rid of the mesa reference there, you should have the drivers installed.


Return to “Trine 2”

Who is online

Users browsing this forum: No registered users and 3 guests