Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: unresolved references to glut/jpeg/gl stuff  (Read 2877 times)

0 Members and 2 Guests are viewing this topic.

Clairvoire

  • Newbie
  • *
  • Posts: 29
    • AOL Instant Messenger - Clairvoire
    • View Profile
    • http://clairvoire.deviantart.com
unresolved references to glut/jpeg/gl stuff
« on: January 25, 2014, 01:00:58 am »
I'm in a bit of a pickle... I updated to the lastest version of SFML from source, and have been getting linker errors no matter what I do.

I'm using VS2010, telling cmake to generate static SFML libraries (SFML_STATIC is defined).  Everything compiles fine for SFML, but when I include them into my project, things don't go so well... This is the build output it's throwin' at me:

1>  All outputs are up-to-date.
1>sfml-window-s.lib(GlContext.obj) : error LNK2001: unresolved external symbol __imp__glEnable@4
1>sfml-graphics-s.lib(RenderTarget.obj) : error LNK2001: unresolved external symbol __imp__glEnable@4
1>sfml-window-s.lib(GlContext.obj) : error LNK2001: unresolved external symbol __imp__glGetString@4
1>sfml-window-s.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4

...

1>sfml-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol ___glewUniform4fARB
1>sfml-graphics-s.lib(Shader.obj) : error LNK2001: unresolved external symbol ___glewUniformMatrix4fvARB
1>sfml-graphics-s.lib(Texture.obj) : error LNK2001: unresolved external symbol __imp__glDeleteTextures@8

...

1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_finish_compress
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_write_scanlines
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_start_compress
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_set_quality
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_set_defaults
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_stdio_dest
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_CreateCompress
1>sfml-graphics-s.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol _jpeg_std_error
1>sfml-graphics-s.lib(RenderTextureImplFBO.obj) : error LNK2001: unresolved external symbol ___GLEW_EXT_framebuffer_object
1>sfml-graphics-s.lib(RenderTextureImplFBO.obj) : error LNK2001: unresolved external symbol ___glewDeleteFramebuffersEXT

...

1>sfml-system-s.lib(SleepImpl.obj) : error LNK2001: unresolved external symbol __imp__timeEndPeriod@4
1>sfml-system-s.lib(SleepImpl.obj) : error LNK2001: unresolved external symbol __imp__timeBeginPeriod@4
1>sfml-system-s.lib(SleepImpl.obj) : error LNK2001: unresolved external symbol __imp__timeGetDevCaps@8
1>F:\Sealark\Tools\Tools.exe : fatal error LNK1120: 95 unresolved externals

I've tried everything, including reacquiring and compiling the source.   I'm at a total loss...  Am I just forgetting to link or include something?  Any help would be immensely appreciated! 

G.

  • Hero Member
  • *****
  • Posts: 1595
    • View Profile
Re: unresolved references to glut/jpeg/gl stuff
« Reply #1 on: January 25, 2014, 01:25:56 am »
In the most recent sources of SFML you also need to link to its dependencies : https://github.com/SFML/SFML/wiki/FAQ#wiki-build-link-static
« Last Edit: January 25, 2014, 01:33:10 am by G. »

Clairvoire

  • Newbie
  • *
  • Posts: 29
    • AOL Instant Messenger - Clairvoire
    • View Profile
    • http://clairvoire.deviantart.com
Re: unresolved references to glut/jpeg/gl stuff
« Reply #2 on: January 25, 2014, 02:29:42 am »
AAAAA!  That solved it!  Thank you so much! 

 

anything