Jump to content
The Dark Mod Forums

Ubuntu 13.10 64 bit and 32 bit libs


jumpingclear
 Share

Recommended Posts

Ubuntu and variants have decided that ia32-lib package won't be available anymore. From what I understand instead of one metapackage apps are supposed to install their 32 bit dependencies as they install.

 

Obviously, as tdm isn't a packaged deb this doesn't happen and the 32 libs needed aren't installed. Has anyone got a work round for this? I wondered if their was a list of 32libs needed users could install them separately.

Link to comment
Share on other sites

I had to install this on my arch box to get it running:

[2013-10-27 23:00] [PACMAN] installed libpng12 (1.2.50-3)
[2013-10-27 23:00] [PACMAN] installed lib32-libpng12 (1.2.50-2)
[2013-10-27 23:04] [PACMAN] installed lib32-alsa-plugins (1.0.27-1)
[2013-10-27 23:12] [PACMAN] installed lib32-json-c (0.11-1)
[2013-10-27 23:12] [PACMAN] installed lib32-libasyncns (0.8-6)
[2013-10-27 23:12] [PACMAN] installed lib32-libcap (2.22-1)
[2013-10-27 23:12] [PACMAN] installed lib32-libxtst (1.2.2-1)
[2013-10-27 23:12] [PACMAN] installed lib32-libogg (1.3.1-1)
[2013-10-27 23:12] [PACMAN] installed lib32-flac (1.3.0-1)
[2013-10-27 23:12] [PACMAN] installed lib32-libvorbis (1.3.3-1)
[2013-10-27 23:12] [PACMAN] installed lib32-libsndfile (1.0.25-2)
[2013-10-27 23:12] [PACMAN] installed lib32-libpulse (4.0-2)

 

Possibly not all are required...

Edited by whoop
Link to comment
Share on other sites

  • 2 weeks later...

I'm on Ubuntu 13.10 Saucy which doesn't have the ia32-libs package. Of course there are still all the i386-libs available, just no convenient way to install the standard ones that usually are needed. Therefore, I took a look at the ia32-lib-multiarch package in Ubuntu 13.04 and made a list of all the dependencies. Probably way more than necessary for TDM but better one more than one less. The following list includes all the libraries that the 13.04 ia32-libs package pulled in as dependencies except for LDAP-libs:

 

bluez-alsa:i386 gstreamer0.10-plugins-base:i386 gstreamer0.10-plugins-good:i386 gtk2-engines:i386 gtk2-engines-murrine:i386 gtk2-engines-oxygen:i386 gtk2-engines-pixbuf:i386 gvfs:i386 ibus-gtk:i386 libacl1:i386 libaio1:i386 libao4:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libattr1:i386 libaudio2:i386 libcanberra-gtk-module:i386 libcap2:i386 libcapi20-3:i386 libcups2:i386 libcupsimage2:i386 libcurl3:i386 libdbus-glib-1-2:i386 libesd0:i386 libfontconfig1:i386 libfreetype6:i386 libgail-common:i386 libgconf-2-4:i386 libgdbm3:i386 libgettextpo0:i386 libglapi-mesa:i386 libglu1-mesa:i386 libgphoto2-6:i386 libgphoto2-port10:i386 libgtk2.0-0:i386 libmpg123-0:i386 libncursesw5:i386 libnspr4:i386 libnss3:i386 libodbc1:i386 libopenal1:i386 libpulse-mainloop-glib0:i386 libpulsedsp:i386 libqt4-dbus:i386 libqt4-network:i386 libqt4-opengl:i386 libqt4-qt3support:i386 libqt4-script:i386 libqt4-scripttools:i386 libqt4-sql:i386 libqt4-svg:i386 libqt4-test:i386 libqt4-xml:i386 libqt4-xmlpatterns:i386 libqtcore4:i386 libqtgui4:i386 libqtwebkit4:i386 librsvg2-common:i386 libsane:i386 libsdl-image1.2:i386 libsdl-mixer1.2:i386 libsdl-net1.2:i386 libsdl-ttf2.0-0:i386 libsdl1.2debian:i386 libsqlite3-0:i386 libssl0.9.8:i386 libssl1.0.0:i386 libstdc++5:i386 libstdc++6:i386 libxaw7:i386 libxml2:i386 libxp6:i386 libxslt1.1:i386 libxss1:i386 libxtst6:i386 odbcinst1debian2:i386 xaw3dg:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libpam-winbind:i386

 

