View previous topic :: View next topic |
Author |
Message |
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Tue Oct 28, 2008 2:49 pm Post subject: SDL + OpenGL |
|
|
Hi there,
this might be a lame problem, but I'm getting an error "Unable to set ... mode: X11 driver not configured with OpenGL" when running my programs with SDL+OpenGL. When I was first emerging xorg-x11, I didn't have the option "opengl" included in USE. I added that and tried to 'emerge -N xorg-x11', but doesn't recompile, says "No outdated packages ..."
Now I don't know if it's a problem with xorg.conf (missing an option that allows OpenGL) or I really have to recompile X server with the option "opengl" ... and in that case I don't know how to do that. Thanks for any advice. _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
defenderBG l33t
Joined: 20 Jun 2006 Posts: 817
|
Posted: Tue Oct 28, 2008 3:27 pm Post subject: |
|
|
Sethiel, try adding opengl to your use flag and emerge -auvND world (D is for deep, this means it will check if something else except xorg-server can use this flag.
Dont forget to reinstall any x11-drivers/ and then restart.
If you have the problem after this, post:
/etc/X11/xorg.conf
/var/log/Xorg.0.log
eselect opengl list
Version from mesa and xorg-server |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Tue Oct 28, 2008 5:47 pm Post subject: |
|
|
Amazingly xorg-server doesn't have opengl support! Code: | emerge -pv xorg-server
......
[ebuild R ] x11-base/xorg-server-1.4.2 USE="dri hal sdl xorg -3dfx -debug -dmx -ipv6 -kdrive -minimal (-nptl) -xprint" |
But lots of packages do including media-libs/libsdl. My current system uses opengl like this with a 2008.0/desktop profile Code: | $ equery hasuse opengl
[ Searching for USE flag opengl in all categories among: ]
* installed packages
[I--] [ ~] dev-python/PyQt4-4.4.3 (0)
[I--] [ ~] gnome-extra/gnome-games-2.24.1 (0)
[I--] [ ] gnome-extra/gnome-screensaver-2.22.2 (0)
[I--] [ ~] kde-base/kcontrol-3.5.10 (3.5)
[I--] [ ~] kde-base/kdeartwork-kscreensaver-3.5.10 (3.5)
[I--] [ ~] kde-base/kscreensaver-3.5.10 (3.5)
[I--] [ ] media-libs/libsdl-1.2.13 (0)
[I--] [ ] media-libs/xine-lib-1.1.15-r1 (1)
[I--] [ ~] media-sound/amarok-1.4.10-r1 (0)
[I--] [ ~] media-video/mplayer-1.0_rc2_p27725-r1 (0)
[I--] [ ~] net-libs/gtk-vnc-0.3.7 (0)
[I--] [ ~] x11-libs/cairo-1.8.0 (0)
[I--] [ ~] x11-libs/qt-3.3.8b (3)
[I--] [ ~] x11-libs/vte-0.17.4 (0)
[I--] [ ~] x11-misc/xlockmore-5.25 (0)
[I--] [ ~] x11-misc/xscreensaver-5.07 (0)
|
|
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Tue Oct 28, 2008 8:09 pm Post subject: |
|
|
defenderBG wrote: | Sethiel, try adding opengl to your use flag and emerge -auvND world (D is for deep, this means it will check if something else except xorg-server can use this flag.
Dont forget to reinstall any x11-drivers/ and then restart.
If you have the problem after this, post:
/etc/X11/xorg.conf
/var/log/Xorg.0.log
eselect opengl list
Version from mesa and xorg-server |
Helped, thanks. I should probably be ashamed _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Mon Nov 03, 2008 5:56 pm Post subject: |
|
|
Well, it seems to work fine, but whenever the program exits, it reports Unauthorized memory access. (SIGSEGV). I realized it's not happening only in my programs, but for example mplayer with -vo gl does the same. What does this mean? _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Tue Nov 04, 2008 2:35 pm Post subject: |
|
|
Please post your emerge --info |
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Wed Nov 05, 2008 1:36 pm Post subject: |
|
|
Code: | Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Celeron(R) M CPU 410 @ 1.46GHz
Timestamp of tree: Mon, 03 Nov 2008 11:15:03 +0000
app-shells/bash: 3.2_p33
dev-lang/python: 2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r2
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ "
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apm berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd dvdr fortran gdbm gpm gtk hal iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection sdl session spl ssl startup-notification sysfs tcpd unicode x86 xorg xscreensaver zlib" ALSA_CARDS="SB450" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
_________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Wed Nov 05, 2008 2:17 pm Post subject: |
|
|
I would suggest that you switch to a desktop profile and update your system, like this Code: | eselect profile list
eselect profile set <number>
emerge -uDNav world
python-updater
perl-cleaner all |
Then your box should run much better |
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Wed Nov 05, 2008 7:41 pm Post subject: |
|
|
OK, first, is that a solution of this problem or something off topic?
Second, why I'd want to do that? What exactly is affected by various profiles? What changes? I don't have the feeling my system is running slowly, not at all. It actually works much better than before, including Win98, WinXP, Ubuntu, Mandrake, Mandriva, Slackware, Fedora. _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Wed Nov 05, 2008 7:59 pm Post subject: |
|
|
Sethiel wrote: | Well, it seems to work fine, but whenever the program exits, it reports Unauthorized memory access. (SIGSEGV). I realized it's not happening only in my programs, but for example mplayer with -vo gl does the same. What does this mean? |
It is possible that you are missing some use flags required for a consistently running X session, which are provided by a desktop profile. Also updating your system may be sufficient to repair the segfaults you are experiencing. Definitely upgrading to python-2.5 and running python-updater would likely help. |
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Thu Nov 20, 2008 7:45 pm Post subject: |
|
|
No, it didn't help. I'm still experiencing Unauthorized memory access when using OpenGL. Any other idea what can cause this? _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Fri Nov 21, 2008 1:47 pm Post subject: |
|
|
Sethiel wrote: | No, it didn't help. I'm still experiencing Unauthorized memory access when using OpenGL. Any other idea what can cause this? |
Your mesa or 3d drivers are messed up. I've seen this once before. I basically had to reinstall the entire X stack and remake any X-related configs. I didn't take notes, so I'm just going on memory. |
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Thu Dec 18, 2008 1:11 am Post subject: |
|
|
I'm using ati drivers. So I have graphic card in make.conf set to "fglrx", I've emerged atidrivers and I have set "eselect opengl set ati". I also used aticonfig on my xorg.conf, which added a few lines and removed a lot of comments, which I don't like very much. I'm still getting SIGSEGV sometimes ... usually during shutting down some graphic application. Like mplayer.
What are possible causes of this problem I didn't check? Please, give me some ideas. I'm a newbie, but now I think I might have some config in kernel turned on that should be off or vice versa, or it's notebook-based problem and I have to use something different for my ATI Mobility. _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
Sethiel n00b
Joined: 26 Oct 2008 Posts: 37
|
Posted: Thu Dec 18, 2008 1:22 am Post subject: |
|
|
Don't know if it's rellevant, but glxinfo says I do have direct rendering and glxgears gives the number of ~900 FPS without crashing down with SIGSEGV. _________________ Imagination is the only weapon in the war against reality. |
|
Back to top |
|
|
|