Compiling - WARNING: No OpenGL library found on this system.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Compiling - WARNING: No OpenGL library found on this system.

Post by Fazer »

I downloaded Wine sources with Git. Now when I cd to wine-git folder and do ./configure, at the end I get a message:

Code: Select all

"configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.

configure: Finished.  Do 'make depend && make' to compile Wine."
I installed all packages from this script -
http://kegel.com/wine/hardy.sh from http://wiki.winehq.org/Recommended_Packages

I also have installed these, but I still get that error:
freeglut3-dev
libgl1-mesa-dev
libglu1-mesa-dev
libglut3-dev
mesa-common-dev

What packages do I need?
Evil Jay

Compiling - WARNING: No OpenGL library found on this system.

Post by Evil Jay »

If you're running on any *ubuntu flavor, just run: 'sudo apt-get
build-dep wine'.

-J


Fazer wrote:
I downloaded Wine sources with Git. Now when I cd to wine-git folder and do ./configure, at the end I get a message:


Code:
"configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.

configure: Finished. Do 'make depend && make' to compile Wine."



I installed all packages from this script -
http://kegel.com/wine/hardy.sh from http://wiki.winehq.org/Recommended_Packages

I also have installed these, but I still get that error:
freeglut3-dev
libgl1-mesa-dev
libglu1-mesa-dev
libglut3-dev
mesa-common-dev

What packages do I need?






Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Re: Compiling - WARNING: No OpenGL library found on this sys

Post by Fazer »

Evil Jay wrote:If you're running on any *ubuntu flavor, just run: 'sudo apt-get
build-dep wine'.
I did as you said and downloaded these packages:

Code: Select all

  docbook docbook-dsssl docbook-to-man docbook-utils docbook-xsl jadetex
  libgif-dev libhal-storage-dev libjack-dev libjack0.100.0-dev libosp5
  libostyle1c2 libsgmls-perl libsp1c2 libx86-dev openjade prelink sgmlspl sp
  tex-common texlive-base texlive-base-bin texlive-common texlive-doc-base
  texlive-fonts-recommended texlive-latex-base texlive-latex-recommended tipa
When I did ./configure again, I got the same message about no OpenGL library.

BTW I'm on Ubuntu 8.04.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Compiling - WARNING: No OpenGL library found on this sys

Post by vitamin »

Fazer wrote:When I did ./configure again, I got the same message about no OpenGL library.

BTW I'm on Ubuntu 8.04.
What video card do you have? Is your distro 64-bit (x86_64) or 32-bit?
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

I have Geforce 8800 GT, 173.14.12 drivers. My system is 32-bit.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Fazer wrote:I have Geforce 8800 GT, 173.14.12 drivers. My system is 32-bit.
Reinstall your video drivers.
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

vitamin wrote:
Fazer wrote:I have Geforce 8800 GT, 173.14.12 drivers. My system is 32-bit.
Reinstall your video drivers.
I did it and it didn't help :-/

I found that in this file - http://www.winehq.org/pipermail/wine-cv ... 26213.html Wine seeks for /usr/X11R6/lib/libGL.a. I don't have this file, what is more, I have only bin folder in /usr/X11R6/.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Fazer wrote:
vitamin wrote:
Fazer wrote:I have Geforce 8800 GT, 173.14.12 drivers. My system is 32-bit.
Reinstall your video drivers.
I did it and it didn't help :-/

I found that in this file - http://www.winehq.org/pipermail/wine-cv ... 26213.html Wine seeks for /usr/X11R6/lib/libGL.a. I don't have this file, what is more, I have only bin folder in /usr/X11R6/.
Post your configure.log somewhere.
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

vitamin wrote:Post your configure.log somewhere.
Here you go config.log - http://wklej.org/id/6800/

And here is log from a terminal: http://pastebin.com/m6a8b2929

BTW wklej.org is a polish site for pasting things, I couldn't do the first one on pastebin.com because the log was too long.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Fazer wrote:
vitamin wrote:Post your configure.log somewhere.
Here you go config.log - http://wklej.org/id/6800/

And here is log from a terminal: http://pastebin.com/m6a8b2929

BTW wklej.org is a polish site for pasting things, I couldn't do the first one on pastebin.com because the log was too long.
Remove all the mesa-* stuff. I think it conflicts with nvidia's headers. I think I recall someone having this problem before.
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

