23
« on: August 20, 2016, 03:38:19 pm »
Hi,
Really a wonderful game and I am looking forward to learn from it. Trying to compile on Ubuntu and managed to resolve some of the errors. Now I gave up and thought some one can help me here. I copied the imgui header files in the include directory and after running make, I am getting this error.
/home/git/Cendric2/tools/DialogueTool/src/GUI/LogWindow.cpp:14:44: error: invalid initialization of reference of type ‘const ImVec4&’ from expression of type ‘sf::Color’
ImGui::PushStyleColor(ImGuiCol_Text, log.second);
^
In file included from /home/git/Cendric2/tools/DialogueTool/include/global.h:3:0,
from /home/git/Cendric2/tools/DialogueTool/include/GUI/LogWindow.h:3,
from /home/git/Cendric2/tools/DialogueTool/src/GUI/LogWindow.cpp:1:
/home/git/Cendric2/tools/DialogueTool/include/imgui.h:177:29: note: in passing argument 2 of ‘void ImGui::PushStyleColor(ImGuiCol, const ImVec4&)’
IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col);
^
/home/git/Cendric2/tools/DialogueTool/src/GUI/LogWindow.cpp:15:39: warning: format not a string literal and no format arguments [-Wformat-security]
ImGui::TextWrapped(log.first.c_str());
^
CMakeFiles/DialogueTool.dir/build.make:182: recipe for target 'CMakeFiles/DialogueTool.dir/tools/DialogueTool/src/GUI/LogWindow.cpp.o' failed
make[2]: *** [CMakeFiles/DialogueTool.dir/tools/DialogueTool/src/GUI/LogWindow.cpp.o] Error 1
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/DialogueTool.dir/all' failed
make[1]: *** [CMakeFiles/DialogueTool.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2