You are not logged in.

#1 2016-12-18 13:39:44

enricostn
Member
Registered: 2011-08-09
Posts: 57

[SOLVED] Day of the tentacle remastered

Does anyone got DOTT from Humble Bundle working on Arch?

I know that the official system requirements say that it works on Ubuntu... but, you know... wink

For instance there is an AUR package for Fez: https://aur.archlinux.org/packages/fez/

I was hoping for something similar for DOTT. Just running the binary I get this:

$ ./Dott
Failed to execute process './Dott'. Reason:
The file './Dott' does not exist or could not be executed.

Any idea? Thanks!

Last edited by enricostn (2016-12-28 23:02:45)

Offline

#2 2016-12-18 13:49:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] Day of the tentacle remastered

What is that file?

file ./Dott

If it's an ELF file, what libraries does it depend on?

readelf -a ./Dott | grep NEEDED

Do you have these libraries installed? If it's a 32-bit ELF, do you have the corresponding 32-bit libraries?

EDIT: typo

Last edited by WorMzy (2016-12-18 14:05:31)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-12-18 13:49:55

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Day of the tentacle remastered

Based on "could not be executed", you may need:

chmod 755 Dott

Also, strace can be used for debugging, e.g.:

strace -r -e open ./Dott

Offline

#4 2016-12-18 13:50:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Day of the tentacle remastered

Post the output of

uname -a
file ./Dott

Offline

#5 2016-12-18 13:53:03

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: [SOLVED] Day of the tentacle remastered

so, yes it's an ELF file:

$ file ./Dott
./Dott: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=7412594edca0f4213929ae9bcd053f4051589a0f, not stripped
$ readelf -a ./Dott | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libfmod.so.8]
 0x00000001 (NEEDED)                     Shared library: [libm.so.6]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
 0x00000001 (NEEDED)                     Shared library: [libGL.so.1]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]

Let's see if I have all of them installed. Thanks!

Offline

#6 2016-12-18 13:57:42

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] Day of the tentacle remastered

Read the error again, It is very self explanatory.*Takes long sigh*....

What happens if you list the directory or search for Dott in the directory with grep? I'm going to assume you installed this with steam, because of the humble bundle. If this is not the case, as in you built the package yourself from the AUR link you mentioned (I find this unlikely...), then let us know. For now, try looking in ~/.steam/steam/steamapps/common for your game. You are looking your an executable file. You can run the file command to view file attributes. Finally, and be very careful with this, use chmod to make your file executable if need be. Do not do this with random files! Double check permissions with long listing. I would be willing to give you exact commands if you had bothered to troubleshoot a very, very basic error yourself first. But hopefully this guides you in the right direction.

EDIT: Wow! I got ninja'ed 4 times over, and now this post is highly irrelevant....

Last edited by JohnBobSmith (2016-12-18 13:58:24)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#7 2016-12-18 14:00:59

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: [SOLVED] Day of the tentacle remastered

I'm going to assume you installed this with steam, because of the humble bundle. If this is not the case, as in you built the package yourself from the AUR link you mentioned (I find this unlikely...), then let us know.

Nope, I just downloaded a DRM free tar file with the binary form Humble Bundle. Not using Steam. Thanks anyway!

Offline

#8 2016-12-18 14:05:28

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [SOLVED] Day of the tentacle remastered

Alright well sorry for being negative. It looks like you have everything covered. smile


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#9 2016-12-18 15:59:53

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: [SOLVED] Day of the tentacle remastered

Ok, so I actually don't have the needed libraries 32bit version or the library at all. I'm on a 64bit:

$ uname -a
Linux redbox 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux

What I found out is that inside the tar that I downloaded there is a lib directory:

λ tree .
.
├── controllerdef.txt
├── DayOfTheTentacle_Linux_NoSteam_v1.4.1.tar.gz
├── Dott
├── lib
│   ├── libfmod.so.8
│   └── libsteam_api.so
├── readme.txt
└── tenta.cle

1 directory, 7 files

and...

$ file lib/libfmod.so.8 
lib/libfmod.so.8: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=020ce925a1018f8d658a7ebd14f50493340571bc, stripped

So, how should I install the missing 32bit libraries? is there a way to use the library that comes with the tar file?

Thanks!

Offline

#10 2016-12-18 16:09:37

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] Day of the tentacle remastered

carnager@caprica ~ > cower -s fmod
[...]
aur/lib32-libfmod

But I doubt this is your issue, it doesn't fit the original error message.
Sadly you never responded about making the file actually executable with chmod, like it has been mentioned 2 times already (now 3 times)

Last edited by Rasi (2016-12-18 16:21:12)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#11 2016-12-18 16:16:28

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] Day of the tentacle remastered

Another option might be using scummvm.  It is available in the repos and you can find a downloadable zip file by searching for DOTT for scummvm.  I actually had an old cd of the game and I just had to copy the contents of the cd to a folder in scummvm and it plays fine.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#12 2016-12-18 16:18:16

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] Day of the tentacle remastered

