0 Members and 1 Guest are viewing this topic.
People sometimes think that SFML automatically includes GLEW (a library which manages OpenGL extensions) because SFML uses GLEW internally, but it's only an implementation detail. From the user's point of view, GLEW must be handled like any other external library.
Please explain in detail how to connect glew to sfml 2.2?
C:\Dev\glew-1.12.0\include;C:\Dev\glm;C:\Dev\SFML-2.2\include
C:\Dev\SFML-2.2\lib;C:\Dev\glew-1.12.0\lib\Release\Win32
SFML_STATIC;GLEW_STATIC;WIN32;NDEBUG;_CONSOLE
glew.lib;glew32s.lib;winmm.lib;freetype.lib;jpeg.lib;opengl32.lib;sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib;%(AdditionalDependencies)
1>glew.lib(glew.obj) : error LNK2005: ___glewCopyTexSubImage3D уже определен в glew32s.lib(glew.obj)1>glew.lib(glew.obj) : error LNK2005: ___glewDrawRangeElements уже определен в glew32s.lib(glew.obj)1>glew.lib(glew.obj) : error LNK2005: ___glewTexImage3D уже определен в glew32s.lib(glew.obj)1>glew.lib(glew.obj) : error LNK2005: ___glewTexSubImage3D уже определен в glew32s.lib(glew.obj)1>glew.lib(glew.obj) : error LNK2005: ___glewActiveTexture уже определен в glew32s.lib(glew.obj)...
glew32s.lib;winmm.lib;freetype.lib;jpeg.lib;opengl32.lib;sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib;%(AdditionalDependencies)
1>LINK : warning LNK4098: библиотека по умолчанию "LIBCMT" противоречит использованию других библиотек; используйте параметр /NODEFAULTLIB:library1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: неразрешенный внешний символ "_glewGetErrorString"1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: неразрешенный внешний символ "_glewInit"
glew.lib;winmm.lib;freetype.lib;jpeg.lib;opengl32.lib;sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib;%(AdditionalDependencies)
1>main.obj : error LNK2001: неразрешенный внешний символ "_glewInit@0"
Seriously?
I don't understand the error messages...
1>LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: unresolved external symbol "_glewGetErrorString"1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001: unresolved external symbol "_glewInit"
1>main.obj : error LNK2001: unresolved external symbol "_glewInit@0"
may be I need to use another version of glew?
You need to recompile SFML with your version of glew.
QuoteYou need to recompile SFML with your version of glew.No...
Interesting, because without recompiling I have the same errors.