我已经将视觉工作室从2010年升级到2013年。我从here下载了GLUT源代码。在说明中,
To build the glut dll:
First, open Microsoft Developer Studio.
Then, select File -> Open Workspace and find the glut.dsw file
in the file dialog and double-click on it.
Finally, select Build -> Build glut32.dll.
When the build is finished, it will copy:
glut32.dll to %WinDir%\System,
glut32.lib to $(MSDevDir)\..\..\VC98\lib, and
glut.h to $(MSDevDir)\..\..\VC98\include\GL.
没有名为VC98
的文件夹。 GL
文件夹位于
C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl
因此,我无法构建glut.dll
。它会抛出以下消息
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "copy C:\Users\XXX\Desktop\glut-3.7.6\lib\glut\Debug\glut32.dll %WINDIR%\SYSTEM32
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: copy C:\Users\XXX\Desktop\glut-3.7.6\lib\glut\Debug\glut32.lib "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\..\..\VC98\lib"
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: copy ..\..\include\GL\glut.h "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\..\..\VC98\include\GL"
如何成功构建过剩的dll?
答案 0 :(得分:1)
这些错误消息是由Post-Build Event引起的
你可以放心地忽略这些
您会在glut-3.7.6\lib\glut\
和Debug
下的Release
找到dll。