From: Stephane R. <ro...@ca...> - 2005-12-13 17:06:34
|
I changed the settings to Multithreaded, but have some pb with Multithreaded DLL in osmesa :=20 Mesa3d-6.4.2\src\mesa\drivers\osmesa\osmesa.c(737) : error C2491: 'OSMesaCreateContext' : definition of dllimport function not allowed I tried to check what is wrong, but cannot find the problem. (In my project, I will only use OSMesa) Thanks, Stephane =20 ________________________________ From: mes...@li... [mailto:mes...@li...] On Behalf Of Karl Schultz Sent: Tuesday, December 13, 2005 11:56 AM To: Stephane Routelous Cc: Brian Paul; mes...@li... Subject: Re: [Mesa3d-users] Compilation and Link fails when using VC7 It is single threaded because no one has tried multi-threaded or tested it. Also, the Windows driver code had or has some static variables that might not work in an MT situation. I'd have to look at the rest of the Mesa code to see if it can be built MT. If you'd like to try making the changes so it can be built MT, I will be glad to check them into CVS. Right now, I'm working on the GDI driver, which still needs some attention to work properly with the RenderBuffer architecture changes. I know that glquake doesn't work right at the moment and it used to. Karl On 12/13/05, Stephane Routelous <ro...@ca...> wrote:=20 Thanks Brian, =09 It fixes the build =09 I have one question : In the solution for the VC7 build, the Mesa project is set to be compiled in SingleThreaded. Is that an error or is there a reason why the mesa.lib is generated as singlethreaded ? =09 Thanks , =09 Stephane =09 =09 -----Original Message----- From: Brian Paul [mailto:bri...@tu...] Sent: Tuesday, December 13, 2005 9:45 AM To: Stephane Routelous Cc: Kovalan Muniandy; mes...@li... Subject: Re: [Mesa3d-users] Compilation and Link fails when using VC7=20 =09 This is fixed in CVS. =09 -Brian =09 Stephane Routelous wrote: > Hi, > > This morning, I got Mesa 6.4.1 and tried to compile it with VC7.1 I > faced the same error as you, but adding the scopes around the macro=20 > does not solve the problem. > > Stephane > > (BTW, I defined CHAN_BITS to 32 and TRIANGLE_WALK_DOUBLE to 1 in > config.h) > > > > ----------------------------------------------------------------------=20 > -- > *From:* mes...@li... > [mailto:mes...@li... <mailto:mes...@li...> ] *On Behalf Of > *Kovalan Muniandy > *Sent:* Monday, December 12, 2005 7:22 PM > *To:* mes...@li... > *Subject:* [Mesa3d-users] Compilation and Link fails when using VC7=20 > > > Hi, > > I am trying to build MesaGL on Win32 using VC7. Issues encountered: > > A) I am unable to solve the following linkage problem: > > ------ Build started: Project: osmesa, Configuration: Debug Win32=20 > ------ > > Linking... > ..\..\..\..\src\mesa\drivers\osmesa\osmesa.def(1) : warning LNK4017: > DESCRIPTION statement not supported for the target platform; ignored > Creating library .\Debug/OSMESA32.lib and object=20 > .\Debug/OSMESA32.exp driverfuncs.obj : error LNK2019: unresolved > external symbol __tnl_program_string referenced in function > __mesa_init_driver_functions Debug/OSMESA32.DLL : fatal error LNK1120: =09 > 1 unresolved externals > > BTW, why do I need OSMESA32.DLL? > > B) I had compilation problem in mesa and osmesa projects which I > managed to fix . > > The problem was due to declaration of temporary variable "GLuint i"=20 > when using macro RENDER_SPAN. Placing scopes around the macro solves > the > problem: > > #define RENDER_SPAN( span ) =09 > \ > Added Scope -> {\ > GLuint i; =09 > \ > GLuint *img =3D (GLuint *) PIXELADDR4(span.x, span.y); > \ > for (i =3D 0; i < span.end; i++) { =09 > \ > const GLdepth z =3D FixedToDepth(span.z); =09 > \ > if (z < zRow[i]) { \ > img[i] =3D pixel; \ > zRow[i] =3D z; =09 > \ > } =09 > \ > span.z +=3D span.zStep; =09 > \ > } \ > Added Scope -> } > #include "swrast/s_tritemp.h" > > Ps. Microsoft compiler doesn't like defining a variable in the middle=20 > of a scope when it compiles C code. > > Kovalan =09 =09 =09 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id=16865&opclick <http://ads.osdn.com/?ad_idv37&alloc_id=16865&opclick>=20 _______________________________________________ Mesa3d-users mailing list Mes...@li... https://lists.sourceforge.net/lists/listinfo/mesa3d-users =09 |