5
« on: December 31, 2010, 04:01:42 am »
So I got a new laptop a few days ago (64-bit Windows 7), and I tried to install SFML2. I have Visual Studio 2010 Professional, and I have the 64-bit compiler already installed.
Using CMake, I tried both the Visual Studio 10 compiler and Visual Studio 10 64-bit, and while the standard compiler works fine, some of the examples didn't work. e.g. the shaders example immediately closes after I start it. So then I tried the 64-bit, and SFML doesn't even compile. I get a 130 linker errors for SFML graphics and audio. Example:
Error 83 error LNK2019: unresolved external symbol jpeg_set_defaults referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator
@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z) C:\Users\Zack\sfml2\build\src\SFML\Graphics\ImageLoader.obj sfml-graphics
I suspect it has to do with the external libraries that sfml-graphics and sfml-audio use, but I'm at a loss at what to do. And why don't the 32-bit compiled SFML samples work right?