I ran into a couple of problems when trying to compile the latest CVS (as of 2006-01-09) for desktop use. I am running Ubuntu 5.10 (Breezy), which uses gcc version 4.0.2 20050808.
They are both very simple issues, and I was able to easily correct them myself. I have included diffs of the changes below (made using 'diff -rup oldfile newfile').
First, a template error:
--- koeditordetails.cpp.orig 2005-07-30 02:41:39.000000000 +0900
+++ koeditordetails.cpp 2006-01-09 14:04:27.000000000 +0900
@@ -54,13 +54,13 @@
#include "koeditordetails.h"
template <>
-CustomListViewItem::~CustomListViewItem()
+CustomListViewItem::~CustomListViewItem()
{
delete mData;
}
template <>
-void CustomListViewItem::updateItem()
+void CustomListViewItem::updateItem()
{
setText(0,mData->name());
setText(1,mData->email());
Second, Ubuntu's Qt lib doesn't include styles; I personally don't think it's necessary, anyways, as the program looks and runs fine without it.
--- main.cpp.orig 2005-09-25 11:28:24.000000000 +0900
+++ main.cpp 2006-01-09 14:08:22.000000000 +0900
@@ -31,7 +31,7 @@ int main( int argc, char **argv )
a.setKeepRunning ();
#else
QApplication a( argc, argv );
- QApplication::setStyle( new QPlatinumStyle ());
+ //QApplication::setStyle( new QPlatinumStyle ());
#ifdef _WIN32_
QString hdir ( getenv( "HOME") );
if ( hdir.isEmpty() ) {
One other thing... I have found that gcc/g++ 4.0 is much more strict than earlier versions. While compiling kdepim, it spat out multiple warnings about base classes that have virtual methods but non-virtual destructors. While this might not currently be a problem, it could lead to memory leaks if any subclasses use dynamic allocation, and so it might be worth fixing.
- ashikase
- anpachi, gifu, japan