so i never used this library before, i found it while searching for crossplatform GUI for OpenGL. I followed the video showing how to compile the libraries with it's dependencies, and got a warning with CMake, just for the heck of it i tried to compile it with VS 10 since it said it finished generating, and then i got a compiler error. Not sure if the 2 are related but in the video there are no warnings produced by CMake and compilation works.
The CMake warning :
Code: Select all
CMake Warning (dev) in cegui/src/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Target "CEGUIBase-0" has an INTERFACE_LINK_LIBRARIES property which differs
from its LINK_INTERFACE_LIBRARIES properties.
INTERFACE_LINK_LIBRARIES:
$<$<NOT:$<CONFIG:DEBUG>>:F:/Projects/cegui-0.8.3/dependencies/lib/dynamic/freetype.lib>;$<$<CONFIG:DEBUG>:F:/Projects/cegui-0.8.3/dependencies/lib/dynamic/freetype_d.lib>;$<$<NOT:$<CONFIG:DEBUG>>:F:/Projects/cegui-0.8.3/dependencies/lib/dynamic/pcre.lib>;$<$<CONFIG:DEBUG>:F:/Projects/cegui-0.8.3/dependencies/lib/dynamic/pcre_d.lib>;winmm;$<$<CONFIG:DEBUG>:DbgHelp>
LINK_INTERFACE_LIBRARIES:
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in cegui/src/RendererModules/OpenGL/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Target "CEGUIOpenGLRenderer-0" has an INTERFACE_LINK_LIBRARIES property
which differs from its LINK_INTERFACE_LIBRARIES properties.
INTERFACE_LINK_LIBRARIES:
glu32;opengl32;$<$<NOT:$<CONFIG:DEBUG>>:F:/Projects/cegui-0.8.3/dependencies/lib/dynamic/glew.lib>;$<$<CONFIG:DEBUG>:F:/Projects/cegui-0.8.3/dependencies/lib/dynamic/glew_d.lib>;CEGUIBase-0
LINK_INTERFACE_LIBRARIES:
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in cegui/src/CommonDialogs/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Target "CEGUICommonDialogs-0" has an INTERFACE_LINK_LIBRARIES property
which differs from its LINK_INTERFACE_LIBRARIES properties.
INTERFACE_LINK_LIBRARIES:
CEGUIBase-0
LINK_INTERFACE_LIBRARIES:
This warning is for project developers. Use -Wno-dev to suppress it.
The compiler errors :
Code: Select all
Error 6 error C2001: newline in constant F:\Projects\cegui-0.8.3\samples\FontDemo\Sample_FontDemo.cpp 134 1 CEGUIFontDemo
Error 7 error C2001: newline in constant F:\Projects\cegui-0.8.3\samples\FontDemo\Sample_FontDemo.cpp 147 1 CEGUIFontDemo
Error 8 error C2001: newline in constant F:\Projects\cegui-0.8.3\samples\GameMenu\GameMenu.cpp 692 1 CEGUIGameMenuDemo
Error 9 error C2146: syntax error : missing ')' before identifier 'd_botBarLabel' F:\Projects\cegui-0.8.3\samples\GameMenu\GameMenu.cpp 694 1 CEGUIGameMenuDemo
Error 10 error C2001: newline in constant F:\Projects\cegui-0.8.3\samples\GameMenu\GameMenu.cpp 717 1 CEGUIGameMenuDemo
Error 11 error C2146: syntax error : missing ')' before identifier 'd_topBarLabel' F:\Projects\cegui-0.8.3\samples\GameMenu\GameMenu.cpp 719 1 CEGUIGameMenuDemo
Error 13 error C2001: newline in constant F:\Projects\cegui-0.8.3\samples\GameMenu\GameMenu.cpp 748 1 CEGUIGameMenuDemo
Error 14 error C2146: syntax error : missing ')' before identifier 'd_botBarLabel' F:\Projects\cegui-0.8.3\samples\GameMenu\GameMenu.cpp 750 1 CEGUIGameMenuDemo
The line from the fontdemo that it talks about is :
Code: Select all
(encoded_char*)"+ - ? B I W Y f n t ℹ ⇦ ⇧ ⇨ ⇩ ⌘ ☎ ☐ ☑ ⚖ ⚙ ⚠ ⛏ ✎ ✑ ✓ ✔ ✕ ✖ ❝ ❞ ➡ ⬀ ⬁ ⬂ ⬃ ⬅ ⬆ ⬇ ⬈ ⬉ ⬊ ⬋ "
for the first error,
Code: Select all
" "
for the second and
Code: Select all
finalText += reinterpret_cast<const encoded_char*>("❚");
for the others (same code different line/file).
All errors seem to be from the demo files, so i'm not sure if i should exclude them from the compilation or not.