libOSMesa 32-bit development files?

Questions about Wine on Linux
Locked
snowblind
Level 1
Level 1
Posts: 6
Joined: Fri Aug 17, 2012 12:04 pm

libOSMesa 32-bit development files?

Post by snowblind »

I've always compiled Wine from source, and now I'm running into an issue when running ./configure on 1.5.11:

configure: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.

I'm running Arch 64-bit, and I have all of the libOSMesa packages installed:

multilib/lib32-osmesa 8.0.4-4
multilib/lib32-mesa 8.0.4-4
multilib/lib32-libgles 8.0.4-4
multilib/lib32-libglapi 8.0.4-4

I *don't* have lib32-libgl because I have the latest Nvidia drivers installed (GTX 560ti). Does anyone know what I might need to get in order to get this working? Or, really, if it matters at all?

Thanks!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: libOSMesa 32-bit development files?

Post by vitamin »

Check the config.log for more details. Just search for "libOSMesa" to find what is the problem. I'm sure it will be something like this:

Code: Select all

/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../libOSMesa.so when searching for -lOSMesa
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libOSMesa.so when searching for -lOSMesa
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: cannot find -lOSMesa
I was missing 32-bit Mesa-devel package.
roadapathy
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 11:03 pm

Re: libOSMesa 32-bit development files?

Post by roadapathy »

I have the same problem on Ubuntu 10.10 (Maverick) 64 bit

I use the following options:
./configure CFLAGS="-march=bdver1 -mtune=bdver1" CXXFLAGS="${CFLAGS}" --with-opencl --without-oss

My configuration seems great until the end and then it says:
configure: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: gstreamer-0.10 base plugins 32-bit development files not found, gstreamer support disabled

To fix this, I tried
[*]adding the proper libs through synaptic. No luck since WINE wants 32 bit libs and I can only supply 64 bit.
[*]adding the 32 bit libs from 32 bit Ubuntu 10.10 but it caused errors.
[*]Tried to compile MESA 8.04 and 7.9.11 to no avail. After satisfying many dependancies here, it finally coughs and error that can't be fixed. I see now why Ubuntu wants to leave X behind and use Unity. MESA is crap.
[*]Looked for the missing libs from nvidia drivers file. Did not find.

I basically need the 32 bit libs to satisfy WINE 1.5.11 but no luck! I'd like the Gstreamer files too. I've asked for help on Askubuntu.com and I got absolutely nothing. I googled this problem with many keywords. No sollution.

If anybody has a sollution to get the 32 bit libOSMesa libs into the Ubuntu 10.10 64 bit lib32 directory, and make it work, please let me know!
t1nk3r3r
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 2:11 pm

Re: libOSMesa 32-bit development files?

Post by t1nk3r3r »

I'm not sure when "OpenGL rendering in bitmaps" is needed, since I've been able to install and run Portal with no major defects.

Arch64 does not have any "mesa-devel" package.
$ grep libOSMesa config.log
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_get_proc_address'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_get_dispatch_table_size'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_get_context'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_add_dispatch'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_check_multithread'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_tls_Context'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_set_context'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_set_dispatch'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib32/libOSMesa.so: undefined reference to `_glapi_tls_Dispatch'
configure:17371: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.

Installed:
lib32-mesa 8.0.4-4
lib32-mesa-demos 8.0.1-2
lib32-osmesa 8.0.4-4
roadapathy
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 11:03 pm

Re: libOSMesa 32-bit development files?

Post by roadapathy »

I'm just going to try Ubuntu 12.04 on my other hard drive and see if I can compile WINE 1.5.11 on there. This is very frustrating and I've tried everything that I know to do. I just simple can't seem to get the 32 bit library files.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: libOSMesa 32-bit development files?

Post by vitamin »

I think you have a bad libOSMesa.so. Mine has all exports with exception of two with word "tls".

As for gstreamer - it's tricky. You need 32-bit glib2 installed. And instruct pkgconfig to use 32-bit version of libraries via
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig; ./configure && make all
t1nk3r3r
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 2:11 pm

Re: libOSMesa 32-bit development files?

Post by t1nk3r3r »

As far as I can tell, neither of these functions are showstoppers.

@vitamin : What version libOSMesa are you using?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: libOSMesa 32-bit development files?

Post by vitamin »

Mesa-7.11-11.4.2.x86_64
t1nk3r3r
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 2:11 pm

Re: libOSMesa 32-bit development files?

Post by t1nk3r3r »

Might try installing a slightly older version...
Could also be a result of the "bleeding-edge" philosophy of Arch. Lots of changes in the filesystem over the last six months.
roadapathy
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 11:03 pm

Re: libOSMesa 32-bit development files?

Post by roadapathy »

I'm fairly certain that libOSMesa is important because my Steam client had no fonts when I compiled WINE without it. Gstreamer didn't cause any problems, or maybe it did but it wasn't too severe.

I'm going to look into what vitamin said about maybe a MESA file is bad. I dinked around with it pretty bad so maybe this is the cause. I tried Ubuntu 12.04 and 12.10 but they were both terrible. Even I couldn't get GCC 4.7.1 to compile! There were too many problems.
roadapathy
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 11:03 pm

Re: libOSMesa 32-bit development files?

Post by roadapathy »

vitamin: Let me ask you this. Why doesn't --enable-win64 work? It compiles perfectly on every system I try. It looks good. Yet it won't run any of my programs at all, I have to make symbolic links to get it to even try, then when it's linked it gives errors. Furthermore, it doesn't even come with winecfg. I don't understand it!

A year or two ago, I was able to compile --enable-win64 and it worked. I don't understand why it doesn't work.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: libOSMesa 32-bit development files?

Post by vitamin »

Works fine here. For 64-bit applications that it. And it comes with everything regular 32-bit Wine comes with. Otherwise it won't properly wok.
roadapathy
Level 2
Level 2
Posts: 15
Joined: Thu Aug 30, 2012 11:03 pm

Re: libOSMesa 32-bit development files?

Post by roadapathy »

You mean you can't install wine64 as a standalone?
Locked