Compiling wine - libOSMesa development files not found

Questions about Wine on Linux
Locked
aidfarh
Newbie
Newbie
Posts: 4
Joined: Fri Jan 06, 2012 5:11 am

Compiling wine - libOSMesa development files not found

Post by aidfarh »

I'm having a problem compiling Wine 64-bit. I'm using wine 1.5.17 source code from git. I'm running

Code: Select all

./configure --enable-win64
and I keep getting this error at the end:

Code: Select all

configure: libOSMesa development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
This didn't use to appear before. I don't know what has changed on my system. I have libosmesa6-dev installed.
Looking through config.log, this shows up:

Code: Select all

configure:9041: checking for -lOSMesa
configure:9066: gcc -o conftest -g -O2    conftest.c -lOSMesa   -lSM -lICE -lXext -lX11 -lm   >&5
/tmp/ccZhfkZe.o: In function `main':
/home/aidfarh/wine_git_build/64_new/conftest.c:172: undefined reference to `glAccum'
collect2: error: ld returned 1 exit status
Full config.log is attached

My system spec:
CPU/GPU: AMD A6-3500 with Radeon HD 6530D
OS: Kubuntu 12.10 64-bit

Any help will be appreciated. Please tell me if you need further info. Thanks in advanced.
Attachments
config.log.zip
config.log
(43.96 KiB) Downloaded 220 times
rndbit
Level 1
Level 1
Posts: 5
Joined: Wed Mar 06, 2013 2:57 pm

Re: Compiling wine - libOSMesa development files not found

Post by rndbit »

same error when trying to build 32 bit wine using chroot method on ubuntu 12.10 (wine trunk, latest release 1.5.25).
help from wine devs would be really appreciated. ubuntu is one of the most popular distros, wine not compiling on it is rather disappointing.
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Compiling wine - libOSMesa development files not found

Post by dimesio »

Make sure you have the 32 bit libOSMesa development files installed. If you do, and Wine still can't find it, check the configure log to see where Wine is looking for it--you may have to make a symlink.
rndbit
Level 1
Level 1
Posts: 5
Joined: Wed Mar 06, 2013 2:57 pm

Re: Compiling wine - libOSMesa development files not found

Post by rndbit »

its all there, everything installed and in proper places.

yesterday after digging little deeper (like config.log duh!) i found error about missing glAccum symbol in libosmesa test. i checked libosmesa.so for exported symbol and surely it is not there. some more reading made me think that libosmesa used to contain glAccum but later it was split from libGL or something like that. dont remember any more what made me think that.. so i did nasty hack in configure script to make it compile.
replaced:

Code: Select all

LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
with:

Code: Select all

LIBS="-lOSMesa -lGLU -lGL $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
before first instance of:

Code: Select all

if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
inserted:

Code: Select all

ac_cv_lib_soname_OSMesa=libOSMesa.so
no idea why script failed to pick up libOSMesa.so name, but it was a new error after linking with gl libs. after that project could be compiled. i am not sure this solution is correct either, someone who knows more about these things should verify.
hopolond
Newbie
Newbie
Posts: 3
Joined: Fri Nov 09, 2012 5:09 am

Re: Compiling wine - libOSMesa development files not found

Post by hopolond »

rndbit, thank you. That helps me. But is it good way to solve problem? Where is wine developers answer? -_-
hopolond
Newbie
Newbie
Posts: 3
Joined: Fri Nov 09, 2012 5:09 am

Re: Compiling wine - libOSMesa development files not found

Post by hopolond »

Hmmm...where is my post?
deve
Level 1
Level 1
Posts: 7
Joined: Tue Feb 14, 2012 5:45 am

Re: Compiling wine - libOSMesa development files not found

Post by deve »

Hmm, something new in this topic? Is a correct way to compile current version of wine?

I read that mesa can't be built with shared glapi option.
Locked