From: <Mar...@be...> - 2007-08-01 21:59:52
|
Thanks so much for your quick response, Karl. =20 =20 I've taken your advice of starting with an empty template for building static libraries. I am, however, getting some trouble with functions being declared as dllimports, as below: =20 c:\mesa\mesa-7.0\src\mesa\glapi\glapitemp.h(84) : error C2491: 'glNewList' : definition of dllimport function not allowed =20 In the DLL Mesa Solution we have these Preprocessor defines set up: _DEBUG WIN32 _LIB _DLL BUILD_GL32 MESA_MINWARN =20 I got rid of _DLL; is there anything else I should know to put in here to make Mesa know that we're trying to build statically? =20 Thanks for your help. =20 Mark =20 ________________________________ From: kar...@gm... [mailto:kar...@gm...] On Behalf Of Karl Schultz Sent: Wednesday, August 01, 2007 4:51 PM To: Mark Schlosser - Intern Cc: mes...@li...; Karin Smith; George Smith Subject: Re: [Mesa3d-users] Static library of Mesa on Windows? =20 You're on the right track. There are a LOT of settings in the Visual Studio that control this. Although tedious, one sure-fire approach would be to start with an empty project for building a static .LIB and add all the mesa source files to it, using the DLL project as a guide for which files to add and what compiler options to use. But be careful not to use any options for dynamic libs.=20 Another approach is to make a small test project for a static .LIB and compare the settings with a dynamic lib project. You can look at the text project files. Then try modifying the original project using what you learned from the comparison.=20 You're probably just missing one of these items. On 8/1/07, Mar...@be... < Mar...@be...> wrote: Hi, =20 I'm interested in building a static library (.lib) version of Mesa on Windows that we can link in directly to an application, thus bypassing the need to have OPENGL32.DLL. =20 However, from README.WIN32 regarding the VC8 solution file: "Static LIB files are not built. The LIB files that are built with are the linker import files associated with the DLL files." =20 I attempted to change the Visual Studio project's configuration to produce static libraries instead of DLLs, but the libraries it produces are still only linker import files. =20 What would I have to do to get static libraries of Mesa built on Windows? I appreciate any pointers. =20 Thanks, Mark Schlosser ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser.=20 Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________=20 Mesa3d-users mailing list Mes...@li... https://lists.sourceforge.net/lists/listinfo/mesa3d-users =20 |