pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

emulators/wine and OpenGL



Dear folks,

i've been fiddling with Wine to get OpenGL going. Even when specifying the
`opengl' option on compilation the program i want to test
(http://www.tamasoft.co.jp/pepakura-en/download/viewer.html) refuses to run
since it wants to use OSMesa that is part of NetBSD's X11R7 install.

What i found is that libOSMesa does exist and is found but linking it fails
due to its dependence on /usr/X11R7/lib/modules/dri/mesa_dri.so that is not
auto-loaded.

My current hack is setting:

setenv X_EXTRA_LIBS "-L/usr/X11R7/lib/modules/dri \
                -Wl,-R/usr/X11R7/lib/modules/dri/ \
                /usr/X11R7/lib/modules/dri/mesa_dri.so"

This will work for the configure part and libOSMesa.so.7 is indeed found and
linked to. Mesa does build with this extra setting and winecfg runs fine.

When i run the program i get the following wine error on NetBSD/i386
(6.1_STABLE) :

err:dib:init_opengl Failed to load OSMesa: /usr/X11R7/lib//libOSMesa.so.7:
Undefined PLT symbol "sl_pp_version" (symnum = 269)

Next to the most likely unrelated:

fixme:actctx:parse_depend_manifests Could not find dependent assembly
L"Microsoft.Windows.Common-Controls" (6.0.0.0)

I have no idea if this last error is an issue, but the program is reported to
work fine in Wine 1.5.

Any ideas as how to fix it? I guess graphics/MesaLib or friends needs patching
but how can we otherwise fix this so that it DOES load the mesa_dri.so file?

If i lookup the sl_pp_version symbol i get:

Binary file /usr/X11R7/lib/modules/dri/mesa_dri.so matches
Binary file /usr/X11R7/lib/modules/dri/mesa_dri.so.0 matches
Binary file /usr/X11R7/lib/libGL.so matches
Binary file /usr/X11R7/lib/libGL.so.2 matches
Binary file /usr/X11R7/lib/libOSMesa.so.7 matches
Binary file /usr/X11R7/lib/libGL.a matches
Binary file /usr/X11R7/lib/libGL_p.a matches
Binary file /usr/X11R7/lib/libGL_pic.a matches
Binary file /usr/X11R7/lib/libOSMesa.a matches
Binary file /usr/X11R7/lib/libOSMesa_p.a matches
Binary file /usr/X11R7/lib/libOSMesa_pic.a matches
Binary file /usr/X11R7/lib/libOSMesa.so matches
Binary file /usr/X11R7/lib/libOSMesa.so.7.0 matches
Binary file /usr/X11R7/lib/libGL.so.2.0 matches

and only mesa_dri.so seems to fullfill it since when i link even the
testprogram to libGL using the X_EXTRA_LIBS, it does give a link error.

libOSMesa  : U sl_pp_version
libGL      : 000d43f0 t sl_pp_version
mesa_dri.so: 000a5ad0 T sl_pp_version

What would be a proper solution? Am i missing something?

With regards,
Reinoud



Home | Main Index | Thread Index | Old Index