bgc1954 wrote:

Another option might be using scummvm.  It is available in the repos and you can find a downloadable zip file by searching for DOTT for scummvm.  I actually had an old cd of the game and I just had to copy the contents of the cd to a folder in scummvm and it plays fine.

That won't help at all since he is talking about the remastered version with updated HD graphics from telltale.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#13 2016-12-18 16:58:12

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: [SOLVED] Day of the tentacle remastered

Sadly you never responded about making the file actually executable with chmod, like it has been mentioned 2 times already (now 3 times)

Sorry about that, that's the first thing I tried though.

$ ls -la
total 4974456
drwxr-xr-x  3 enrico enrico       4096 Dec 18 14:07 ./
drwxr-xr-x 10 enrico enrico       4096 Dec 18 14:06 ../
-rw-r--r--  1 enrico enrico      41213 Oct  6 19:11 controllerdef.txt
-rw-r--r--  1 enrico enrico 2354677381 Dec 18 14:02 DayOfTheTentacle_Linux_NoSteam_v1.4.1.tar.gz
-rwxr-xr-x  1 enrico enrico   10364631 Sep 13 06:27 Dott*
drwxr-xr-x  2 enrico enrico       4096 Jul  3 18:12 lib/
-rw-r--r--  1 enrico enrico      13266 Oct  6 19:11 readme.txt
-rw-r--r--  1 enrico enrico 2728711499 Oct  6 19:07 tenta.cle

Offline

#14 2016-12-18 17:36:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] Day of the tentacle remastered

enricostn wrote:

So, how should I install the missing 32bit libraries? is there a way to use the library that comes with the tar file?

Thanks!

There is, and to understand how to do that, you should look into LD_LIBRARY_PATH or LD_PRELOAD, both of which are documented in 'man ld.so', however, that only takes care of one of the libraries you need for this application. Since you are on a 64-bit system, you will need to install packages from the multilib repo. You can use 'pacman -F' or 'pkgfile' to identify which packages contain the libraries you need.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#15 2016-12-28 11:50:26

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: [SOLVED] Day of the tentacle remastered

Finally having time to give it another try... thanks everybody for your help!

So... since installing packages from multilib would pollute my system with lots of stuff, I wanted to try out the chroot way using http://xyne.archlinux.ca/projects/arch32-light/ AUR package.

The chroot is up and running and this is what I've got so far.

1. I mounted the directory where DOTT is placed into the chroot
2. I installed xorg-server and mesa packages into the chroot
3. I opened a xhost +local: in my host
4. I put the same DISPLAY=:0 on both host and chroot
5. Run from inside the chroot the following command:

# LD_PRELOAD="/usr/lib/mesa/libGL.so.1 lib/libfmod.so.8" ./Dott
Segmentation fault (core dumped)

I see that it opens a new X window but it's closed right after, I guess due to the Segmentation fault. Is there any way to debug this?

I've also tried to remove the X forward and run the following command:

# LD_PRELOAD="/usr/lib/mesa/libGL.so.1 lib/libfmod.so.8" ./Dott
#

But it just doesn't respond with anything, no errors or warnings. Nothing, it just goes back to the prompt.

EDIT: running the command with strace I see that lib/libfmod.so.8 is trying to load libasound.so.2 but could not find it:

getpid()                                = 8132
writev(2, [{iov_base="      8132:\t", iov_len=12}, {iov_base="\n", iov_len=1}, {iov_base="      8132:\t", iov_len=12}, {iov_base="file=", iov_len=5}, {iov_base="libasound.so.2", iov_len=14}, {iov_base=" [", iov_len=2}, {iov_base="0", iov_len=1}, {iov_base="];  dynamically loaded by ", iov_len=26}, {iov_base="lib/libfmod.so.8", iov_len=16}, {iov_base=" [", iov_len=2}, {iov_base="0", iov_len=1}, {iov_base="]\n", iov_len=2}], 12      8132:	
      8132:	file=libasound.so.2 [0];  dynamically loaded by lib/libfmod.so.8 [0]
) = 94
open("/home/enrico/games/native/lib/libasound.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=28628, ...}) = 0
mmap2(NULL, 28628, PROT_READ, MAP_PRIVATE, 7, 0) = 0xf145c000
close(7)                                = 0
open("/usr/lib/libasound.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
munmap(0xf145c000, 28628)               = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x24} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

Last edited by enricostn (2016-12-28 12:45:32)

Offline

#16 2016-12-28 22:45:17

enricostn
Member
Registered: 2011-08-09
Posts: 57

Re: [SOLVED] Day of the tentacle remastered

So... after an interesting adventure in the chroot way... I ended up just using multilib.

I even managed to create my first AUR package in the hope of helping someone else or (most probably) the future me:

https://aur.archlinux.org/packages/dott/

Please give it a try and send me all the possible feedback.

Many thanks to all of you and to the people in the IRC channel. Changing the title as [Solved]

Offline

Board footer

Powered by FluxBB