如何在64位Windows中制作OpenGL应用程序? [英] How to make OpenGL apps in 64-bit Windows?

查看:50
本文介绍了如何在64位Windows中制作OpenGL应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目在xp32中编译,链接并运行,然后尝试将其交叉编译到x64,我遇到了很多问题:

My project compiles, link and run in xp32 then I tried to cross compile it to x64 and I came across a lot of questions:

  1. 没有原生的x64可安装的OpenGL SDK,所以我反对什么?
  2. 我看到有人说x64应用程序使用32位opengl dll.我试着在xp64上运行编译的64位应用程序,该驱动程序带有视频卡(radeon 4850)的驱动程序,与在xp32上使用的驱动程序相同,并且出现了典型错误"bla bla bla,也许重新安装您的应用程序可以解决问题".
  3. 如果我使用视频卡驱动程序,如何使其与其他卡一起使用,是否应该为每个卡构建一个版本? (没有意义).我应该加载可用的库吗? (同样没有意义)
  4. x64的参考实现是哪个?我在哪里可以找到要链接的库?

我在这件事上真的迷失了.我进行了很多搜索,但发现没有任何东西可以帮助我了解情况.

I'm really lost on that matter. I did a lot of searchs and found nothing that helped me understant till the momment.

那么,路径是什么?我想知道如何制作本机x64 OpenGL应用程序?

So, what is the path? What I want to know to make native x64 OpenGL apps?

推荐答案

The 64-bit OpenGL import library is included in the Windows SDK and gets installed to %ProgramFiles%\Microsoft SDKs\Windows\<version>\Lib\x64\OpenGL32.lib. The corresponding DLL is named opengl32.dll and is located in %SystemRoot%\system32. The 32-bit version is also named opengl32.dll and is located in %SystemRoot%\syswow64 on 64-bit Windows.

您无法在64位进程中加载​​32位DLL,因此,无论您对使用32位OpenGL DLL的x64应用程序有何了解,都是不正确的.肯定有一个64位OpenGL DLL,但其名称中带有"32",大概是为了使移植更容易.

You can't load 32-bit DLLs in a 64-bit process, so whatever you read about x64 apps using the 32-bit OpenGL DLL was incorrect. There is definitely a 64-bit OpenGL DLL, but it has "32" in its name, presumably to make porting easier.

这篇关于如何在64位Windows中制作OpenGL应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