Onko oikea paikka kysyä yle-downloader-gui-2.0 make virheilmoitukset.
Haluaisin muuttaa ja lisätä aika helppoja juttuja, mutta näitten Qt kirjastojen, jne käyttö täysin uutta.
Tein
/gui200$ lrelease yle-downloader-gui.pro
Updating '/media/JanneR2/gui20/gui200/fi.qm'...
Generated 40 translation(s) (40 finished and 0 unfinished)
/gui200$ qmake
/gui200$ make
aluksi menee hyvin, kääntäminen onnistuu näille
main.cpp
MainWindow.cpp
Downloader.cpp
ProgressParser.cpp
required_qt_translations.cpp
ProcessUtils.cpp
UpdateChecker.cpp
mutta sitten, SubtitleLanguage.cpp ja sukellus QT-juttuihin, virhe.
...
SubtitleLanguage.h:9: error: non-static const member ‘const QString SubtitleLanguage::optionId’, can't use default assignment operator
...
/usr/include/qt4/QtCore/qlist.h:353: note: synthesized method ‘SubtitleLanguage&
SubtitleLanguage::operator=(const SubtitleLanguage&)’ first required here
make: *** [SubtitleLanguage.o] Error 1
-- koko virheilmoitus, versio-ongelma vai muuta?? --
-- näjtävästi liittyy teksti-tiedostojen comboboxin listan initialisiontiin, poistamalla kaikki list.append;it ohjelmaa kääntyy ja linkautuu, mutta kaatuu heti kättelyssä just komboboxin initissä.
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -I. -o SubtitleLanguage.o SubtitleLanguage.cpp
In file included from SubtitleLanguage.cpp:1:
SubtitleLanguage.h: In member function ‘SubtitleLanguage& SubtitleLanguage::operator=(const SubtitleLanguage&)’:
SubtitleLanguage.h:9: instantiated from ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = SubtitleLanguage]’
/usr/include/qt4/QtCore/qlist.h:472: instantiated from ‘void QList<T>::append(const T&) [with T = SubtitleLanguage]’
SubtitleLanguage.cpp:12: instantiated from here
SubtitleLanguage.h:9: error: non-static const member ‘const QString SubtitleLanguage::displayName’, can't use default assignment operator
SubtitleLanguage.h:9: error: non-static const member ‘const QString SubtitleLanguage::optionId’, can't use default assignment operator
In file included from /usr/include/qt4/QtCore/qobject.h:50,
from /usr/include/qt4/QtCore/qiodevice.h:46,
from /usr/include/qt4/QtCore/qxmlstream.h:45,
from /usr/include/qt4/QtCore/QtCore:3,
from SubtitleLanguage.h:4,
from SubtitleLanguage.cpp:1:
/usr/include/qt4/QtCore/qlist.h: In member function ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = SubtitleLanguage]’:
/usr/include/qt4/QtCore/qlist.h:353: note: synthesized method ‘SubtitleLanguage& SubtitleLanguage::operator=(const SubtitleLanguage&)’ first required here
make: *** [SubtitleLanguage.o] Error 1