Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

wine OpenGL support

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
11 posts • Page 1 of 1
Author
Message
l_bratch
Guru
Guru
Posts: 494
Joined: Tue Feb 08, 2005 9:54 pm
Location: Jersey
Contact:
Contact l_bratch
Website

wine OpenGL support

  • Quote

Post by l_bratch » Sun Mar 06, 2005 11:36 am

Basically when trying to run certain apps that use D3D, I get this:
Application requests a Direct3D interface but OpenGL support not built-in
Any idea how to build in support?

I'm using the latest nVidia drivers (the official ones, not the emerged ones, as they don't come with the 6629 AGP bug fix).
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: wine OpenGL support

  • Quote

Post by i92guboj » Sun Mar 06, 2005 11:42 am

l_bratch wrote:Basically when trying to run certain apps that use D3D, I get this:
Application requests a Direct3D interface but OpenGL support not built-in
Any idea how to build in support?

I'm using the latest nVidia drivers (the official ones, not the emerged ones, as they don't come with the 6629 AGP bug fix).
Which apps? d3d suport is still poor, many libs has not been implemented. If the errors reports the library that is missing you can use the propietary one, supposing that you own a legal copy of Windows, just copy the lib into ~/.wine/fake_windows/Windows/System (or system32, depending the version of win that you are emulating).
Top
l_bratch
Guru
Guru
Posts: 494
Joined: Tue Feb 08, 2005 9:54 pm
Location: Jersey
Contact:
Contact l_bratch
Website

  • Quote

Post by l_bratch » Sun Mar 06, 2005 11:44 am

The app in question is a game called 1nsane, but the error doesn't seem to be suggesting that a lib is missing, more that OpenGL support wasn't compiled into Wine when it was built...
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sun Mar 06, 2005 12:16 pm

Then:

Code: Select all

USE="opengl" emerge -pv wine
If the line seems like this:

Code: Select all

Calculating dependencies ...done!
[ebuild   R   ] app-emulation/wine-20050111  +X +alsa +arts +cups* -debug -doc +gif -glut -jack +jpeg -lcms -nas +ncurses +opengl -oss 0 kB
Then you are ready to go, remove -pv from the command line and wait till the compilation process finish.
Top
l_bratch
Guru
Guru
Posts: 494
Joined: Tue Feb 08, 2005 9:54 pm
Location: Jersey
Contact:
Contact l_bratch
Website

  • Quote

Post by l_bratch » Sun Mar 06, 2005 12:28 pm

Ok I'll try that, is there a way to make it always use opengl for further builds of Wine, or must I use the USE flag each time?

I ask because when I emerge to update everything, I'll lose this flag...
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Sun Mar 06, 2005 12:37 pm

l_bratch wrote:Ok I'll try that, is there a way to make it always use opengl for further builds of Wine, or must I use the USE flag each time?

I ask because when I emerge to update everything, I'll lose this flag...
There are many ways, the two I like most:

1.-Edit /etc/make.conf and put your use flags there, mine looks this way:

Code: Select all

USE="X -Xaw3d -kde -qt -gtk -gtk2 -gnome -motif -no_wxgtk1 \
        pic nptl nptlonly userlocales nls no-old-linux \
        mmx 3dnow sse 3dnowex nvidia \
        dvd cdr cups hal\
        arts -esd alsa -oss -nas -jack -jack-tmpfs artswrappersuid \
        -tcltk perl truetype unicode \
        flash aim -sdl xine kxdeltas \
        imlib tiff jpeg wmf mp3 -xmms -mikmod \
        cdparanoia dvdread divx4linux real xvid -mad -quicktime"
As you see you can split into lines by ading \ at the end of every line. This method sets USE flags globaly and for all your emerges.

2.-By editing /etc/portage/package.use and adding a line for a particular application. Mine looks this way:

Code: Select all

net-libs/wvstreams -oggvorbis
x11-themes/gentoo-artwork kde
media-gfx/gimp -mmx
dev-python/pygtk gnome
kde-base/arts mad
app-office/openoffice-ximian kde
Top
l_bratch
Guru
Guru
Posts: 494
Joined: Tue Feb 08, 2005 9:54 pm
Location: Jersey
Contact:
Contact l_bratch
Website

  • Quote

Post by l_bratch » Mon Mar 07, 2005 9:16 am

Cheers, works fine now.

I am in fact having another problem with the multiplayer networking of the game, but that's not a problem for this forum...
Top
HardenCoonor
n00b
n00b
Posts: 54
Joined: Thu Feb 19, 2004 2:48 pm

  • Quote

Post by HardenCoonor » Mon Mar 07, 2005 10:40 am

One also have to check whether opengl is really activated, by running

Code: Select all

 opengl-update 
Look at the options, how to enable xorg-x11.

I had recently problems with that, where i did not run opengl-update, and some apps (qt, kdebase) were not compiled with opengl-support.
Top
l_bratch
Guru
Guru
Posts: 494
Joined: Tue Feb 08, 2005 9:54 pm
Location: Jersey
Contact:
Contact l_bratch
Website

  • Quote

Post by l_bratch » Mon Mar 07, 2005 11:38 am

Is it best to use nvidia or xorg-x11?

By using opengl-update I find that it messes up my drivers until I rebuild them.

Maybe this is because I'm using the official ones rather than the ebuild, as the ebuild doesn't seem to have the AGP 42MB bug fix.
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Mon Mar 07, 2005 6:44 pm

l_bratch wrote:Is it best to use nvidia or xorg-x11?

By using opengl-update I find that it messes up my drivers until I rebuild them.

Maybe this is because I'm using the official ones rather than the ebuild, as the ebuild doesn't seem to have the AGP 42MB bug fix.
The xorg-x11 drivers are a compatible implementation of the standard opengl library which does not rely on the hardware. So, most operations are not hardware accelerated, and 3d is not at all. If you want to use all the capabilities from your card you'll need to use nvidia-glx drivers. (I don't remember if you emerged nvidia-glx, if you don't, do it now). Any otherwise you will be rendering by software.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Mon Mar 21, 2005 10:38 am

Code: Select all

USE="nptl nptlonly  usb X opengl svga tiff jpeg png mng gif imlib
-ffmpeg
#nls #does this bugger non eng chars ?!!
nls gtk2 userlocales
-unicode
gimp foomaticdb cups  ppds
3dnow  sse mmx
#3dnowex mmx2  # mplayer only
dvdread nvidia rtc
"
you dont actually need to escape the carriage return withe \ , the string can span several lines as it is. If you do use \ it _must_ be the very last char (is no space after).

As you can see from the snip above you can also comment out whole lines withing the string. I dont know if this 'correct' usage but it works.

Since the nvidia support is linked to the kernel you need to rebuild it if you change kernel or if you rebuild the kernel with more than trivial changes . It's quick enough anyway.

I use the following alias to rebuild nvidia's drivers.

Code: Select all

alias emnv='emerge nvidia-kernel && emerge nvidia-glx'
The ebuilds will also call opengl-update for your.

HTH 8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
Post Reply
  • Print view

11 posts • Page 1 of 1

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic