Jump to content
The Dark Mod Forums

Recommended Posts

Posted
$ ./thedarkmod.x86
./thedarkmod.x86: error while loading shared libraries: libGLEW.so.1.10: cannot open shared object file: No such file or directory

"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

Posted

$ ./thedarkmod.x86
./thedarkmod.x86: error while loading shared libraries: libGLEW.so.1.10: cannot open shared object file: No such file or directory

 

ldd says this:

 

$ ldd thedarkmod.x86
./thedarkmod.x86: /lib32/libm.so.6: version `GLIBC_2.15' not found (required by ./thedarkmod.x86)
./thedarkmod.x86: /lib32/libc.so.6: version `GLIBC_2.15' not found (required by ./thedarkmod.x86)
    linux-gate.so.1 =>  (0xf77aa000)
    libpthread.so.0 => /lib32/libpthread.so.0 (0xf7763000)
    libdl.so.2 => /lib32/libdl.so.2 (0xf775f000)
    librt.so.1 => /lib32/librt.so.1 (0xf7755000)
    libpng12.so.0 => /lib32/libpng12.so.0 (0xf7730000)
    libX11.so.6 => /usr/lib32/libX11.so.6 (0xf7613000)
    libXext.so.6 => /usr/lib32/libXext.so.6 (0xf7603000)
    libXxf86vm.so.1 => /usr/lib32/libXxf86vm.so.1 (0xf75fd000)
    libGL.so.1 => /usr/lib32/nvidia-current/libGL.so.1 (0xf7537000)
    libGLEW.so.1.10 => not found
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7442000)
    libm.so.6 => /lib32/libm.so.6 (0xf741c000)
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf73fd000)
    libc.so.6 => /lib32/libc.so.6 (0xf729a000)
    /lib/ld-linux.so.2 (0xf77ab000)
    libz.so.1 => /usr/lib32/libz.so.1 (0xf7284000)
    libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf726a000)
    libGLcore.so.1 => /usr/lib32/nvidia-current/libGLcore.so.1 (0xf5c5a000)
    libnvidia-tls.so.1 => /usr/lib32/nvidia-current/tls/libnvidia-tls.so.1 (0xf5c58000)
    libXau.so.6 => /usr/lib32/libXau.so.6 (0xf5c54000)
    libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf5c4d000)

 

But I only got:

 

$ dir /usr/lib32/libGL
libGLEW.so.1.5	    libGLEW.so.1.5.0	  libGL.so			  libGLU.so			 libGLU.so.1		   libGLU.so.1.3.070701 
$ dir /usr/lib32/libGLEW.so.1.5
lrwxrwxrwx 1 root root 16 2008-12-29 15:27 /usr/lib32/libGLEW.so.1.5 -> libGLEW.so.1.5.0

"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

Posted

Darn seems the version installed as per the instructions here on the site are to old you need to sudo apt-get install libglew1.10-dev and sudo apt-get install libglew1.10-dev:i386

that should take care of it.

Posted (edited)

I'm using Kubuntu 10.4 (yes, its that old). And libglew1.10-dev isn't available:

 

$ aptitude search libglew
v   libglew-dev			 -
c   libglew1				 - The OpenGL Extension Wrangler - runtime environment
i   libglew1.5			   - The OpenGL Extension Wrangler - runtime environment
i   libglew1.5-dev		- The OpenGL Extension Wrangler - development environment
v   libglewmx-dev		-
p   libglewmx1.5		  - The OpenGL Extension Wrangler - runtime environment
p   libglewmx1.5-dev   - The OpenGL Extension Wrangler - development environment

Edited by Tels

"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

Posted

Hmm damn then you have to build it yourself :S well should be pretty straight forward libglew itself is just 1 file glew.c

 

for others with a newer version heres a script to get dependencies.

 

#!/bin/bash
# get build depends
sudo apt-get install g++ scons libglew1.10-dev libglew1.10-dev:i386 libpng12-dev libpng12-dev:i386 libjpeg62-dev libjpeg62-dev:i386
sudo apt-get install m4 libxxf86vm-dev libxxf86vm-dev:i386 libopenal-dev libopenal-dev:i386 libasound2-dev libasound2-dev:i386 g++-multilib gcc-multilib zlib1g-dev zlib1g-dev:i386 libxext-dev libxext-dev:i386

 

save as get-depends.sh and run it like this, sudo sh get-depends.sh

Posted (edited)

ok for your old version of kubuntu get the glew source code here https://sourceforge.net/projects/glew/files/glew/1.11.0/glew-1.11.0.tgz/download and cd into where you unpacked it.

i made a makefile to create the 32 bit version on 64 bit ubuntu just replace the one in the glew source dir with this one http://sourceforge.n...lew.7z/download

Then just do

make

sudo -s

make install

make clean

Edited by revelator
Posted

Just a stupid question: Why don't we compile GLEW in, if it is only one file and has so wildy different versions among the different OS people use? Wouldn't that solve the problemwith linking it?

 

