[Kde-imaging] Port IPodExport kipi-plugin to KDE4...

Gilles Caulier caulier.gilles at gmail.com
Sun Nov 9 13:47:01 CET 2008


Seb,

Look like linking doesn't work here. Look also all compilation warnings:

Generating
moc_imagelist.cpp

Generating
moc_ipodexportdialog.cpp

Generating
moc_ipodheader.cpp

Generating
moc_plugin_ipodexport.cpp

Scanning dependencies of target
kipiplugin_ipodexport

Generating
moc_imagelist.cpp

Generating
moc_ipodexportdialog.cpp

Generating
moc_ipodheader.cpp

Generating
moc_plugin_ipodexport.cpp

[ 65%] Building CXX object
kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/kipiplugin_ipodexport_automoc.o

[ 65%] Building CXX object
kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/plugin_ipodexport.o

[ 65%] Building CXX object
kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/ipodexportdialog.o

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:429:6:
warning: #warning "kde4 port
it"

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:452:6:
warning: #warning "kde4 port
it";

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:
In constructor 'IpodExport::UploadDialog::UploadDialog(KIPI::Interface*,
const QString&,
QWidget*)':
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:101:
warning: 'QPushButton::QPushButton(const QString&, QWidget*, const char*)'
is deprecated (declared at
/usr/lib/qt4/include/QtGui/qpushbutton.h:100)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:104:
warning: 'QPushButton::QPushButton(const QString&, QWidget*, const char*)'
is deprecated (declared at
/usr/lib/qt4/include/QtGui/qpushbutton.h:100)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:105:
warning: 'QPushButton::QPushButton(const QString&, QWidget*, const char*)'
is deprecated (declared at
/usr/lib/qt4/include/QtGui/qpushbutton.h:100)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:
In member function 'void IpodExport::UploadDialog::gotImagePreview(const
KFileItem*, const
QPixmap&)':
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:408:
warning: 'QImage QPixmap::convertToImage() const' is deprecated (declared at
/usr/lib/qt4/include/QtGui/qpixmap.h:196)

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodexportdialog.cpp:413:
warning: 'bool QPixmap::convertFromImage(const QImage&,
Qt::ImageConversionFlags)' is deprecated (declared at
/usr/lib/qt4/include/QtGui/qpixmap.h:198)
[ 65%] Building CXX object
kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/ipodheader.o

In file included from
/usr/lib/qt4/include/Qt3Support/Q3HBoxLayout:1,

                 from
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:23:

/usr/lib/qt4/include/Qt3Support/q3boxlayout.h: In constructor
'Q3BoxLayout::Q3BoxLayout(QWidget*, QBoxLayout::Direction, int, int, const
char*)':

/usr/lib/qt4/include/Qt3Support/q3boxlayout.h:57: warning:
'QBoxLayout::QBoxLayout(QWidget*, QBoxLayout::Direction, int, int, const
char*)' is deprecated (declared at
/usr/lib/qt4/include/QtGui/qboxlayout.h:68)

/usr/lib/qt4/include/Qt3Support/q3boxlayout.h: In constructor
'Q3BoxLayout::Q3BoxLayout(QLayout*, QBoxLayout::Direction, int, const
char*)':

/usr/lib/qt4/include/Qt3Support/q3boxlayout.h:61: warning:
'QBoxLayout::QBoxLayout(QLayout*, QBoxLayout::Direction, int, const char*)'
is deprecated (declared at
/usr/lib/qt4/include/QtGui/qboxlayout.h:70)

/usr/lib/qt4/include/Qt3Support/q3boxlayout.h: In constructor
'Q3BoxLayout::Q3BoxLayout(QBoxLayout::Direction, int, const
char*)':

