how glew and freeglut are configured in windows?

This page contains links to useful resources.

  • Visual Studio 2013 is available through MSDNAA.

  • FreeGLUT the OpenGL window management package we will be using. The package is targetted to Linux, but you can get a distribution for Windows (this package will also work on VS 2013).

  • SOIL the Simple OpenGL Image Library package we will be using. I have precompiled libraries for Windows and Mac OSX that can be downloaded in the corresponding installation section below.

  • GLEW the OpenGL Extension Wrangler Library package we will be using for shaders (since Windows contains an old version of OpenGL). NOTE: OSX contains a current version of OpenGL and thus does not require GLEW.

FreeGLUT Installation Instructions

Windows 7 (Visual Studio 2013)

  1. Download and extract freeglut 2.8.1-1 for MSVC.

  2. Copy the contents of the include\GL directory to:

  • (32-bit) C:\Program Files\Windows Kits\8.1\Include\um\gl

  • (64-bit) C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl

Copy freeglut.lib from the lib directory (NOT the x64 subdirectory) to:

  • (32-bit) C:\Program Files\Windows Kits\8.1\Lib\win8\um\x86

  • (64-bit) C:\Program Files (x86)\Windows Kits\8.1\Lib\win8\um\x86

Copy freeglut.dll from the bin directory (NOT the x64 subdirectory) to:

  • (32-bit) C:\Windows\System32

  • (64-bit) C:\Windows\SysWOW64

Windows 8.1 (Visual Studio 2013)

  1. Download and extract freeglut 2.8.1-1 for MSVC.

  2. Copy the contents of the include\GL directory to:

  • C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl

Copy freeglut.lib from the lib directory (NOT the x64 subdirectory) to:

  • C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86

Copy freeglut.dll from the bin directory (NOT the x64 subdirectory) to:

  • C:\Windows\SysWOW64

Linux (ubuntu)

From a terminal window

$ sudo apt-get install freeglut3-dev

Mac OSX

Install XCode which includes OSX GLUT libraries.

SOIL Installation Instructions

Windows 7 (Visual Studio 2013)

  1. Copy the header file in the links to (you will need to make a new SOIL directory):

Copy the library in the links to:

Windows 8.1 (Visual Studio 2013)

  1. Copy the header file in the links to (you will need to make a new SOIL directory):

  • SOIL.h C:\Program Files (x86)\Windows Kits\8.1\Include\um\SOIL

Copy the library in the links to:

  • SOIL.lib C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86

Linux (ubuntu)

From a terminal window

$ sudo apt-get install libsoil-dev

Mac OSX

  1. Download the mac header.

  2. In a terminal window, from the directory where you downloaded the header file:

    $ sudo mkdir /usr/local/include/SOIL $ sudo cp SOIL.h /usr/local/include/SOIL/
  3. Download libSOIL.a.

  4. In a terminal window, from the directory where you downloaded the library:

    $ sudo cp libSOIL.a /usr/local/lib/

GLEW Installation Instructions

Windows 7 (Visual Studio 2013)

  1. Download and extract (be sure to get the Windows 32-bit version even if you are running a 64-bit OS) precompiled binaries.

  2. Copy the contents of the include\GL directory to:

  • (32-bit) C:\Program Files\Windows Kits\8.1\Include\um\gl

  • (64-bit) C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl

Copy glew32.lib in the lib directory to:

  • (32-bit) C:\Program Files\Windows Kits\8.1\Lib\win8\um\x86

  • (64-bit) C:\Program Files (x86)\Windows Kits\8.1\Lib\win8\um\x86

Copy glew32.dll in the bin directory to:

  • (32-bit) C:\Windows\System32

  • (64-bit) C:\Windows\SysWOW64

Windows 8.1 (Visual Studio 2013)

  1. Download and extract (be sure to get the Windows 32-bit version even if you are running a 64-bit OS) precompiled binaries.

  2. Copy the contents of the include\GL directory to:

  • C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl

Copy glew32.lib in the lib directory to:

  • C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86

Copy glew32.dll in the bin directory to:

  • C:\Windows\SysWOW64

Linux (ubuntu)

From a terminal window

$ **sudo apt-get install libglew-dev**

Mac OSX

GLEW is not needed for OSX.


转载于:https://my.oschina.net/RoyalLiu/blog/348930

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值