(Sure, we would be stuck with one version, but then, TDM is released frequently and also there is no need to update GLEW inside TDM).

"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

Posted

could do that but i would have to write the build process into scons and i would have to reorder some things so that glew is part of the build process, much like its done with devil or libjpeg.

This might take a while to write and atm im more curious as to if the thing actually works :) if it does ill have no objection starting to rewrite stuff if not i would have wasted a good deal of hours.

Ofc i hope it works but you newer know :)

Posted

Guys thanks for doing this, we have garnered a few more players because they can play on linux.

 

Is this linux build based on the current 2.03 SVN or Revelators branch build..?

 

On revelators. The 2.03 SVN compiles just fine on my box and I also test 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

Posted

Still has a few problems on older ubuntu like teis i suspect, working on doing glew as part of the build process and works here but may pick up the wrong library if you allready have glew installed.

Unfortunatly its hard to take every little thing into account on different distros and more work may be needed before we can call it a day.

Still it helps if you know the innards of a posix system and how to get the things you need :).

Posted

Another way to get around the differing versions would be to simply remove the glew headers from darkmod's scons build chain so that it uses the system supplied version, that way it should work by just installing the glew version supported on your distro. you could simply delete them from the darkmod include dir and it should use the system provided ones.

Posted (edited)

Final changes comitted.

Allways uses system glew on linux now.

Attempts to link statically to system glew.

changed include path from the local glew/glew.h to the system include directory GL/glew.h.

changed include path from the local glew/glxew.h to the system include directory GL/glxew.h.

scons build scripts modified accordingly.

 

So allways get the latest possible glew version for your distro from your package maintainer.

Also remember the other dependencies, you can use my get-depends.sh for that.

Edited by revelator
Posted

Testing...

"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

Posted

It still doesn't link the game executable:

 

/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libGLEW.so when searching for -lGLEW
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../libGLEW.a when searching for -lGLEW
/usr/bin/ld: skipping incompatible /usr/lib/libGLEW.so when searching for -lGLEW
/usr/bin/ld: skipping incompatible /usr/lib/libGLEW.a when searching for -lGLEW

 

The reason here is that I'm on a 64bit system, but we are buildind a 32 bit executable, so it must use /usr/lib32/ and only /usr/lib/ as fallback. I wonder why this works for other libraries, but not GLEW.

"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

Posted

might be missing the x86 version or if you got it something might have acted up in the package installer ? try sudo apt-get -f install without any packages to let apt-get try to autocorrect problems.

Posted (edited)

might be missing the x86 version or if you got it something might have acted up in the package installer ? try sudo apt-get -f install without any packages to let apt-get try to autocorrect problems.

 

No, the linker looks into "/usr/lib" - but on a 64bit system there is the 64bit variant there. The 32bit variant is in /usr/lib32/ - and so I think that scons just has not the right path or setting for this library.

 

For other libraries, the right version is in /usr/lib32/, too and this works. Just not for GLEW.

Edited by Tels

"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

Posted

Allready works for windows :) just having a few problems with paths on the linux distros,

glew is also located in /usr/lib32 on my 64 bit kubuntu and it does get picked up on my 64 bit kubuntu so not sure whats going wrong on your version :S

the only problem i ran into was that the system supplied zlib version of my kubuntu 64 was incompatible with the devil version in darkmod so i had to move it out of the way when building so that it picks up the version from darkmod instead.

 

im going to look into scons looking in the wrong place, hang on.

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.

  • Recent Status Updates

    • Ansome

      Terribly difficult juggling map designing with work, but I'm still alive and chipping away at something very special. I'm actually making a collaboration of sorts with a friend, I make the map itself and he acts as my "Chief Scope Creep Consultant" that checks in every so often to make sure this project isn't getting out of hand. It's a good system!
      · 0 replies
    • JackFarmer

      We don't need artificial intelligence; we need artistic intelligence. 
      Ralf Hütter, Kraftwerk
      · 5 replies
    • taaaki

      The post editor for the dark themes should be working again. Apologies for the inconvenience.
      · 1 reply
    • jaxa

      Talk GabeCube:
      https://forums.thedarkmod.com/index.php?/topic/18055-2016-cpugpu-news/page/39/#findComment-508710
      · 3 replies
    • The Black Arrow

      Things have been so bad these days for me...
      Just a year ago, I've been feeling dizzy, I thought it was nothing, today's stress, that type of thing, went to sleep...Still dizzy! 9 more days dizzy, went to doctor (I would have gone on the first day if NOT for the long appointment time)
      Said it may be Neck Dizziness...I did exercises for 6 months, no changes.
      Went to a Physical Therapist, went to another, no changes.
      I've asked my doctor for a full check this time.
      I hated yesteryear so much due to personal reasons, this year might be the same.
      To be brutally honest, I'd rather have cancer or/and chronic pain than suffer dizziness any second longer, especially when nothing helps.
      Hard to enjoy Thief when you're dizzy so I was hoping this year, Winter will be best for me.
      · 7 replies
×
×
  • Create New...