Thứ Bảy, 5 tháng 4, 2014

Sau đây mình sẽ hướng dẫn các bạn cài openGL vào Visual Studio

tải cái này về

Gải nén
1.“glut32.dll” Chép vào thư mục C:\Windows\System32 và C:\Windows\SysWOW64 )
2.“glut.h” Chép vào thư mục include của Visual C++.
• Với bản 2013 chép vào C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
• Với phiên bản 2010: Chép vào: C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\gl.
• Với phiên bản 2008: Chép vào: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl.
• Với phiên bản 2005: Chép vào: C:\Program Files\Microsoft Visual Studio.NET\Vc7\PlatformSDK\Include\gl
3. “glut32.lib” Chép vào thư mục library:
• Với bản 2013 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib
• Với phiên bản 2010: Chép vào: C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\gl.
• Với phiên bản 2008: Chép vào: C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl.
• Với phiên bản 2005: Chép vào: C:\Program Files\Microsoft Visual Studio.NET\Vc7\PlatformSDK\Include\gl
B2. Thiết lập cho project Visual Studio.
• Tạo một empty project Win32 console application.
• Click chuột phải vào dự án ở Solution Explorer, chọn Properties.
Phần Linker -> input mục Additional Dependence nhập các đoạn text sau:
glut32.lib
glu32.lib
opengl32.lib
Phần VC++ Directories, chọn mục Include Directories click edit vào trỏ đến đường dẫn tương ứng cho thư mục include ở phần trên(vd win 64 ban 2013. C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include. với Library Directories chọn mục Include Directories click edit vào trỏ đến đường dẫn tương ứng cho thư mục Lib
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib

Next
Bài đăng Mới hơn
Previous
This is the last post.

0 nhận xét:

Đăng nhận xét