profile-image

dglent

Dimitrios Glentadakis , France

meteo-qt

Qt Stuff Sep 10 2017
Score 65%
65 Likes
35 Dislikes

Mageia RPM icon

Individual Icons Feb 03 2012
Score 52%
52 Likes
48 Dislikes

Konqueror userbar

Cliparts Sep 03 2011
Score 50%
50 Likes
50 Dislikes
meteo-qt Qt Stuff
Nov 01 2015
meteo-qt Qt Stuff
Nov 01 2015
GrooveOff Audio
May 01 2015
qScreenshot Graphics
Aug 07 2014
qScreenshot Graphics
Aug 07 2014
San simera KDE Plasma 4 Extensions
Jul 29 2014
San simera KDE Plasma 4 Extensions
Apr 23 2014
kpackage4 System Software
Apr 09 2014
kpackage4 System Software
Hi, i have kde 4.12.97 and qt 4.8.5
The errors in compiling are:

/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp: In member function ‘void KPKG::slotUpdateHistory(bool, QTreeWidgetItem*)’:
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:272:31: σφάλμα: cast from ‘QTreeWidgetItem*’ to ‘uint {aka unsigned int}’ loses precision [-fpermissive]
pAct->setData(QVariant((uint)item));
^
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp: In member function ‘void KPKG::slotOpenRecent(const KUrl&)’:
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:306:50: σφάλμα: cannot call constructor ‘KUrl::List::List’ directly [-fpermissive]
kpackage->openFilesByUrl(KUrl::List::List(url));
^
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:306:50: error: for a function-style cast, remove the redundant ‘::List’ [-fpermissive]
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp: In member function ‘virtual void KPKG::readProperties(const KConfigGroup&)’:
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:376:65: error: cannot call constructor ‘KUrl::List::List’ directly [-fpermissive]
kpackage->openFilesByUrl(KUrl::List::List(QStringList(entry)));
^
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:376:65: error: for a function-style cast, remove the redundant ‘::List’ [-fpermissive]
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp: In member function ‘void KPACKAGE::slotOpenFile()’:
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:494:55: error: cannot call constructor ‘KUrl::List::List’ directly [-fpermissive]
openFilesByUrl(KUrl::List::List(dlg.selectedUrl()));
^
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:494:55: error: for a function-style cast, remove the redundant ‘::List’ [-fpermissive]
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp: In member function ‘pkgInterface* KPACKAGE::getPackageHandler(const QString&)’:
/home/dglent/rpm/BUILD/kpackage4-3.6.0/src/kpackage.cpp:505:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, sizeof(buf) - 1, file);
^
src/CMakeFiles/kpackage.dir/build.make:264: recipe for target 'src/CMakeFiles/kpackage.dir/kpackage.o' failed
make[2]: *** [src/CMakeFiles/kpackage.dir/kpackage.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 35%] Building CXX object src/CMakeFiles/kpackage.dir/kissInterface.o
CMakeFiles/Makefile2:110: recipe for target 'src/CMakeFiles/kpackage.dir/all' failed
make[1]: *** [src/CMakeFiles/kpackage.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
error: Bad exit status from /home/dglent/rpm/BUILDROOT/rpm-tmp.Slm3bb (%build)

but i used cmake to compile.
If i use configure i take this error:
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file.

and if i add the above line i take this error:

/home/dglent/rpm/SOURCES/kpackage4-3.6.0/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx:1:0:
error: bad value (x86_64) for -march= switch

#ifndef __cplusplus
^

CMakeFiles/cmTryCompileExec1622618844.dir/build.make:60: recipe for target
'CMakeFiles/cmTryCompileExec1622618844.dir/testCXXCompiler.cxx.o' failed

gmake[1]: ***
[CMakeFiles/cmTryCompileExec1622618844.dir/testCXXCompiler.cxx.o] Error 1
Apr 07 2014
kpackage4 System Software
It would be nice if it had urpmi support, as i prefer the gui than the mageia's one.

However, to be able to compile it in Mageia 5 64bit, i had to do some changes:

--- kpackage4-3.6.0.orig/src/kpackage.cpp 2014-04-05 11:30:06.000000000 +0200
+++ kpackage4-3.6.0/src/kpackage.cpp 2014-04-06 11:46:25.000000000 +0200
@@ -241 +241 @@
- if (pAct->data().toUInt() == (uint)item) {
+ if (pAct->data().value<void*>() == (void*)item) {
@@ -272 +272 @@
- pAct->setData(QVariant((uint)item));
+ pAct->setData(qVariantFromValue<void*>(item));
@@ -306 +306 @@
- kpackage->openFilesByUrl(KUrl::List::List(url));
+ kpackage->openFilesByUrl(KUrl::List(url));
@@ -376 +376 @@
- kpackage->openFilesByUrl(KUrl::List::List(QStringList(entry)));
+ kpackage->openFilesByUrl(KUrl::List(QStringList(entry)));
@@ -494 +494 @@
- openFilesByUrl(KUrl::List::List(dlg.selectedUrl()));
+ openFilesByUrl(KUrl::List(dlg.selectedUrl()));
diff -U 0 -r kpackage4-3.6.0.orig/src/main.cpp kpackage4-3.6.0/src/main.cpp
--- kpackage4-3.6.0.orig/src/main.cpp 2014-02-27 12:36:02.000000000 +0100
+++ kpackage4-3.6.0/src/main.cpp 2014-04-06 11:47:16.000000000 +0200
@@ -140 +140 @@
- kpackage->openFilesByUrl(KUrl::List::List(files), false);
+ kpackage->openFilesByUrl(KUrl::List(files), false);
diff -U 0 -r kpackage4-3.6.0.orig/src/packageDisplay.cpp kpackage4-3.6.0/src/packageDisplay.cpp
--- kpackage4-3.6.0.orig/src/packageDisplay.cpp 2014-03-03 16:34:50.000000000 +0100
+++ kpackage4-3.6.0/src/packageDisplay.cpp 2014-04-06 11:48:07.000000000 +0200
@@ -443 +443 @@
- KRun::displayOpenWithDialog(KUrl::List::List(url), this);
+ KRun::displayOpenWithDialog(KUrl::List(url), this);


also, i have Greek localisation in my system, and i have some text without encoding:
"install time
ÎÏÏ 09 Φεβ 2014 11:09:02 Ïμ CET
distribution
Mageia
vendor
Mageia.Org
packager

build-time
ÎÏÏ 19 Îαν 2014 07:37:31 μμ CET"

in "Properties" and "Changelog" tabs.

In some python programs, to display the text in Greek correctly in qt, i use the self.trUtf8(), if not, i have exactly the above output with symbols.
Apr 06 2014
Systemd-kcm System Software
Feb 20 2014
San simera KDE Plasma 4 Extensions
Jan 13 2014
Export2pdf Dolphin Service Menus
Jan 02 2014
Export2pdf Dolphin Service Menus
Jan 01 2014
Export2pdf Dolphin Service Menus
Jan 01 2014