[Mesa-users] Inquiry regarding OSMesa and its demo usage in Windows 64bit

Brian Paul brianp at vmware.com
Mon Mar 7 21:33:50 UTC 2016


On 03/07/2016 07:18 AM, Shin Jae Min Jimmy wrote:
> Hello,
>
> For the past few weeks, I have been trying to implement OSMesa into our
> project since we heavily rely on servers to render images.
>
> I successfully built mesa-11.2.0-rc2 and obtained opengl32.dll and
> osmesa.dll and the necessary library files.
>
> I tried to integrate these with the ./demo/osdemo, but then I was
> lacking GLUT and GLU.

Just FYI, OSMesa programs don't typically integrate with GLUT since GLUT 
uses the GLX/X interfaces to create rendering contexts and windows.
The demos only use it for drawing simple 3D objects.


>
> I was able to successfully build mesaglu for Windows x86/x64, but
> mesaglut wasn't building due to bizarre reasons, so I switched to using
> freeglut instead.
>
> After setting the necessary dependencies properly in the osdemo
> projects, it successfully compiled, only to output garbage values. (in
> Win32 environment.)

Garbage values?  Do you mean the resulting image file is incorrect?


>
> In Win64 environment, it did compile, but when I try to run the
> executable, it crashes.

Can you use a debugger to find out where/why?


>
> Just to be clear, I have set all the dependencies and the dlls in the
> correct place, so that is not a problem.
>
> In addition, when I tried to use the Mesa-7.8.2 version which contained
> GLUT and GLU within it, everything worked fine, and even the outputs
> were perfect.
>
> So the question is, how could I make the demo project work with mesa11.2
> or 11.1.2.
>
> Our app currently utilizes OpenGL 4.3 , so we hope to use the latest
> mesa version, but is it okay to use the previous versions for using
> OSMesa only?

I'm not sure I know what you mean.  But the most recent versions of Mesa 
should have a working OSMesa interface.  Depending on the driver 
(llvmpipe/softpipe vs. swrast) you'll get different levels of OpenGL 
support (GL 3.3 vs 2.1).

-Brian



More information about the mesa-users mailing list