[ZZ] Compiling the MESA3D opengl32 Library on Windows

Source: Internet
Author: User

Compiling the MESA3D opengl32 Library on Windows

Cheungmine

http://blog.csdn.net/ubuntu64fan/article/details/8061475

Mesa3d is a cross-platform Opengl/es library that does not provide a compiled binary package, so it must be compiled on its own. Linux has this software by default, so it can be used directly on Linux. If you want to compile on Linux, it is also relatively simple, this article does not repeat. So how do you compile this library on Windows? The MESA3D website gives a compilation method.

Http://www.mesa3d.org/install.html

Unfortunately I had an error during the compilation process, and the compilation failed. Finally, I summed up the correct method of compiling, the process is as follows:

My system is windows7+vs2010.

1) Download Mesalib-9.0.zip, unzip to c:\NVPACK\MesaLib-9.0

Ftp://ftp.freedesktop.org/pub/mesa/9.0/MesaLib-9.0.zip

2) Install Python-2.7.2.msi, location: C:\NVPACK\python27\

Add System Environment variables:

Path= ...; C:\NVPACK\python27; C:\NVPACK\python27\Scripts

3) Install Libxml2-python-2.7.7.win32-py2.7.exe, Ann default prompt operation can

Http://xmlsoft.org/sources/win32/python/libxml2-python-2.7.7.win32-py2.7.exe

4) Install Scons-2.2.0-setup.exe, Ann default prompt operation can

http://www.scons.org/

Production (2.2.0)/windows

Http://prdownloads.sourceforge.net/scons/scons-2.2.0-setup.exe

5) Install MinGW, installed in C:\NVPACK\MinGW

Http://sourceforge.net/projects/mingw/files/latest/download

Select All checkboxes and go to the update installation process ...

6) Run MinGW Shell and install Flex and bison by typing the command below

$ mingw-get Install Msys-flex Msys-bison

Copy the following file

C:\NVPACK\MinGW\msys\1.0\bin\flex.exe

For:

C:\NVPACK\MinGW\msys\1.0\bin\lex.exe

Inspection:

Run the MinGW shell, and the command is typed:

$ lex

$ yacc

If no problem, it means Lex and YACC are installed correctly.

7) Compile Mesa9.0. Run the MinGW shell, and the command is typed:

$ cd/c/nvpack/mesa-9.0

$/c/nvpack/python27/scripts/scons.py

The next step is a compile process. The debug version is compiled. Here's how the compilation ended successfully:

Go to the following directory to see it, God: Opengl32.dll really survived:

C:\NVPACK\Mesa-9.0\build\windows-x86-debug\mesa\drivers\windows\gdi\opengl32.dll

C:\NVPACK\Mesa-9.0\build\windows-x86-debug\gallium\targets\libgl-gdi\opengl32.dll

8) What if I compile the release version? This question is reserved for smart readers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.