vitamin wrote:Remove all the mesa-* stuff. I think it conflicts with nvidia's headers. I think I recall someone having this problem before.
I removed these packages:

freeglut3-dev
libgl1-mesa-dev
libglu1-mesa-dev
libglut3-dev
libqt3-mt-dev
mesa-common-dev
libgl1-mesa-dri

Then I reinstalled nvidia drivers and nothing changed. I compiled Wine anyway and now when I try to launch any game, i. e. Team Fortress 2, I get an error:

Code: Select all

arkadiusz@arkadiusz-hardy:~/.wine/drive_c/Program Files/Steam/steamapps/fazer1988/team fortress 2 -> wine hl2.exe
err:module:import_dll Library OPENGL32.dll (which is needed by L"C:\\Program Files\\Steam\\GameOverlayRenderer.dll") not found
err:d3d:InitAdapters Can't load opengl32.dll!
err:d3d:WineDirect3DCreate Direct3D9 is not available without opengl
Also, there is no "Alsa" entry in Sound options in Winecfg and when I select any other (OSS, Esound...) and test it, the test fails.


I couldn't delete other packages with mesa (libgl1-mesa-glx, libglu1-mesa, mesa-utils), because then I would also erase lots of other important for me files, such as xorg, nvidia-glx-new-envy, compiz, emerald and so on.
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

Finally I found the solution, but it took me a long time.

Firstly I wanted to test new Nvidia beta drivers. I found them on nvidia forum (the official "download" site has only old beta driver) -
http://www.nvnews.net/vbulletin/showthr ... 3&t=119682
Using this tutorial I've managed to uninstall default nvidia modules in Ubuntu 8.04 and download some needed packages -
http://www.nvnews.net/vbulletin/showthr ... 83&t=72490

I restarted the system, stopped X server with

Code: Select all

sudo /etc/init.d/gdm stop
and pressed Ctrl+Alt+F3 to go into runlevel 3, as suggested by the driver installer. Then I cd into a directory where I downloaded the driver and did

Code: Select all

sudo sh NVIDIA-Linux-x86-177.76-pkg1.run
But that was only the beginning. The installer spat out lots of errors. The first ones were

Code: Select all

ERROR: File '/usr/lib/xorg/modules/extensions/libglx.so' is not a symbolic link.

ERROR: Unable to create '/usr/lib/nvidia.libGL.so.1.2.xlibmesa' for copying (no such file or directory).

ERROR: Unable to restore file '/usr/lib/nvidia.libGL.so.1.2.xlibmesa' 
and so on. In spite of that, the driver installed successfully.

Then I googled for the first error and found a solution here - http://ubuntuforums.org/showpost.php?p= ... ostcount=6
I did this

Code: Select all

$ cd /usr/lib/xorg/modules/extensions/
$ sudo ln -s libglx.so.100.14.11 libglx.so
then did "./configure" command once again and this time there was no missing OpenGL library, instead of that - libGLU.

So I tried to install libglu1-mesa-dev and libgl1-mesa-dev through Synaptic, but got an error -

Code: Select all