Install them via sudo apt-get install PASTE_CONTENT_FROM_ABOVE

Link to comment
Share on other sites

  • 1 year later...

So, I got a new PC, and a shiny, new Kubuntu 64bit installation of 14.10.

 

TDM updater throws me the error (it says a bit more, but that is the gist):

 

 


libstdc++.so.6 missing

 

Looking at:

 

http://wiki.thedarkmod.com/index.php?title=FAQ#What_about_Ubuntu_8.10.3F

 

The FAQ is completely outdated (it still talks about Doom), and the package ia32 does not exist. So I'm a bit at a loss at what actually todo.

 

Interestingly, Linux Mint 17.1 (also 64 bit) on the same hardware runs TDM just fine. Unfortunately, I have no idea what the difference was/is.

 

So, how do I get TDM to run under Ubuntu/Kubuntu 64 bit?

  • Like 1

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

AHA:

 

http://wiki.ubuntuusers.de/Spiele/The_Dark_Mod

 

That installs 27 packages (21 mbytes), and then it runs.

  • Like 1

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

  • 2 weeks later...

Trying to compile the darkmod doesn't work for me:

 

Following the instructions on:

 

http://wiki.thedarkmod.com/index.php?title=The_Dark_Mod_-_Compilation_Guide#Ubuntu_10.10_64_Bit

 

the "ia32-libs" package no longer exists. Installing everything else (a freaking 76 packages weighting in about 560 Mbyte) gives me this:

 

 


AttributeError: 'SConsEnvironment' object has no attribute 'M4':
File "/home/te/src/trunk/SConstruct", line 551:
SConscript( g_build + '/core/glimp/sys/scons/SConscript.gl' )
File "/usr/lib/scons/SCons/Script/SConscript.py", line 609:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 546:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/home/te/src/trunk/build/release/core/glimp/sys/scons/SConscript.gl", line 69:
gl_env.M4( i_m4, i_m4 + '.m4' )

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

  • 2 weeks later...

The "m4" package must be installed:

 

sudo apt-get install m4
Then it gets further along to:

 

Command line: BUILD='release'
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build/release/core/glimp build/release/core build/release/game
scons: building `game/precompiled_game.h.gch' because it doesn't exist
g++ -o game/precompiled_game.h.gch -x c++-header -c -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -O3 -march=pentium3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -fno-strict-aliasing -Wno-deprecated -Winvalid-pch -fPIC -DGAME_DLL -Igame -Ibuild/release/game/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/minizip -Iinclude/libjpeg -Iinclude/devil -I. game/precompiled_game.h
In file included from /usr/include/c++/4.9/typeinfo:34:0,
                 from game/../idlib/precompiled.h:97,
                 from game/precompiled_game.h:28:
/usr/include/c++/4.9/exception:37:28: fatal error: bits/c++config.h: No such file or directory
 #include <bits/c++config.h>
                            ^
compilation terminated.
scons: building `build/release/game/game/randomizer/userintf.os' because it doesn't exist
scons: *** [game/precompiled_game.h.gch] Error 1
g++ -o build/release/game/game/randomizer/userintf.os -c -fPIC -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -O3 -march=pentium3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -fno-strict-aliasing -Wno-deprecated -Winvalid-pch -fPIC -DGAME_DLL -Igame -Ibuild/release/game/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/minizip -Iinclude/libjpeg -Iinclude/devil -I. game/randomizer/userintf.cpp
scons: building terminated because of errors.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

  • 2 weeks later...

The compilation goes further if you install:

 

libstdc++-4.9-dev:i386

 

But then it stops again:

 

cc1: warning: command line option ‘-fpermissive’ is valid for C++/ObjC++ but not for C

In file included from /usr/include/png.h:540:0,

from lib/devil/il_png.c:21:

/usr/include/zlib.h:86:5: error: unknown type name ‘z_const’

z_const Bytef *next_in; /* next input byte */

^

/usr/include/zlib.h:86:19: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token

z_const Bytef *next_in; /* next input byte */

^

In file included from /usr/include/zlib.h:34:0,

from /usr/include/png.h:540,

from lib/devil/il_png.c:21:

/usr/include/zlib.h:1025:29: error: unknown type name ‘z_const’

typedef unsigned (*in_func) OF((void FAR *,

^

/usr/include/zlib.h:1029:33: error: unknown type name ‘in_func’

ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,

^

In file included from /usr/include/png.h:540:0,

from lib/devil/il_png.c:21:

/usr/include/zlib.h:1349:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’

ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));

