Author Topic: What are the dependencies for Cogs?  (Read 6735 times)

cyberpatrol

  • Apprentice
  • *
  • Posts: 5
    • View Profile
What are the dependencies for Cogs?
« on: July 29, 2011, 07:36:19 PM »
Today I bought the Humble Indie Bundle but don't get Cogs running. I'm using Arch Linux in the x86_64 version. And I've got a ATI Radeon HD 3450.

If I use Catalyst (fglrx) it seems to start somehow but nothing happens except that there's a process seen in the process list (ps or htop). I don't get any messages or a window or anything else.

If I use xf86-video-ati meanwhile I get a window with the Lazy 8 logo and then a black window. On the console I get the following message:
"WARNING: forcibly disabling S3TC support.
WARNING: Your OpenGL drivers lack S3TC support! Using inefficient fallback...
AL lib: sdl.c:208: SDL_OpenAudio failed: No available audio device
Error creating OpenAL context.  Error=0xA001"

For my audio devices I'm using ALSA.

So what are the dependencies for Cogs? Which packages and libraries do I have to install to get it running?

I already have the second build from the Humble Indie Bunlde site.

admin

  • Rob
  • Administrator
  • Widgeteer
  • *****
  • Posts: 218
    • View Profile
Re: What are the dependencies for Cogs?
« Reply #1 on: July 29, 2011, 08:08:12 PM »
This sounds like you need to make sure you have the latest graphics drivers for your card.  Even though you have a 64-bit architectures, make sure you get the 32-bit drivers.  You may need to go to the website of the graphics card vendor to the the first-party drivers.

cyberpatrol

  • Apprentice
  • *
  • Posts: 5
    • View Profile
Re: What are the dependencies for Cogs?
« Reply #2 on: July 29, 2011, 09:33:29 PM »
I already have the latest graphics drivers in 64 bit as well as in 32 bit. Arch Linux is bleeding edge. ;-)

These are my graphics card related packages:
xf86-video-ati 6.14.1
ati-dri 7.10.3
libgl 7.10.3
mesa 7.10.3
lib32-ati-dri 7.10.3
lib32-libgl 7.10.3
lib32-mesa 7.10.3

When I tried it with Catalyst I had these packages installed:
catalyst 11.7
catalyst-utils 11.7
lib32-catalyst-utils 11.7

Additionally I have also these packages installed:
openal 1.13
sdl 1.2.14
lib32-openal 1.13
lib32-sdl 1.2.14

I've also installed lib32-gcc-libs and lib32-openal.

And this part of the error message let me think about a sound issue:
"AL lib: sdl.c:208: SDL_OpenAudio failed: No available audio device
Error creating OpenAL context.  Error=0xA001"

Maybe there's something missing related to the sound?

cyberpatrol

  • Apprentice
  • *
  • Posts: 5
    • View Profile
Re: What are the dependencies for Cogs?
« Reply #3 on: August 09, 2011, 02:27:25 PM »
I just saw that you've uploaded cogs-installer-build3 to the Humble Indie Bundle #3 and tried it.

I guess I've found the reason for my first issue. It's the script Cogs.

After installing Cogs with the new installer I first tried to start it with /opt/cogs/Cogs (I've installed it into /opt/cogs.), but just got this output on the console:
Code: [Select]
$ /opt/cogs/Cogs
Using amd64 version.
/opt/cogs/Cogs: line 9: /home/<user>/Cogs-amd64: No such file or directory

Then I replaced
Code: [Select]
LD_LIBRARY_PATH=./amd64:$LD_LIBRARY_PATH exec ./Cogs-amd64 "$@"by
Code: [Select]
LD_LIBRARY_PATH=`dirname $0`/amd64:$LD_LIBRARY_PATH exec `dirname $0`/Cogs-amd64 "$@"and
Code: [Select]
LD_LIBRARY_PATH=./x86:$LD_LIBRARY_PATH exec ./Cogs-x86 "$@"by
Code: [Select]
LD_LIBRARY_PATH=`dirname $0`/x86:$LD_LIBRARY_PATH exec `dirname $0`/Cogs-x86 "$@"
Now I tried to start it but I still got almost the same error messages than in my original posting.

If I start it with /opt/cogs/Cogs -force I get again the first window with the Lazy 8 logo and then a lot of error messages on the console:

Code: [Select]
$ /opt/cogs/Cogs.new -force
Using amd64 version.
WARNING: Your OpenGL drivers lack S3TC support! Using inefficient fallback...


Warning: It appears that your hardware doesn't meet the minimum requirements necessary to run Cogs.  The following OpenGL extensions are unsupported: GL_ARB_vertex_shader, GL_ARB_fragment_shader, GL_EXT_texture_compression_s3tc

Failed to compile vertex shader data/effects/TextureBumpCubemap.vsh
Failed to compile vertex shader data/effects/TextureAlpha.vsh
Failed to compile vertex shader data/effects/ShadowMap.vsh
Failed to compile vertex shader data/effects/Texture.vsh
Frame buffer object error 0x0.
OpenGL error 0x0500 at begin Texture::init.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Failed to compile vertex shader data/effects/Screen_Copy.vsh
Failed to compile vertex shader data/effects/Screen_Combine.vsh
Failed to compile vertex shader data/effects/Screen_DownFilter4.vsh
Failed to compile vertex shader data/effects/Screen_BlurHorizontal.vsh
Failed to compile vertex shader data/effects/Screen_BlurVertical.vsh
Frame buffer object error 0x0.
Frame buffer object error 0x0.
Frame buffer object error 0x0.
OpenGL error 0x0500 at end Mesh::draw.
OpenGL error 0x0500 at end Mesh::draw.
OpenGL error 0x0500 at end Mesh::draw.
...

But if I start /opt/cogs/Cogs-amd64 directly without the wrapper script /opt/cogs/Cogs then it starts and is playable. It's pretty slow but my graphics card is not the fastest. So I guess it's ok.

But I can get it started only once. If I start it the second time I get only this message on the console:

Code: [Select]
$ /opt/cogs/Cogs-amd64
Couldn't set 800x600 OpenGL video mode: Couldn't find matching GLX visual

This happens with all resolutions and regardless of having it set to windowed or full screen mode.

So I guess there are at least two issues. One with the start script Cogs and one with setting the right resolution.

cyberpatrol

  • Apprentice
  • *
  • Posts: 5
    • View Profile
Re: What are the dependencies for Cogs?
« Reply #4 on: August 09, 2011, 03:11:29 PM »
But I can get it started only once. If I start it the second time I get only this message on the console:

Code: [Select]
$ /opt/cogs/Cogs-amd64
Couldn't set 800x600 OpenGL video mode: Couldn't find matching GLX visual

This happens with all resolutions and regardless of having it set to windowed or full screen mode.

So I guess there are at least two issues. One with the start script Cogs and one with setting the right resolution.

Well, ignore that part. It's only if I activate the Anti-Aliasing in the options. So it's because of my graphics card.

Remains the issue with the start script Cogs which can easily by worked around by using Cogs-amd64 directly.

Playing the game is fun, btw.

cyberpatrol

  • Apprentice
  • *
  • Posts: 5
    • View Profile
Re: What are the dependencies for Cogs?
« Reply #5 on: August 09, 2011, 03:19:14 PM »
It's pretty slow but my graphics card is not the fastest. So I guess it's ok.

One other comment. Now that I tried one or two things I set all options to the fastest again. And now it's really playable and fast enough even with my graphics card. :)