Unpacking libgl1-mesa-dev (from .../libgl1-mesa-dev_7.0.3~rc2-1ubuntu3_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libgl1-mesa-dev_7.0.3~rc2-1ubuntu3_all.deb (--unpack):
 error creating symbolic link `./usr/lib/libGL.so': No such file or directory
So after a lot of fighting with packages dependencies I found this - https://bugs.launchpad.net/ubuntu/+sour ... bug/231930
I did

Code: Select all

mkdir -p /usr/lib/nvidia
mkdir -p /usr/lib32/nvidia
and it solved my problem.

Thanks to that Wine was compiled with no errors.

Well, almost - now when I go to Winecfg and Sound, I get something like that in Polish:

Code: Select all

"The driver which is configured in the registry is unavailable!
Delete entry "alsa" from the registry?"
There is no Alsa driver to enable, but other works. I will test it more, but do you have any ideas what can I do with it? When I had Wine from deb packages Alsa worked flawlessly.

Edit: Looks like something happened with my libasound2-dev package, because it was installed, but there were no files in /usr/include/alsa. I reinstalled that package, recompiled Wine, reinstalled it and Alsa works.
Usurp
Level 4
Level 4
Posts: 161
Joined: Sat Apr 19, 2008 7:16 am

Post by Usurp »

Fazer wrote: Well, almost - now when I go to Winecfg and Sound, I get something like that in Polish:

Code: Select all

"The driver which is configured in the registry is unavailable!
Delete entry "alsa" from the registry?"
There is no Alsa driver to enable, but other works. I will test it more, but do you have any ideas what can I do with it? When I had Wine from deb packages Alsa worked flawlessly.
As your configure.log paste show it, you are missing the alsa development package(seems to be libaudio2-dev and/or libasound2-dev)

Code: Select all

conftest.c:51:28: error: alsa/asoundlib.h: No such file or directory
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

Usurp wrote:As your configure.log paste show it, you are missing the alsa development package(seems to be libaudio2-dev and/or libasound2-dev)

Code: Select all

conftest.c:51:28: error: alsa/asoundlib.h: No such file or directory
Yes, I just edited my last post about it, it was libasound2-dev ;-)
Neo-drexx
Level 1
Level 1
Posts: 6
Joined: Fri Oct 03, 2008 12:10 pm

Post by Neo-drexx »

i have the same problem, but my distri is opensuse 11.0 64bit and my graph card is geforce 8400 GS (nvidia drivers reinstalled but same problem)

i installed everypackage who stand in suse wiki to compile wine properly...
result: not so many errors at configure but still the opelgl failure...
this packages i cant find in my packages:
sane-32bit
openssl-devel-32bit

when i try to compile it (without opengl and the other things he want) this error comes:
../../tools/wrc/wrc --nostdinc -I. -I. -I../../include -I../../include -I/usr/include/X11/ -D__WINESRC__ -foversion.res version.rc
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./winex11.drv.spec bitblt.o bitmap.o brush.o clipboard.o codepage.o desktop.o dib.o dib_convert.o dib_dst_swap.o dib_src_swap.o event.o graphics.o ime.o init.o keyboard.o mouse.o opengl.o palette.o pen.o scroll.o settings.o systray.o text.o window.o wintab.o x11ddraw.o x11drv_main.o xdnd.o xfont.o xim.o xinerama.o xrandr.o xrender.o xvidmode.o version.res -o winex11.drv.so -lcomctl32 -luser32 -lgdi32 -ladvapi32 -limm32 -lkernel32 -lntdll -Wb,-dcomctl32 -L/usr/X11R6/lib -lXext -lX11 ../../libs/port/libwine_port.a
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../libX11.so whensearching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../libX11.a when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libX11.so when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libX11.a when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
winegcc: gcc failed
make[2]: *** [winex11.drv.so] Fehler 2
make[2]: Leaving directory `/root/wine-1.1.5/dlls/winex11.drv'
make[1]: *** [winex11.drv] Fehler 2
make[1]: Leaving directory `/root/wine-1.1.5/dlls'
make: *** [dlls] Fehler 2
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Neo-drexx wrote:/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lX11
Perhaps you missed this part of the wiki page:
Run configure with:

./configure --prefix=/usr --x-libraries=/usr/X11R6/lib

The --x-libraries switch is important, otherwise it will pick up the 64bit X libraries and just not work.
Neo-drexx
Level 1
Level 1
Posts: 6
Joined: Fri Oct 03, 2008 12:10 pm

Post by Neo-drexx »

only the --prefix=/usr is missing in my configure command, now i add it but same thing...
here my configure command:
./configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/include/X11/ --with-x --prefix=/usr
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Neo-drexx wrote:only the --prefix=/usr is missing in my configure command, now i add it but same thing...
here my configure command:
./configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/include/X11/ --with-x --prefix=/usr
Then you didn't install xorg-x11-libX11-32bit.
Neo-drexx
Level 1
Level 1
Posts: 6
Joined: Fri Oct 03, 2008 12:10 pm

Post by Neo-drexx »

ok, it works, i found help in IRC, some libarys was missing wich doesnt stand in suse wiki. OpenGL also works... thanks for your support
Fazer
Level 3
Level 3
Posts: 80
Joined: Tue Apr 08, 2008 3:12 pm

Post by Fazer »

Neo-drexx wrote:ok, it works, i found help in IRC, some libarys was missing wich doesnt stand in suse wiki. OpenGL also works... thanks for your support
You should tell us which libraries were missing, so that other people won't have problems with compiling Wine in the future.
Locked