^

/usr/include/zlib.h:1748:15: error: unknown type name ‘z_crc_t’

ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));

^

/usr/include/zlib.h:1758:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’

ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file,

^

scons: building `build/release/game/lib/devil/il_profiles.os' because it doesn't exist

gcc -o build/release/game/lib/devil/il_profiles.os -c -fPIC -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -O3 -march=pentium3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -DXTHREADS -fno-strict-aliasing -DHAVE_CONFIG_H -Ibuild/release/game/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/minizip -Iinclude/libjpeg -Iinclude/devil -I. -Iinclude/devil/IL lib/devil/il_profiles.c

scons: *** [build/release/game/lib/devil/il_png.os] Error 1

cc1: warning: command line option ‘-fpermissive’ is valid for C++/ObjC++ but not for C

scons: building terminated because of errors.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

The compilation goes further if you install:

 

libstdc++-4.9-dev:i386

 

But then it stops again:

 

I ran into the same bug with "zlib.h" when compiling under Linux Mint 17.2 . The fix I made was to add the version libPNG included in the Dark Mod's source to the SCons build process.

 

You can find a diff for this fix on the bug tracker #4198.

 

Link to comment
Share on other sites

 

I ran into the same bug with "zlib.h" when compiling under Linux Mint 17.2 . The fix I made was to add the version libPNG included in the Dark Mod's source to the SCons build process.

 

You can find a diff for this fix on the bug tracker #4198.

 

 

Thanks again, and to Tels for testing.

 

What's the scripting language in the sconscript? It looks like python but it appears to be case-insensitive on keywords like import and return.

Link to comment
Share on other sites

I also had to do

 

 

sudo aptitude install libasound2-dev:i386 libopenal-dev:i386

 

Now it compiles, but fails at the linker step with messages to X11 and other libs. Small steps...

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Btw, I forgot the password to the TDM wiki (rather: only the old browser on my old system remembers it, but I have a new PC now :o

 

Anyway, the wiki gives me:

 

 

Error sending mail: Unknown error in PHP's mail() function.

 

when I try to reset my password.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

I also had to do

sudo aptitude install libasound2-dev:i386 libopenal-dev:i386

Now it compiles, but fails at the linker step with messages to X11 and other libs. Small steps...

I installed "libx11-6:i386" to get X11 libraries. If you already have a required library installed, check that the symlinks are setup correctly. I remember one library was missing it's symlink for the .so file.

Link to comment
Share on other sites

libx11-6:i386 is already installed here, so that can't be it.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

  • 6 months later...

I got this to compile all the way and produce a debian file, however, I tried to start the game, but there appears to be some pathing issues with the changes I choose (pushing files to the traditional user games). The "journey" or my steps is outlined in my github issues post I created for my SteamOS external tools repository. If anyone has any direction at all on where to proceed next, that would be GREATLY appreciated. The repository in use is a snapshot of TDM 2.0.3 with Debian packaging.

 

https://github.com/ProfessorKaos64/SteamOS-Tools/issues/126

 

contact: professorkaos64 at linux.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recent Status Updates

    • peter_spy

      Perhaps an unpopular opinion: TDM team might benefit from someone with actual QA experience; someone with naturally and professionally developed curiosity, who is interested in how and why things work, how they break At least to me it's kind of mind-boggling how untested some rather important features are (first the absence alert feature for items, now the rope +body carry behavior).
      · 4 replies
    • nbohr1more

      The Dark Mod is hosting an Ask Me Anything thread on the PC Gaming reddit forum:  https://www.reddit.com/r/pcgaming/comments/10nfcwj/hello_we_are_the_international_development_team/
      Feel free to join the discussion there
      · 2 replies
    • stgatilov

      Bumped into an interesting piece of wisdom called Hyrum's Law:
      With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.
      · 5 replies
    • The Black Arrow

      I love playing The Dark Mod when it's cold in my place. Bonus points when it's a bit (or even very) dark and it's raining, too.
      · 2 replies
    • The Black Arrow

      I've been having stutters in Vulkan, apparently it's Nvidia Drivers' fault, so I reverted to 512 according to this: https://www.nvidia.com/en-us/geforce/forums/geforce-graphics-cards/5/505679/regular-microstutter-in-vulkan-applications-after-/?topicPage=40

      And no, that did NOT fix it. What's going on? My GPU is an RTX 2070, by the way.
      · 4 replies
×
×
  • Create New...