40 likes | 176 Views
Install for 64bit. Glui2.36.zip 을 다운로드 src msvc glui.sin 파일을 Visual Studio 2010 으로 열기 _glui library 를 선택후 빌드 빌드시 다음과 같은 오류가 발생하면 error C2252: an explicit instantiation of a template can only occur at namespace scope
E N D
Install for 64bit • Glui2.36.zip을 다운로드 • src msvc glui.sin 파일을 Visual Studio 2010으로 열기 • _glui library를 선택후 빌드 • 빌드시 다음과 같은 오류가 발생하면 • error C2252: an explicit instantiation of a template can only occur at namespace scope • 아래 코드를 짤라내어 GLUIAPI GLUI_CommandLine 함수 선언 위쪽에 붙여넣기 #ifdef _MSC_VER template class GLUIAPI std::allocator<GLUI_String>; template class GLUIAPI std::vector<GLUI_String, std::allocator<GLUI_String> >; #endif • src msvc lib 폴더에 생성된 gluiXXd.lib 를 gluiXX.lib로 이름 변경
Install for 64bit • Header • glut.h, glui.h • C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include/GL • Library • glut32.lib, glut64.lib, glui32.lib, glui64.lib • C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/lib • DLL • glut32.dll, glut64.dll • C:/Windows/SysWOW64 • C:/Windows/ System32
Installing GLUI using VC++ on windows • To install the glui, the glut must be installed first • Download glui library from http://glui.sourceforge.net/ • Under src directory u will find msvc directory, then open glui.sln file. • Convert the solution (if needed) • Converting the project solution into VC++ project • Select the _glui library and build the library • After building the library, the lib file (glui32d.lib), glui32d.lib – ‘d’ for debug, will be stored in the msvc\lib directory • Put the glui32.lib file into C:\Program Files\Microsoft Visual Studio 10.0\VC\lib directory • Put the glui.h file into C:\Program Files\Microsoft Visual Studio 10.0\VC\include directory