Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1076
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 Sad. 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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SDL 2.0
Next Topic: Functions4U: Replaced Tokenize() with safer Tokenize2()
Goto Forum:
  


Current Time: Fri May 17 01:20:22 CEST 2024

Total time taken to generate the page: 0.02156 seconds