Hello Folks,
Encountered a bit of a problem when generating Visual Studio 2010 Project Files using CMake (2.8.2) for the SFML2 pre-release.
CMake Configuration Used BUILD_DOC: No
BUILD_EXAMPLES: Yes
BUILD_SHARED_LIBS: No
CMAKE_BUILD_TYPE: Release
Now all works fine using CMake, but when loading the generated solution into Visual Studio 2010 (Professional) it refuses to load the newly generated project files for the "sfml_xxx" projects.
The following is the output from Visual Studio;
D:\Development_Kits\C++\sfml2\src\SFML\Audio\sfml-audio.vcxproj : error : Unable to read the project file "sfml-audio.vcxproj".
D:\Development_Kits\C++\sfml2\src\SFML\Audio\sfml-audio.vcxproj(98,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 98, position 29.
D:\Development_Kits\C++\sfml2\src\SFML\Graphics\sfml-graphics.vcxproj : error : Unable to read the project file "sfml-graphics.vcxproj".
D:\Development_Kits\C++\sfml2\src\SFML\Graphics\sfml-graphics.vcxproj(98,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 98, position 29.
D:\Development_Kits\C++\sfml2\src\SFML\Network\sfml-network.vcxproj : error : Unable to read the project file "sfml-network.vcxproj".
D:\Development_Kits\C++\sfml2\src\SFML\Network\sfml-network.vcxproj(98,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 98, position 29.
D:\Development_Kits\C++\sfml2\src\SFML\Window\sfml-window.vcxproj : error : Unable to read the project file "sfml-window.vcxproj".
D:\Development_Kits\C++\sfml2\src\SFML\Window\sfml-window.vcxproj(98,29): The project file could not be loaded. An error occurred while parsing EntityName. Line 98, position 29.
In the project files themselves, the lines indicated above are;
sfml-audio.vcxproj: Line 98
<AdditionalOptions> """;"D:/Development_Kits/C++/sfml2/extlibs/libs-msvc/OpenAL32.lib"";"" """;"D:/Development_Kits/C++/sfml2/extlibs/libs-msvc/sndfile.lib"";"" %(AdditionalOptions)</AdditionalOptions>
sfml-graphics.vcxproj: Line 98
<AdditionalOptions> """;"D:/Development_Kits/C++/sfml2/extlibs/libs-msvc/freetype.lib"";"" """;"D:/Development_Kits/C++/sfml2/extlibs/libs-msvc/glew.lib"";"" """;"D:/Development_Kits/C++/sfml2/extlibs/libs-msvc/jpeg.lib"";"" %(AdditionalOptions)</AdditionalOptions>
sfml-network.vcxproj: Line 98
<AdditionalOptions> """;"ws2_32.lib"";"" %(AdditionalOptions)</AdditionalOptions>
sfml-window.vcxproj: Line 98
<AdditionalOptions> """;"opengl32.lib"";"" """;"winmm.lib"";"" """;"gdi32.lib"";"" %(AdditionalOptions)</AdditionalOptions>
Please note: the invalid entries occur on more than just line 98 in each project file.
SolutionRemove the """ entries, and format the lines as follows;
<AdditionalOptions>opengl32.lib;winmm.lib;gdi32.lib;%(AdditionalOptions)</AdditionalOptions>
Hope this can help someone.