/usr/lib/qt4/include/Qt3Support/q3boxlayout.h:64: warning:
'QBoxLayout::QBoxLayout(QBoxLayout::Direction, int, const char*)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qboxlayout.h:71)

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:
In member function 'void
IpodExport::IpodHeader::setNoIpod()':

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:78:
warning: 'void QWidget::setPaletteBackgroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1019)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:79:
warning: 'void QWidget::setPaletteBackgroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1019)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:80:
warning: 'void QWidget::setPaletteForegroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1001)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:
In member function 'void
IpodExport::IpodHeader::setIncompatibleIpod()':

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:95:
warning: 'void QWidget::setPaletteBackgroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1019)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:96:
warning: 'void QWidget::setPaletteBackgroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1019)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:97:
warning: 'void QWidget::setPaletteForegroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1001)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:
In member function 'void
IpodExport::IpodHeader::setValidIpod()':

/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:123:
warning: 'void QWidget::setPaletteBackgroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1019)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:124:
warning: 'void QWidget::setPaletteBackgroundColor(const QColor&)' is
deprecated (declared at
/usr/lib/qt4/include/QtGui/qwidget.h:1019)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodheader.cpp:125:
warning: 'void QWidget::setPaletteForegroundColor(const QColor&)' is
deprecated (declared at /usr/lib/qt4/include/QtGui/qwidget.h:1001)
[ 66%] Building CXX object
kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/ipodlistitem.o
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodlistitem.cpp:
In member function 'void IpodExport::IpodAlbumItem::setName(const
QString&)':
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/ipodlistitem.cpp:47:
warning: 'QByteArray QString::utf8() const' is deprecated (declared at
/usr/lib/qt4/include/QtCore/qstring.h:473)
[ 66%] Building CXX object
kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/imagelist.o
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:35:
warning: unused parameter 'name'
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:
In member function 'virtual void
IpodExport::ImageList::viewportPaintEvent(QPaintEvent*)':
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:99:
warning: 'QColorGroup QWidget::colorGroup() const' is deprecated (declared
at /usr/lib/qt4/include/QtGui/qwidget.h:999)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:99:
warning: 'const QColor& QColorGroup::background() const' is deprecated
(declared at /usr/lib/qt4/include/QtGui/qpalette.h:223)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:101:
warning: 'QColorGroup QWidget::colorGroup() const' is deprecated (declared
at /usr/lib/qt4/include/QtGui/qwidget.h:999)
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:
In member function 'virtual void
IpodExport::ImageList::dragEnterEvent(QDragEnterEvent*)':
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/imagelist.cpp:107:
warning: 'void QDragMoveEvent::accept(bool)' is deprecated (declared at
/usr/lib/qt4/include/QtGui/qevent.h:530)
Linking CXX shared module ../../lib/kipiplugin_ipodexport.so
CMakeFiles/kipiplugin_ipodexport.dir/plugin_ipodexport.o: In function
`Plugin_iPodExport':
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/plugin_ipodexport.cpp:44:
undefined reference to `g_type_init'
/home/gilles/Documents/devel/SVN/trunk/graphics/kipi-plugins/ipodexport/plugin_ipodexport.cpp:44:
undefined reference to `g_type_init'
collect2: ld returned 1 exit status
make[2]: *** [lib/kipiplugin_ipodexport.so] Error 1
make[1]: ***
[kipi-plugins/ipodexport/CMakeFiles/kipiplugin_ipodexport.dir/all] Error 2
make: *** [all] Error 2

Best

Gilles

2008/11/9 Gilles Caulier <caulier.gilles at gmail.com>

> Great. i take a look...
>
> Also, i will see if it can be compiled to Windows. Seb, libgpod is
> available under M$ ?
>
> Gilles Caulier
>
> 2008/11/9 Laurent Montel <montel at kde.org>
>
> On Sunday 09 November 2008 11:04:48 Laurent Montel wrote:
>> > On Sunday 09 November 2008 10:24:14 Gilles Caulier wrote:
>> > > Ok, Done. Code copied from KDE3 branch to trunk with revision #881887
>> > >
>> > > Laurent, can you start to apply your magic scripts ?
>> >
>> > I will do it.
>> > Regards.
>>
>> Now all compiles fine.
>> Just needs to fix two "fix it" very easy I think
>> and remove qt3support
>> Regards.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-imaging/attachments/20081109/aec6f8ae/attachment-0001.htm 


More information about the Kde-imaging mailing list