[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesa3d-users
Subject:    Re: [Mesa3d-users] building Mesa on Windows
From:       Brian Paul <brian.paul () tungstengraphics ! com>
Date:       2007-09-12 17:36:50
Message-ID: 46E823B2.5060509 () tungstengraphics ! com
[Download RAW message or body]


I'm not much help with Windows issues so somebody else will probably 
have to suggest a solution.

-Brian

Andy Skinner wrote:
> When I don't define RESOLVE_3D_TEXTURE_SUPPORT, it can't find
> glTexImage3D.  When, in Visual Studio, I defined it, I was able to
> build.  So we can't just take out the RESOLVE_3D_TEXTURE_SUPPORT stuff
> in glu's mipmap.c.  I imagine there is code elsewhere that needs to be
> put in (the Mesa definition of glTexImage3D).
> 
> I'm not doing anything special in my build other than trying to build
> the solution file with sln.  So I assume it does have osmesa.c.
> 
> thanks
> andy
> 
> -----Original Message-----
> From: Brian Paul [mailto:brian.paul@tungstengraphics.com] 
> Sent: Wednesday, September 12, 2007 12:29 PM
> To: Andy Skinner
> Cc: mesa3d-users@lists.sourceforge.net
> Subject: Re: [Mesa3d-users] building Mesa on Windows
> 
> Andy Skinner wrote:
>> I was able to build on Windows using Visual Studio.
>>
>> However, I'm trying to build within a certain framework, including
>> building from a makefile.  We use devenv to do the build.
>>
>> I'm having a couple of problems.
>>
>> One is that I seem to need to set RESOLVE_3D_TEXTURE_SUPPORT when
>> building glu.
>>
>> What makes it conditional whether Mesa supports glTexImage3D()?
> 
> glTexImage3D() was added in OpenGL 1.2.  The RESOLVE_3D_TEXTURE_SUPPORT 
> stuff in GLU allows for compatibility with OpenGL 1.0 and 1.1.
> 
> In this day and age though, I don't know of any OpenGL 1.0 or 1.1 
> libraries in existance so the code to dynamically resolve glTexImage3D 
> could be removed.
> 
> Feel free to submit a patch to do so.
> 
> 
>> If glu
>> were calling functions from the regular OpenGL library, I'd understand
>> why it isn't there.  But is there a reason Mesa supports
> glTexImage3D()
>> some places and not others?
>>
>>
>> Assuming that I really do need to set RESOLVE_3D_TEXTURE_SUPPORT, does
>> anyone know how to set that from a devenv call?  I was able to set it
> in
>> a project properties page in Visual Studio, but I haven't been able to
>> set it from my makefile.
>>
>> How have people who built on Windows dealt with this?
>>
>>
>> My other problem is that, while building osmesa, I get an error:
>> error C2491: 'OSMesaCreateContext' : definition of dllimport function
>> not allowed
> 
> I don't know what that error means.
> 
> 
>> There are also errors for OSMesaCreateContextExt,
> OSMesaDestroyContext,
>> and several more.  Anybody know what this is?  I don't think I had a
>> problem when I built in Visual Studio.
> 
> Are you including src/mesa/driver/osmesa/osmesa.c in your build?
> 
> -Brian
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-users mailing list
Mesa3d-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic