|
2012-09-26
, 08:34
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#2
|
Is there any point?
-There were reports that hildon-desktop is hogging CPU. Maybe we can get rid of whole (or partly) hildon-desktop.
-Hildon-desktop is only piece which is using closed source graphics driver.
|
2012-09-26
, 13:27
|
Posts: 266 |
Thanked: 156 times |
Joined on Jun 2011
@ India
|
#3
|
|
2012-09-27
, 09:00
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#4
|
|
2012-09-29
, 14:35
|
Posts: 44 |
Thanked: 77 times |
Joined on Jan 2012
|
#5
|
Makefile:84: depend: Nie ma takiego pliku ani katalogu g++ -M -MM -MG -MP -Wall -Werror -O2 -DDESKTOP -DDBUS `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread TeleWindow.cpp Main.cpp XTools.cpp Thumbnail.cpp Settings.cpp Mapping.cpp Mappings.cpp Resources.cpp DBus.cpp XEventLoop.cpp Image.cpp >depend g++ -c -Wall -Werror -O2 -DDESKTOP -DDBUS `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread TeleWindow.cpp -o TeleWindow.o g++ -c -Wall -Werror -O2 -DDESKTOP -DDBUS `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Main.cpp -o Main.o g++ -c -Wall -Werror -O2 -DDESKTOP -DDBUS `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread XTools.cpp -o XTools.o g++ -c -Wall -Werror -O2 -DDESKTOP -DDBUS `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Thumbnail.cpp -o Thumbnail.o Thumbnail.cpp: In member function ‘void Thumbnail::redraw()’: Thumbnail.cpp:500:5: error: narrowing conversion of ‘((((Thumbnail*)this)->Thumbnail::_clientOffsetX - borderWidth) + Settings::instance()->Settings::textLeftMargin())’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Werror=narrowing] Thumbnail.cpp:500:5: error: narrowing conversion of ‘(((Thumbnail*)this)->Thumbnail::_clientOffsetY - headerHeight)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Werror=narrowing] Thumbnail.cpp:500:5: error: narrowing conversion of ‘(((((Thumbnail*)this)->Thumbnail::_clientScaledWidth + (borderWidth * 2)) - Settings::instance()->Settings::textLeftMargin()) - Settings::instance()->Settings::textRightMargin())’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Werror=narrowing] Thumbnail.cpp:500:5: error: narrowing conversion of ‘headerHeight’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Werror=narrowing] cc1plus: all warnings being treated as errors make: *** [Thumbnail.o] Błąd 1
The Following User Says Thank You to riv64 For This Useful Post: | ||
|
2012-10-01
, 09:23
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#6
|
I got this on debian wheezy
Code:is ill-formed in C++11 [-Werror=narrowing] Thumbnail.cpp:500:5: error: narrowing conversion of ... cc1plus: all warnings being treated as errors
|
2012-10-01
, 09:27
|
|
Posts: 1,239 |
Thanked: 1,278 times |
Joined on Aug 2011
@ Balochistan
|
#7
|
|
2012-10-01
, 17:45
|
Posts: 44 |
Thanked: 77 times |
Joined on Jan 2012
|
#8
|
Code is not c++11. My compilers do not know -Wnarrowing. I think dropping -Werror is enough. Now I added (and pushed) "-std=gnu++98" to the Makefile_desktop. Is there some side effects for that?
EDIT: Would this be better? -std=c++98
CFLAGS += -Wall -std=gnu++98 -ggdb -O0 $(DEFINES) `pkg-config --cflags $(DEPS)` -pthread
Makefile:85: depend: Nie ma takiego pliku ani katalogu g++ -M -MM -MG -MP -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread TeleWindow.cpp Main.cpp XTools.cpp Thumbnail.cpp Settings.cpp Mapping.cpp Mappings.cpp Resources.cpp DBus.cpp XEventLoop.cpp Image.cpp MenuReader.cpp LauncherWindow.cpp SectionList.cpp Section.cpp Application.cpp >depend g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread TeleWindow.cpp -o TeleWindow.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Main.cpp -o Main.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread XTools.cpp -o XTools.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Thumbnail.cpp -o Thumbnail.o Thumbnail.cpp: In member function ‘void Thumbnail::redraw()’: Thumbnail.cpp:500:5: warning: narrowing conversion of ‘((((Thumbnail*)this)->Thumbnail::_clientOffsetX - borderWidth) + Settings::instance()->Settings::textLeftMargin())’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thumbnail.cpp:500:5: warning: narrowing conversion of ‘(((Thumbnail*)this)->Thumbnail::_clientOffsetY - headerHeight)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thumbnail.cpp:500:5: warning: narrowing conversion of ‘(((((Thumbnail*)this)->Thumbnail::_clientScaledWidth + (borderWidth * 2)) - Settings::instance()->Settings::textLeftMargin()) - Settings::instance()->Settings::textRightMargin())’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thumbnail.cpp:500:5: warning: narrowing conversion of ‘headerHeight’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Settings.cpp -o Settings.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Mapping.cpp -o Mapping.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Mappings.cpp -o Mappings.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Resources.cpp -o Resources.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread DBus.cpp -o DBus.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread XEventLoop.cpp -o XEventLoop.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Image.cpp -o Image.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread MenuReader.cpp -o MenuReader.o MenuReader.cpp: In destructor ‘MenuReader::~MenuReader()’: MenuReader.cpp:158:24: error: ‘close’ was not declared in this scope MenuReader.cpp: In member function ‘bool MenuReader::hasChange()’: MenuReader.cpp:396:45: error: ‘read’ was not declared in this scope make: *** [MenuReader.o] Błąd 1
The Following User Says Thank You to riv64 For This Useful Post: | ||
|
2012-10-01
, 18:20
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#9
|
‘MenuReader::~MenuReader()’:
MenuReader.cpp:158:24: error: ‘close’ was not declared in this scope
MenuReader.cpp: In member function ‘bool MenuReader::hasChange()’:
MenuReader.cpp:396:45: error: ‘read’ was not declared in this scope
make: *** [MenuReader.o] Błąd 1[/CODE]
#include <unistd.h>
|
2012-10-02
, 20:49
|
Posts: 44 |
Thanked: 77 times |
Joined on Jan 2012
|
#10
|
Makefile:85: depend: Nie ma takiego pliku ani katalogu g++ -M -MM -MG -MP -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread TeleWindow.cpp Main.cpp XTools.cpp Thumbnail.cpp Settings.cpp Mapping.cpp Mappings.cpp Resources.cpp DBus.cpp XEventLoop.cpp Image.cpp MenuReader.cpp LauncherWindow.cpp SectionList.cpp Section.cpp Application.cpp >depend g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread TeleWindow.cpp -o TeleWindow.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Main.cpp -o Main.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread XTools.cpp -o XTools.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Thumbnail.cpp -o Thumbnail.o Thumbnail.cpp: In member function ‘void Thumbnail::redraw()’: Thumbnail.cpp:500:5: warning: narrowing conversion of ‘((((Thumbnail*)this)->Thumbnail::_clientOffsetX - borderWidth) + Settings::instance()->Settings::textLeftMargin())’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thumbnail.cpp:500:5: warning: narrowing conversion of ‘(((Thumbnail*)this)->Thumbnail::_clientOffsetY - headerHeight)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thumbnail.cpp:500:5: warning: narrowing conversion of ‘(((((Thumbnail*)this)->Thumbnail::_clientScaledWidth + (borderWidth * 2)) - Settings::instance()->Settings::textLeftMargin()) - Settings::instance()->Settings::textRightMargin())’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thumbnail.cpp:500:5: warning: narrowing conversion of ‘headerHeight’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Settings.cpp -o Settings.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Mapping.cpp -o Mapping.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Mappings.cpp -o Mappings.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Resources.cpp -o Resources.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread DBus.cpp -o DBus.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread XEventLoop.cpp -o XEventLoop.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Image.cpp -o Image.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread MenuReader.cpp -o MenuReader.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread LauncherWindow.cpp -o LauncherWindow.o LauncherWindow.cpp: In member function ‘void LauncherWindow::paint()’: LauncherWindow.cpp:683:17: warning: narrowing conversion of ‘((i * ((unsigned int)sectionWidth)) + 5u)’ from ‘unsigned int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing] LauncherWindow.cpp:683:17: warning: narrowing conversion of ‘(sectionWidth + -10)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] LauncherWindow.cpp:683:17: warning: narrowing conversion of ‘((LauncherWindow*)this)->LauncherWindow::_panelHeight’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread SectionList.cpp -o SectionList.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Section.cpp -o Section.o g++ -c -Wall -std=gnu++98 -ggdb -O0 -DDESKTOP -DDBUS -DLAUNCHER `pkg-config --cflags x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0` -pthread Application.cpp -o Application.o Application.cpp: In member function ‘void Application::createPicture()’: Application.cpp:436:5: warning: narrowing conversion of ‘((Application::_pixmapHeight - resources->Resources::getTextBackground()->Image::height()) + 2)’ from ‘int’ to ‘short int’ inside { } is ill-formed in C++11 [-Wnarrowing] Application.cpp:436:5: warning: narrowing conversion of ‘(resources->Resources::getTextBackground()->Image::width() + -4)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] Application.cpp:436:5: warning: narrowing conversion of ‘(resources->Resources::getTextBackground()->Image::height() + -4)’ from ‘int’ to ‘short unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] g++ -pthread TeleWindow.o Main.o XTools.o Thumbnail.o Settings.o Mapping.o Mappings.o Resources.o DBus.o XEventLoop.o Image.o MenuReader.o LauncherWindow.o SectionList.o Section.o Application.o -o telescope `pkg-config --libs x11 xcomposite xdamage xrender imlib2 xft dbus-1 glib-2.0
This is attempt to port it to the Fremantle. Source code for (not yet merged) Fremantle-branch: https://bitbucket.org/aaporantalainen/telescope
Install from extras-devel: telescope (not fully optified, uses 131K of rootfs).
Start manually by typing telescope .Root access not needed.
Video: http://youtu.be/WcmFiwmA3JM
Status: it works. Some crashing when closing xterm (unstable). Cosmetic issues. Needs modifications for hildon-desktop (until it is useful).
Is there any point?
-There were reports that hildon-desktop is hogging CPU. Maybe we can get rid of whole (or partly) hildon-desktop.
-Hildon-desktop is only piece which is using closed source graphics driver.