2015-01-25 2 views
0

2010 년부터 2013 년까지 Visual Studio를 업그레이드했습니다. here에서 GLUT 소스 코드 배포를 다운로드했습니다. 지침에visual studio로 glut dll을 빌드하는 중 오류가 발생했습니다.

 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" 

어떻게 glut dll을 성공적으로 작성할 수 있습니까?

답변

1

이러한 오류 메시지는 Post-Build Event이 원인입니다.
이러한 사항은 무시해도됩니다.
glut-3.7.6\lib\glut\의 dll은 DebugRelease입니다.

+0

당신 말이 맞습니다. 그러나 내가 그들과 링크를하면 앱이 충돌하고'text.exe'가 작동을 멈췄다 고합니다. 나는 비주얼 스튜디오가 의심 스럽습니다. 2013 무슨 일이 벌어지고 있는지 전혀 알지 못합니다. DLL이 생성 되었기 때문에 대답을 수락했지만 창을 여는 것과 같은 간단한 코드로도 응용 프로그램이 중단됩니다. – CroCo

+0

@CroCo를 사용하여 새 .lib와 연결하고 .dll을 바꾸셨습니까? – Axalo

+0

예. 이것이 제가이 사고의 원인을 알 수없는 이유입니다. – CroCo

관련 문제