Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Windows in Linux  (Read 9733 times)

0 Members and 1 Guest are viewing this topic.

lzr

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://lzr.cc
Windows in Linux
« on: June 30, 2008, 01:08:24 am »
I'm working on compiling my game in Linux and I'm getting weird problems. For some reason, none of the windows I create have title bars. In addition, when I close the windows, whatever was on them lingers until I drag something over it forcing a redraw. When I set a windows to be fullscreen, and then quit, it doesn't automatically return to the original resolution. Lastly, the sound seems to click a lot.

This happens even in the sampl;e programs even if I don't compile anything. I'm running Ubiuntu 8.04, and SFML 1.3.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Windows in Linux
« Reply #1 on: June 30, 2008, 03:08:57 am »
Hi

Unfortunately, there are a lot of problems with Ubuntu 8.04. The only thing I can help you with, is the sound : you can try to use the latest version of openal-soft instead of OpenAL.

Have you tried also recompiling SFML yourself ? It should make any difference, but who knows.

I'm sorry I can't help much with Ubuntu 8.04 issues, every time I try to upgrade my 7.10 it fails.
Laurent Gomila - SFML developer

Ltp0wer

  • Newbie
  • *
  • Posts: 4
    • MSN Messenger - ltp0wer@hotmail.com
    • AOL Instant Messenger - ltp0wer
    • View Profile
    • http://www.ltp0wer.com
Windows in Linux
« Reply #2 on: June 30, 2008, 03:44:42 am »
Quote from: "Laurent"
Hi

Unfortunately, there are a lot of problems with Ubuntu 8.04. The only thing I can help you with, is the sound : you can try to use the latest version of openal-soft instead of OpenAL.

Have you tried also recompiling SFML yourself ? It should make any difference, but who knows.

I'm sorry I can't help much with Ubuntu 8.04 issues, every time I try to upgrade my 7.10 it fails.


I can't even get SFML to compile. (Running Ubuntu 8.04)
Code: [Select]
In file included from WindowImpl.cpp:40:
../../SFML/Window/Linux/WindowImplX11.hpp:33:22: error: X11/Xlib.h: No such file or directory
../../SFML/Window/Linux/WindowImplX11.hpp:34:20: error: GL/glx.h: No such file or directory
In file included from WindowImpl.cpp:40:
../../SFML/Window/Linux/WindowImplX11.hpp:163: error: ‘XVisualInfo’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:163: error: ‘XVisualInfo’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:193: error: ‘Bool’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:201: error: ‘XEvent’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:211: error: ‘KeySym’ has not been declared
../../SFML/Window/Linux/WindowImplX11.hpp:232: error: ISO C++ forbids declaration of ‘Display’ with no type
../../SFML/Window/Linux/WindowImplX11.hpp:232: error: invalid use of ‘::’
../../SFML/Window/Linux/WindowImplX11.hpp:232: error: expected ‘;’ before ‘*’ token
../../SFML/Window/Linux/WindowImplX11.hpp:237: error: ‘XIM’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:242: error: ‘Window’ in namespace ‘::’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:244: error: ‘GLXContext’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:245: error: ‘Atom’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:247: error: ‘Cursor’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:248: error: ‘XIC’ does not name a type
../../SFML/Window/Linux/WindowImplX11.hpp:163: error: ‘XVisualInfo’ was not declared in this scope


:(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Windows in Linux
« Reply #3 on: June 30, 2008, 03:55:17 am »
You need a few external libraries, SFML is not just plain standard C++ ;)

From what I see, you need at least Xlib and GLX development libraries.
Laurent Gomila - SFML developer

lzr

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://lzr.cc
Windows in Linux
« Reply #4 on: June 30, 2008, 05:08:18 am »
I did compile it and it doesn't seem to make a difference.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Windows in Linux
« Reply #5 on: June 30, 2008, 05:15:04 am »
Do you have anything special regarding window manager ? Or do you use the default one with default configuration ?
Laurent Gomila - SFML developer

lzr

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://lzr.cc
Windows in Linux
« Reply #6 on: June 30, 2008, 05:28:32 am »
Everything is default. I only have it installed to compile my game, so the only software on it is used to compile the game. It is running in Wubi if that makes a difference.

christoph

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.christoph-egger.org
Windows in Linux
« Reply #7 on: June 30, 2008, 05:54:38 pm »
for those build failures I suggest to install apt-file ;)

You can run apt-file search X11/Xlib.h and it will printout the package you need to install.

lzr

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://lzr.cc
Windows in Linux
« Reply #8 on: July 01, 2008, 08:38:40 am »
I'm using openal-soft, and it still clicks. I tried it on a friends computer, who was also using openal-soft, and it clicks there too. I got the border to show when I turned off the Visual Effects in the Appearance Properties window, but putting them on Normal or extra causes the border to no longer work.

Xylankant

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://xylankant.xy.funpic.de
Windows in Linux
« Reply #9 on: July 01, 2008, 07:58:17 pm »
Hi lzr,

I suggest you're using either KDE or Gnome with Beryl/Compiz as Window-Manager, am I right?
If that's the case, I'm affraight it's an Beryl/Compiz - Issue.
So far, I don't know what causes this problem, but me and a friend of mine are able to reproduce it with Compiz under Linux, so there should be done something with tweaking the Window-Manager...

lzr

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://lzr.cc
Windows in Linux
« Reply #10 on: July 02, 2008, 02:10:40 am »
I'm starting to think, at least the window issue (not the sound) is an Ubuntu or Gnome issue. Blender has the exact same issues as programs I compile with SFML.

Xylankant

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://xylankant.xy.funpic.de
Windows in Linux
« Reply #11 on: July 02, 2008, 01:53:19 pm »
Well, it's definitely not a Gnome issue, as I'm right now trying reproducing it under Fedora 9 with Gnome as desktop.
But yes, might be somehow related to Ubuntu (are you using Hardy? Hardy is a bit buggy anyway...).

However, I'm going to test under Fedora 9 with Compiz and report on that later on...

Avency

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Windows in Linux
« Reply #12 on: July 02, 2008, 01:58:53 pm »
I also think that the window issue has something to do with compiz.
It doesn't play nice with OpenGL applications (Blenders interface is OpenGl based as well).
But I've never had the problem that you describe (except Blender, which refuses to run in windowed mode). Try to update your graphics drivers or use a different window manager.

Haze

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Github Profile
Windows in Linux
« Reply #13 on: July 03, 2008, 04:57:46 am »
Quote from: "christoph"
for those build failures I suggest to install apt-file Wink

You can run apt-file search X11/Xlib.h and it will printout the package you need to install.

Yes, here the packages i've installed in order to compile SFML :
- libopenal-dev
- libxrandr-dev
- libsndfile1-dev
Perhaps it should be added in the "SFML and Linux (gcc)" tutorial, it's useful for Linux/APT users (Debian, Ubuntu...) who want/need to compile SFML.

By the way, the download link in this tutorial is broken : http://www.sfml-dev.org/tutorials/1.3/start-linux.php

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Windows in Linux
« Reply #14 on: August 13, 2008, 10:54:59 pm »
I also know this issue from other games (for example Nexius). I think it is a compiz problem, because after uninstalling compiz, everything works fine.

 

anything