Home » Developing U++ » UppHub » SDLCtrl does not compile
Re: SDLCtrl does not compile [message #44911 is a reply to message #44910] |
Mon, 20 July 2015 23:25   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello forlano,
First of all, SDLCtrl is based on DHCtrl which is not implemented for GTK back-end. Zbych was working on it, but without success. Sometimes ago I try to improve OpenGL on GTK, but it also require DHCtrl . So, you need to switch back-end to X11. You can do this by typing "GUI X11" in ide menu bar. It should be easy for experienced upp user.
Second issue is with function "SetError" (SDL/SDL_Ctrl.cpp - line 144). I would recommend to comment method body. I don't know why it doesn't compiles now. Maybe it is related to other upp components.
void SDLCtrl::SDLCtrlIn::SetError(String str) {
/*
if (!strError.IsEmpty())
strError << "\n";
strError << ToUpper(str[0]) + DeQtfLf(str.Mid(1));
*/
}
The error is interesting, so maybe it is not SDL ctrl related issue. Compilation log:
/home/klugier/upp/uppsrc/Core/String.h: In instantiation of 'Upp::String Upp::AsString(const T&) [with T = Upp::Fail__]':
/home/klugier/upp/uppsrc/Core/String.h:484:18: required from 'Upp::String& Upp::operator<<(Upp::String&, const T&) [with T = Upp::Fail__]'
/home/klugier/upp/bazaar/SDL/SDLCtrl.cpp:147:50: required from here
/home/klugier/upp/uppsrc/Core/String.h:436:20: error: 'const class Upp::Fail__' has no member named 'ToString'
return x.ToString();
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Mon, 20 July 2015 23:28] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 11 09:22:21 CEST 2025
Total time taken to generate the page: 0.03545 seconds
|