Re: problems compiling subsurface 4.4 on fedora 18
2015-02-18 1:33 GMT+01:00 Dirk Hohndel d...@hohndel.org: On Wed, Feb 18, 2015 at 12:36:01AM +0100, Michele Fabi wrote: 2015-02-17 23:14 GMT+01:00 Dirk Hohndel d...@hohndel.org: Hi and thanks for the script. It still exit because it can't find libssrfmarblewidget that is located here: /home/michele/testfordirk/install/lib/libssrfmarblewidget.so.0.19.2 /home/michele/testfordirk/install/lib/libssrfmarblewidget.so.19 /home/michele/testfordirk/install/lib/libssrfmarblewidget.so /home/michele/testfordirk/marble-source/build/src/lib/marble/libssrfmarblewidget.so.0.19.2 /home/michele/testfordirk/marble-source/build/src/lib/marble/libssrfmarblewidget.so.19 /home/michele/testfordirk/marble-source/build/src/lib/marble/libssrfmarblewidget.so I think I understand what went wrong. I just pushed one more commit. Can you do this? cd /home/michele/testfordirk/subsurface git pull cd .. subsurface/scripts/build.sh I'm reasonably optimistic that this will work better :-) /D Ego annuntio vobis gaudium magnum! We have subsurface 4.4 on fedora 18!! Just one thing, there is no subsurface/scripts/run.sh, I launched the subsurface executable under subsurface directory. Thank you Dirk for your wonderful script! ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Wed, Feb 18, 2015 at 12:04:59PM +0100, Michele Fabi wrote: Ego annuntio vobis gaudium magnum! We have subsurface 4.4 on fedora 18!! Just one thing, there is no subsurface/scripts/run.sh, I launched the subsurface executable under subsurface directory. Yep, I figured out a way that you wouldn't need that anymore, so I removed it. Thank you Dirk for your wonderful script! You are welcome. Enjoy Subsurface /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Wed, Feb 18, 2015 at 12:36:01AM +0100, Michele Fabi wrote: 2015-02-17 23:14 GMT+01:00 Dirk Hohndel d...@hohndel.org: Hi and thanks for the script. It still exit because it can't find libssrfmarblewidget that is located here: /home/michele/testfordirk/install/lib/libssrfmarblewidget.so.0.19.2 /home/michele/testfordirk/install/lib/libssrfmarblewidget.so.19 /home/michele/testfordirk/install/lib/libssrfmarblewidget.so /home/michele/testfordirk/marble-source/build/src/lib/marble/libssrfmarblewidget.so.0.19.2 /home/michele/testfordirk/marble-source/build/src/lib/marble/libssrfmarblewidget.so.19 /home/michele/testfordirk/marble-source/build/src/lib/marble/libssrfmarblewidget.so I think I understand what went wrong. I just pushed one more commit. Can you do this? cd /home/michele/testfordirk/subsurface git pull cd .. subsurface/scripts/build.sh I'm reasonably optimistic that this will work better :-) /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
2015-02-17 12:50 GMT+01:00 Lubomir I. Ivanov neolit...@gmail.com: if you haven't updated yet, you can save locally the raw email / patch i've just sent to the mailing list: [PATCH] simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 move it to the Subsurface source folder and do: git am patch-file then call 'make' again to see if the QLineEdit error is fixed. i'm assuming you have Qt 5.2.0 Thanks Lubomir for the help with the patch. Here it is the output: [michele@localhost subsurface]$ git am 0001-simplewidgets.cpp-QLineEdit-setClearButtonEnabled-is.patch Applying: simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 [michele@localhost subsurface]$ make Checking /home/michele/src/subsurface/ssrf-version.h compiling version.c compiling qt-ui/simplewidgets.cpp compiling qt-ui/starwidget.cpp compiling qt-ui/subsurfacewebservices.cpp qt-ui/subsurfacewebservices.cpp: In member function ‘bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString, bool)’: qt-ui/subsurfacewebservices.cpp:129:85: error: invalid use of incomplete type ‘class QDebug’ In file included from /usr/include/qt5/QtCore/qglobal.h:990:0, from /usr/include/qt5/QtGui/qwindowdefs.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qdialog.h:45, from /usr/include/qt5/QtWidgets/QDialog:1, from qt-ui/subsurfacewebservices.h:4, from qt-ui/subsurfacewebservices.cpp:1: /usr/include/qt5/QtCore/qlogging.h:59:7: error: forward declaration of ‘class QDebug’ qt-ui/subsurfacewebservices.cpp:190:88: error: invalid use of incomplete type ‘class QDebug’ In file included from /usr/include/qt5/QtCore/qglobal.h:990:0, from /usr/include/qt5/QtGui/qwindowdefs.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qdialog.h:45, from /usr/include/qt5/QtWidgets/QDialog:1, from qt-ui/subsurfacewebservices.h:4, from qt-ui/subsurfacewebservices.cpp:1: /usr/include/qt5/QtCore/qlogging.h:59:7: error: forward declaration of ‘class QDebug’ qt-ui/subsurfacewebservices.cpp:210:87: error: invalid use of incomplete type ‘class QDebug’ In file included from /usr/include/qt5/QtCore/qglobal.h:990:0, from /usr/include/qt5/QtGui/qwindowdefs.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:45, from /usr/include/qt5/QtWidgets/qdialog.h:45, from /usr/include/qt5/QtWidgets/QDialog:1, from qt-ui/subsurfacewebservices.h:4, from qt-ui/subsurfacewebservices.cpp:1: /usr/include/qt5/QtCore/qlogging.h:59:7: error: forward declaration of ‘class QDebug’ make: *** [.obj/subsurfacewebservices.o] Error 1 [michele@localhost subsurface]$ Michele ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 16:01, Michele Fabi fabie...@gmail.com wrote: Done, and here the result. /usr/bin/ld: cannot find -lssrfmarblewidget collect2: error: ld returned 1 exit status make: *** [subsurface] Error 1 it says that a our localized version of the marblewidget cannot be found. instead of: qmake-qt5 SPECIAL_MARBLE_PREFIX=1 try: qmake-qt5 LIBMARBLEDEVEL=path-to-where-marble-is path-to-where-marble-is should contain: /include /src/lib/marble or: qmake-qt5 DEFINES += NO_MARBLE (but mind this will disable the marble globe) then do a: make clean make lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 17:14, Dirk Hohndel d...@hohndel.org wrote: linking subsurface .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x188): undefined reference to `QWidget::styleChange(QStyle)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x190): undefined reference to `QWidget::enabledChange(bool)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x198): undefined reference to `QWidget::paletteChange(QPalette const)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1a0): undefined reference to `QWidget::fontChange(QFont const)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1a8): undefined reference to `QWidget::windowActivationChange(bool)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1b0): undefined reference to `QWidget::languageChange()’ i think that marble is built with Qt4, while Subsurface with Qt5. could be wrong. .obj/save-git.o: In function `tree_insert': /home/michele/src/subsurface/save-git.c:458: undefined reference to `git_oid_nfmt' .obj/save-git.o: In function `create_new_commit': /home/michele/src/subsurface/save-git.c:989: undefined reference to `git_oid_strcmp’ these were added in libgit 0.19. lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Feb 17, 2015, at 6:38 AM, Michele Fabi fabie...@gmail.com wrote: But first switch to the v4.4.0 tag, please /D Ok. Done. I noticied that /home/michele/src/marble-build/ does contain src/lib/marble but not an include directory. This is funny. In a sad way. I always felt that asking people to compile software from source was a no win approach. So once you switched to the v4.4.0 tag as I asked you, you need to re-apply the patches that Lubomir sent, but I haven’t had a chance to check if those apply to v4.4.0 as well. If you don’t mind waiting, I’m planning to tag v4.4.1 tonight or maybe tomorrow (depending on how my day goes, I’m traveling to the Bay Area today) and will include Lubomir’s patches in that. The second problem is that it’s a pain in the… to get the marble include files to the right place. So maybe you could build without Marble (that means you’ll lose the globe)? Or, time permitting, I’ll include a little script in the Subsurface sources for 4.4.1 that automates all this and makes it easier for people to build from source. At this point I’m making binaries for more than a dozen platforms available - and this is exactly the reason why. Subsurface has become so complex and has so many strange dependencies that building it from source is indeed non-trivial. Of course, you could always update to Fedora 20 or 21 and take advantage of one of those binaries :-) /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
2015-02-17 16:02 GMT+01:00 Dirk Hohndel d...@hohndel.org: On Feb 17, 2015, at 6:38 AM, Michele Fabi fabie...@gmail.com wrote: But first switch to the v4.4.0 tag, please /D Ok. Done. I noticied that /home/michele/src/marble-build/ does contain src/lib/marble but not an include directory. This is funny. In a sad way. I always felt that asking people to compile software from source was a no win approach. So once you switched to the v4.4.0 tag as I asked you, you need to re-apply the patches that Lubomir sent, but I haven’t had a chance to check if those apply to v4.4.0 as well. If you don’t mind waiting, I’m planning to tag v4.4.1 tonight or maybe tomorrow (depending on how my day goes, I’m traveling to the Bay Area today) and will include Lubomir’s patches in that. The second problem is that it’s a pain in the… to get the marble include files to the right place. So maybe you could build without Marble (that means you’ll lose the globe)? Or, time permitting, I’ll include a little script in the Subsurface sources for 4.4.1 that automates all this and makes it easier for people to build from source. At this point I’m making binaries for more than a dozen platforms available - and this is exactly the reason why. Subsurface has become so complex and has so many strange dependencies that building it from source is indeed non-trivial. Of course, you could always update to Fedora 20 or 21 and take advantage of one of those binaries :-) /D Thanks for your help Dirk. I have no hurry to use subsurface on this laptop so I can indifferently wait for a 4.4.1 version or upgrade my laptop, but I don't want to force the team to write a newer version, if it isn't already in your roadmap. It's been very interesting to talk with you guys. I have some new items to study :) Michele ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 15:42, Michele Fabi fabie...@gmail.com wrote: DivelogsDeWebServices::prepare_dives_for_divelogs(const QString, bool)’: qt-ui/subsurfacewebservices.cpp:129:85: error: invalid use of incomplete type ‘class QDebug’ try applying this patch as well (attached): git am filename make lubomir -- 0002-subsurfacewebservices.cpp-add-QDebug-include.patch Description: Binary data ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Feb 17, 2015, at 6:09 AM, Lubomir I. Ivanov neolit...@gmail.com wrote: On 17 February 2015 at 16:01, Michele Fabi fabie...@gmail.com wrote: Done, and here the result. /usr/bin/ld: cannot find -lssrfmarblewidget collect2: error: ld returned 1 exit status make: *** [subsurface] Error 1 it says that a our localized version of the marblewidget cannot be found. instead of: qmake-qt5 SPECIAL_MARBLE_PREFIX=1 try: qmake-qt5 LIBMARBLEDEVEL=path-to-where-marble-is No, you need BOTH. qmake-qt5 SPECIAL_MARBLE_PREFIX=1 LIBMARBLEDEVEL=path-to-where-marble-install-directory-is or: qmake-qt5 DEFINES += NO_MARBLE (but mind this will disable the marble globe) then do a: make clean make But first switch to the v4.4.0 tag, please /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
2015-02-17 15:28 GMT+01:00 Dirk Hohndel d...@hohndel.org: On Feb 17, 2015, at 6:09 AM, Lubomir I. Ivanov neolit...@gmail.com wrote: On 17 February 2015 at 16:01, Michele Fabi fabie...@gmail.com wrote: Done, and here the result. /usr/bin/ld: cannot find -lssrfmarblewidget collect2: error: ld returned 1 exit status make: *** [subsurface] Error 1 it says that a our localized version of the marblewidget cannot be found. instead of: qmake-qt5 SPECIAL_MARBLE_PREFIX=1 try: qmake-qt5 LIBMARBLEDEVEL=path-to-where-marble-is No, you need BOTH. qmake-qt5 SPECIAL_MARBLE_PREFIX=1 LIBMARBLEDEVEL=path-to-where-marble-install-directory-is or: qmake-qt5 DEFINES += NO_MARBLE (but mind this will disable the marble globe) then do a: make clean make But first switch to the v4.4.0 tag, please /D Ok. Done. I noticied that /home/michele/src/marble-build/ does contain src/lib/marble but not an include directory. [michele@localhost subsurface]$ git checkout v4.4.0 Note: checking out 'v4.4.0'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at 22949a0... Update to pre-built user manuals [michele@localhost subsurface]$ qmake-qt5 SPECIAL_MARBLE_PREFIX=1 LIBMARBLEDEVEL=/home/michele/src/marble-build/ [michele@localhost subsurface]$ make clean rm -f ssrf-version.h rm -f translations/subsurface_source.qm translations/subsurface_bg_BG.qm translations/subsurface_cs.qm translations/subsurface_da_DK.qm translations/subsurface_de_CH.qm translations/subsurface_de_DE.qm translations/subsurface_en_GB.qm translations/subsurface_es_ES.qm translations/subsurface_et_EE.qm translations/subsurface_fi_FI.qm translations/subsurface_fr_FR.qm translations/subsurface_it_IT.qm translations/subsurface_lv_LV.qm translations/subsurface_nb_NO.qm translations/subsurface_nl_NL.qm translations/subsurface_pl_PL.qm translations/subsurface_pt_BR.qm translations/subsurface_pt_PT.qm translations/subsurface_ru_RU.qm translations/subsurface_sk_SK.qm translations/subsurface_sv_SE.qm translations/subsurface_tr.qm translations/subsurface_zh_TW.qm rm -f .rcc/qrc_subsurface.cpp rm -f .moc/moc_about.cpp .moc/moc_completionmodels.cpp .moc/moc_divecomputermanagementdialog.cpp .moc/moc_divelistview.cpp .moc/moc_divepicturewidget.cpp .moc/moc_diveplanner.cpp .moc/moc_downloadfromdivecomputer.cpp .moc/moc_globe.cpp .moc/moc_kmessagewidget.cpp .moc/moc_maintab.cpp .moc/moc_mainwindow.cpp .moc/moc_modeldelegates.cpp .moc/moc_models.cpp .moc/moc_preferences.cpp .moc/moc_printdialog.cpp .moc/moc_printlayout.cpp .moc/moc_printoptions.cpp .moc/moc_simplewidgets.cpp .moc/moc_starwidget.cpp .moc/moc_subsurfacewebservices.cpp .moc/moc_tableview.cpp .moc/moc_divelogimportdialog.cpp .moc/moc_tagwidget.cpp .moc/moc_groupedlineedit.cpp .moc/moc_usermanual.cpp .moc/moc_profilewidget2.cpp .moc/moc_diverectitem.cpp .moc/moc_divepixmapitem.cpp .moc/moc_divelineitem.cpp .moc/moc_divetextitem.cpp .moc/moc_divecartesianaxis.cpp .moc/moc_diveplotdatamodel.cpp .moc/moc_diveprofileitem.cpp .moc/moc_diveeventitem.cpp .moc/moc_divetooltipitem.cpp .moc/moc_ruleritem.cpp .moc/moc_tankitem.cpp .moc/moc_updatemanager.cpp .moc/moc_divelogexportdialog.cpp .moc/moc_usersurvey.cpp .moc/moc_configuredivecomputerdialog.cpp .moc/moc_configuredivecomputer.cpp .moc/moc_configuredivecomputerthreads.cpp .moc/moc_devicedetails.cpp .moc/moc_statisticswidget.cpp .moc/moc_diveshareexportdialog.cpp .moc/moc_filtermodels.cpp .moc/moc_socialnetworks.cpp rm -f .uic/ui_about.h .uic/ui_divecomputermanagementdialog.h .uic/ui_diveplanner.h .uic/ui_downloadfromdivecomputer.h .uic/ui_maintab.h .uic/ui_mainwindow.h .uic/ui_preferences.h .uic/ui_printoptions.h .uic/ui_renumber.h .uic/ui_setpoint.h .uic/ui_shifttimes.h .uic/ui_shiftimagetimes.h .uic/ui_webservices.h .uic/ui_tableview.h .uic/ui_divelogimportdialog.h .uic/ui_searchbar.h .uic/ui_divelogexportdialog.h .uic/ui_plannerSettings.h .uic/ui_usersurvey.h .uic/ui_divecomponentselection.h .uic/ui_configuredivecomputerdialog.h .uic/ui_listfilter.h .uic/ui_diveshareexportdialog.h .uic/ui_filterwidget.h .uic/ui_socialnetworksdialog.h rm -f .obj/cochran.o .obj/deco.o .obj/device.o .obj/dive.o .obj/divelist.o .obj/equipment.o .obj/file.o .obj/gettextfromc.o .obj/libdivecomputer.o .obj/liquivision.o .obj/load-git.o .obj/main.o .obj/membuffer.o .obj/parse-xml.o .obj/planner.o .obj/profile.o .obj/gaspressures.o .obj/divecomputer.o .obj/worldmap-save.o .obj/save-html.o .obj/qt-gui.o .obj/qthelper.o .obj/about.o .obj/completionmodels.o .obj/divecomputermanagementdialog.o .obj/divelistview.o .obj/divepicturewidget.o .obj/diveplanner.o .obj/downloadfromdivecomputer.o
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 16:38, Michele Fabi fabie...@gmail.com wrote: qt-ui/simplewidgets.cpp:577:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ make: *** [.obj/simplewidgets.o] Error 1 [michele@localhost subsurface]$ you need to apply the two patches i've sent again as you are on a new branch. out of interest why do you want to build Subsurface - are you an user or do you want to contribute to the source code? unfortunately building everything is not exactly an easy task for non-developers, no matter how well the instructions are written :-(... lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
2015-02-17 15:49 GMT+01:00 Lubomir I. Ivanov neolit...@gmail.com: On 17 February 2015 at 16:38, Michele Fabi fabie...@gmail.com wrote: qt-ui/simplewidgets.cpp:577:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ make: *** [.obj/simplewidgets.o] Error 1 [michele@localhost subsurface]$ you need to apply the two patches i've sent again as you are on a new branch. out of interest why do you want to build Subsurface - are you an user or do you want to contribute to the source code? unfortunately building everything is not exactly an easy task for non-developers, no matter how well the instructions are written :-(... lubomir -- Just an user. I'd like to contribute, I usually compile programs from source code without too much problems and I compiled by myself previous versions of subsurface, but I'm completely new to git and patching code, so this time I have to give up. I will upgrade my Fedora before to retry. Thank you for your time (and mine, too). Here is the last output: [michele@localhost subsurface]$ git am 0001-simplewidgets.cpp-QLineEdit-setClearButtonEnabled-is.patch Applying: simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 [michele@localhost subsurface]$ git am 0002-subsurfacewebservices.cpp-add-QDebug-include.patch Applying: subsurfacewebservices.cpp: add QDebug include [michele@localhost subsurface]$ make clean rm -f ssrf-version.h rm -f translations/subsurface_source.qm translations/subsurface_bg_BG.qm translations/subsurface_cs.qm translations/subsurface_da_DK.qm translations/subsurface_de_CH.qm translations/subsurface_de_DE.qm translations/subsurface_en_GB.qm translations/subsurface_es_ES.qm translations/subsurface_et_EE.qm translations/subsurface_fi_FI.qm translations/subsurface_fr_FR.qm translations/subsurface_it_IT.qm translations/subsurface_lv_LV.qm translations/subsurface_nb_NO.qm translations/subsurface_nl_NL.qm translations/subsurface_pl_PL.qm translations/subsurface_pt_BR.qm translations/subsurface_pt_PT.qm translations/subsurface_ru_RU.qm translations/subsurface_sk_SK.qm translations/subsurface_sv_SE.qm translations/subsurface_tr.qm translations/subsurface_zh_TW.qm rm -f .rcc/qrc_subsurface.cpp rm -f .moc/moc_about.cpp .moc/moc_completionmodels.cpp .moc/moc_divecomputermanagementdialog.cpp .moc/moc_divelistview.cpp .moc/moc_divepicturewidget.cpp .moc/moc_diveplanner.cpp .moc/moc_downloadfromdivecomputer.cpp .moc/moc_globe.cpp .moc/moc_kmessagewidget.cpp .moc/moc_maintab.cpp .moc/moc_mainwindow.cpp .moc/moc_modeldelegates.cpp .moc/moc_models.cpp .moc/moc_preferences.cpp .moc/moc_printdialog.cpp .moc/moc_printlayout.cpp .moc/moc_printoptions.cpp .moc/moc_simplewidgets.cpp .moc/moc_starwidget.cpp .moc/moc_subsurfacewebservices.cpp .moc/moc_tableview.cpp .moc/moc_divelogimportdialog.cpp .moc/moc_tagwidget.cpp .moc/moc_groupedlineedit.cpp .moc/moc_usermanual.cpp .moc/moc_profilewidget2.cpp .moc/moc_diverectitem.cpp .moc/moc_divepixmapitem.cpp .moc/moc_divelineitem.cpp .moc/moc_divetextitem.cpp .moc/moc_divecartesianaxis.cpp .moc/moc_diveplotdatamodel.cpp .moc/moc_diveprofileitem.cpp .moc/moc_diveeventitem.cpp .moc/moc_divetooltipitem.cpp .moc/moc_ruleritem.cpp .moc/moc_tankitem.cpp .moc/moc_updatemanager.cpp .moc/moc_divelogexportdialog.cpp .moc/moc_usersurvey.cpp .moc/moc_configuredivecomputerdialog.cpp .moc/moc_configuredivecomputer.cpp .moc/moc_configuredivecomputerthreads.cpp .moc/moc_devicedetails.cpp .moc/moc_statisticswidget.cpp .moc/moc_diveshareexportdialog.cpp .moc/moc_filtermodels.cpp .moc/moc_socialnetworks.cpp rm -f .uic/ui_about.h .uic/ui_divecomputermanagementdialog.h .uic/ui_diveplanner.h .uic/ui_downloadfromdivecomputer.h .uic/ui_maintab.h .uic/ui_mainwindow.h .uic/ui_preferences.h .uic/ui_printoptions.h .uic/ui_renumber.h .uic/ui_setpoint.h .uic/ui_shifttimes.h .uic/ui_shiftimagetimes.h .uic/ui_webservices.h .uic/ui_tableview.h .uic/ui_divelogimportdialog.h .uic/ui_searchbar.h .uic/ui_divelogexportdialog.h .uic/ui_plannerSettings.h .uic/ui_usersurvey.h .uic/ui_divecomponentselection.h .uic/ui_configuredivecomputerdialog.h .uic/ui_listfilter.h .uic/ui_diveshareexportdialog.h .uic/ui_filterwidget.h .uic/ui_socialnetworksdialog.h rm -f .obj/cochran.o .obj/deco.o .obj/device.o .obj/dive.o .obj/divelist.o .obj/equipment.o .obj/file.o .obj/gettextfromc.o .obj/libdivecomputer.o .obj/liquivision.o .obj/load-git.o .obj/main.o .obj/membuffer.o .obj/parse-xml.o .obj/planner.o .obj/profile.o .obj/gaspressures.o .obj/divecomputer.o .obj/worldmap-save.o .obj/save-html.o .obj/qt-gui.o .obj/qthelper.o .obj/about.o .obj/completionmodels.o .obj/divecomputermanagementdialog.o .obj/divelistview.o .obj/divepicturewidget.o .obj/diveplanner.o .obj/downloadfromdivecomputer.o .obj/globe.o .obj/graphicsview-common.o .obj/kmessagewidget.o .obj/maintab.o .obj/mainwindow.o .obj/modeldelegates.o .obj/models.o .obj/metrics.o .obj/preferences.o .obj/printdialog.o .obj/printlayout.o .obj/printoptions.o .obj/simplewidgets.o
Re: problems compiling subsurface 4.4 on fedora 18
2015-02-17 16:16 GMT+01:00 Dirk Hohndel d...@hohndel.org: On Feb 17, 2015, at 7:12 AM, Michele Fabi fabie...@gmail.com wrote: Thanks for your help Dirk. I have no hurry to use subsurface on this laptop so I can indifferently wait for a 4.4.1 version or upgrade my laptop, but I don't want to force the team to write a newer version, if it isn't already in your roadmap. Oh no, 4.4.1 is on the roadmap. It got delayed by a few days because I got distracted with fun new code I wanted to write instead, but this delay gives me a chance to make sure it’s easier to compile things from source. It's been very interesting to talk with you guys. I have some new items to study :) Again, thanks for your patience - normally it’s much easier to start using Subsurface :-) /D In fact usually it is. Glad to hear that from my old fedora it will comes out a script that will solve these problems. I'm more than happy to contribute to the project in every way it's possible. I have an old pc RH 8.0 pc somewhere, if you want to extensively test the new script :-) Michele ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Feb 17, 2015, at 7:12 AM, Michele Fabi fabie...@gmail.com wrote: Thanks for your help Dirk. I have no hurry to use subsurface on this laptop so I can indifferently wait for a 4.4.1 version or upgrade my laptop, but I don't want to force the team to write a newer version, if it isn't already in your roadmap. Oh no, 4.4.1 is on the roadmap. It got delayed by a few days because I got distracted with fun new code I wanted to write instead, but this delay gives me a chance to make sure it’s easier to compile things from source. It's been very interesting to talk with you guys. I have some new items to study :) Again, thanks for your patience - normally it’s much easier to start using Subsurface :-) /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Tuesday 17 February 2015 18:11:46 Lubomir I. Ivanov wrote: .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x188): undefined reference to `QWidget::styleChange(QStyle)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x190): undefined reference to `QWidget::enabledChange(bool)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x198): undefined reference to `QWidget::paletteChange(QPalette const)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1a0): undefined reference to `QWidget::fontChange(QFont const)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1a8): undefined reference to `QWidget::windowActivationChange(bool)' .obj/moc_globe.o:(.data.rel.ro._ZTV8GlobeGPS[_ZTV8GlobeGPS]+0x1b0): undefined reference to `QWidget::languageChange()’ i think that marble is built with Qt4, while Subsurface with Qt5. could be wrong. Right, those are symbols removed from Qt 5. From Qt 4.8's qwidget.h: protected: virtual void styleChange(QStyle); // compat virtual void enabledChange(bool); // compat virtual void paletteChange(const QPalette ); // compat virtual void fontChange(const QFont ); // compat virtual void windowActivationChange(bool); // compat virtual void languageChange(); // compat -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 03:27, Michele Fabi fabie...@gmail.com wrote: This is the laptop I use for work (and all the rest :) and I procrastinated the upgrade for lack of time and a bit of laziness. F18 is ok for all I need. (well, it was...) Another reason for using git version is that my dive computer is a Divesystem Orca (very similar to the iDive) that is currently supported by libdivecomputer but is not in the official list of supported computer by subsurface. Here the result of compiling following Lubomir suggestions. Ill'upgrade the machine as soon as possible. if you haven't updated yet, you can save locally the raw email / patch i've just sent to the mailing list: [PATCH] simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 move it to the Subsurface source folder and do: git am patch-file then call 'make' again to see if the QLineEdit error is fixed. i'm assuming you have Qt 5.2.0 git-access.c: In function ‘update_local_repo’: git-access.c:87:2: warning: implicit declaration of function ‘git_remote_fetch’ [-Wimplicit-function-declaration] looks like libgit2 is very outdated and the build will also most likely fail because of it. git_remote_fetch() was added in fe3a40a4ff056400cde6 which is from 2013-09-16 (v0.20). we can probably make this work by sending patches for you to test, but instead a system update is much more viable. compiling libdivecomputer.c compiling liquivision.c liquivision.c: In function ‘try_to_open_liquivision’: liquivision.c:303:36: warning: ‘event.pressure.mbar’ may be used uninitialized in this function [-Wmaybe-uninitialized] liquivision.c:244:19: note: ‘event.pressure.mbar’ was declared here liquivision.c:301:27: warning: ‘event.time’ may be used uninitialized in this function [-Wmaybe-uninitialized] liquivision.c:244:19: note: ‘event.time’ was declared here liquivision.c:140:42: warning: ‘location’ may be used uninitialized in this function [-Wmaybe-uninitialized] snip qt-ui/diveplanner.cpp: In member function ‘void DivePlannerPointsModel::createSimpleDive()’: qt-ui/diveplanner.cpp:65:26: warning: missing braces around initializer for ‘fraction_t’ [-Wmissing-braces] qt-ui/diveplanner.cpp: In member function ‘virtual bool DivePlannerPointsModel::setData(const QModelIndex, const QVariant, int)’: qt-ui/diveplanner.cpp:660:26: warning: missing braces around initializer for ‘fraction_t’ [-Wmissing-braces] qt-ui/diveplanner.cpp: In member function ‘int DivePlannerPointsModel::addStop(int, int, gasmix*, int, bool)’: qt-ui/diveplanner.cpp:942:26: warning: missing braces around initializer for ‘fraction_t’ [-Wmissing-braces] qt-ui/diveplanner.cpp:943:26: warning: missing braces around initializer for ‘fraction_t’ [-Wmissing-braces] compiling qt-ui/downloadfromdivecomputer.cpp compiling qt-ui/globe.cpp qt-ui/globe.cpp: In member function ‘void GlobeGPS::changeDiveGeoPosition(qreal, qreal, Marble::GeoDataCoordinates::Unit)’: qt-ui/globe.cpp:321:20: warning: unused variable ‘ds’ [-Wunused-variable] snip qt-ui/printlayout.cpp: In member function ‘void PrintLayout::printTable()’: qt-ui/printlayout.cpp:394:4: warning: ‘headingRowHeight’ may be used uninitialized in this function [-Wmaybe-uninitialized] qt-ui/printlayout.cpp:382:83: note: ‘headingRowHeight’ was declared here In file included from /usr/include/qt5/QtCore/qrect.h:46:0, from /usr/include/qt5/QtCore/qmargins.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:47, from /usr/include/qt5/QtWidgets/qdesktopwidget.h:45, from /usr/include/qt5/QtWidgets/QDesktopWidget:1, from qt-ui/printlayout.cpp:2: /usr/include/qt5/QtCore/qpoint.h:278:64: warning: ‘headingRowHeightD2’ may be used uninitialized in this function [-Wmaybe-uninitialized] qt-ui/printlayout.cpp:382:63: note: ‘headingRowHeightD2’ was declared here compiling qt-ui/printoptions.cpp compiling qt-ui/simplewidgets.cpp qt-ui/simplewidgets.cpp: In constructor ‘TagFilter::TagFilter(QWidget*)’: qt-ui/simplewidgets.cpp:509:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ qt-ui/simplewidgets.cpp: In constructor ‘BuddyFilter::BuddyFilter(QWidget*)’: qt-ui/simplewidgets.cpp:536:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ qt-ui/simplewidgets.cpp: In constructor ‘LocationFilter::LocationFilter(QWidget*)’: interesting warnings. i don't have these with -Wall on gcc 4.8.2. lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Tue, Feb 17, 2015 at 04:28:43PM +0100, Michele Fabi wrote: 2015-02-17 16:16 GMT+01:00 Dirk Hohndel d...@hohndel.org: On Feb 17, 2015, at 7:12 AM, Michele Fabi fabie...@gmail.com wrote: Thanks for your help Dirk. I have no hurry to use subsurface on this laptop so I can indifferently wait for a 4.4.1 version or upgrade my laptop, but I don't want to force the team to write a newer version, if it isn't already in your roadmap. Oh no, 4.4.1 is on the roadmap. It got delayed by a few days because I got distracted with fun new code I wanted to write instead, but this delay gives me a chance to make sure it’s easier to compile things from source. It's been very interesting to talk with you guys. I have some new items to study :) Again, thanks for your patience - normally it’s much easier to start using Subsurface :-) /D In fact usually it is. Glad to hear that from my old fedora it will comes out a script that will solve these problems. I'm more than happy to contribute to the project in every way it's possible. OK, please do this: mkdir ~/testfordirk cd ~/testfordirk git clone -b v4.4-branch git://subsurface-divelog.org/subsurface.git ./subsurface/scripts/build.sh now wait. possibly a while as it builds quite a few things if it fails, capture the bug and send it to us if it doesn't (YAY!) you can run Subsurface like this: ./subsurface/scripts/run.sh Hopefully this will be a step in the right direction. Thanks /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
I'm sorry for the wild quoting: @Dirk Can you send the output of qmake-qt5 -v I wonder if we use features that require 5.3 (that's the lowest that I have been compiling with, lately). Dirk, Here it is [michele@localhost subsurface]$ qmake-qt5 -v QMake version 3.0 Using Qt version 5.1.1 in /usr/lib64 [michele@localhost subsurface]$ @Lubomir I'm sorry Lubomir, this night I was very tired when I discovered that in the italian version of the page, intructions and requirements to compiling are not updated, so the output chat I sent you is probably not right. I tried the correct procedure but it gives a slightly different error. Here it is the output of the last compilation. ...first part of marble compilation lost, sorry, no errors anyway... [ 60%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlStorageLayoutTagHandler.o [ 60%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlFilterTagHandler.o [ 61%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlSectionTagHandler.o [ 61%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlDownloadPolicyTagHandler.o [ 61%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlElementDictionary.o [ 61%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlItemTagHandler.o [ 61%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/handlers/dgml/DgmlSettingsTagHandler.o [ 61%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlAnimatedUpdateTagWriter.o [ 62%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlBalloonStyleTagWriter.o [ 62%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlCameraTagWriter.o [ 62%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlColorStyleTagWriter.o [ 62%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlDataTagWriter.o [ 62%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlDocumentTagWriter.o [ 62%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlExtendedDataTagWriter.o [ 63%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlFeatureTagWriter.o [ 63%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlFolderTagWriter.o [ 63%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlFlyToTagWriter.o [ 63%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlGroundOverlayWriter.o [ 63%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlIconStyleTagWriter.o [ 63%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLatLonAltBoxWriter.o [ 64%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLatLonBoxWriter.o [ 64%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLatLonQuadWriter.o [ 64%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLinearRingTagWriter.o [ 64%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLineStringTagWriter.o [ 64%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLineStyleTagWriter.o [ 64%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLinkTagWriter.o [ 65%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlListStyleTagWriter.o [ 65%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLodTagWriter.o [ 65%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlLookAtTagWriter.o [ 65%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlModelTagWriter.o [ 65%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlMultiGeometryTagWriter.o [ 65%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlMultiTrackTagWriter.o [ 66%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlNetworkLinkTagWriter.o [ 66%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlNetworkLinkControlTagWriter.o [ 66%] Building CXX object src/lib/marble/CMakeFiles/ssrfmarblewidget.dir/geodata/writers/kml/KmlObjectTagWriter.o [ 66%] Building CXX object
Re: problems compiling subsurface 4.4 on fedora 18
hello, Qt4 is no longer supported by Subsurface. you should install the Qt5 developer packages and use the appropriate Qt5 qmake command to build the application. lubomir -- Thank you for your quick reply. To tell the truth I already tried to compile with qmake-qt5, but it doen't work: [michele@localhost subsurface]$ qmake-qt5 [michele@localhost subsurface]$ make Checking /home/michele/subsurface/ssrf-version.h compiling main.cpp In file included from qt-ui/simplewidgets.h:13:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_renumber.h: In member function ‘void Ui_RenumberDialog::retranslateUi(QDialog*)’: .uic/ui_renumber.h:79:97: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_renumber.h:80:96: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:14:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_setpoint.h: In member function ‘void Ui_SetpointDialog::retranslateUi(QDialog*)’: .uic/ui_setpoint.h:82:97: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_setpoint.h:83:101: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:14:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_setpoint.h:84:80: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:15:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_shifttimes.h: In member function ‘void Ui_ShiftTimesDialog::retranslateUi(QDialog*)’: .uic/ui_shifttimes.h:136:118: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:15:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_shifttimes.h:137:111: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:138:99: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:139:99: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:140:84: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:141:84: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:142:91: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:143:86: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shifttimes.h:144:82: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:16:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_shiftimagetimes.h: In member function ‘void Ui_ShiftImageTimesDialog::retranslateUi(QDialog*)’: .uic/ui_shiftimagetimes.h:169:129: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:170:110: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:171:96: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:172:91: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:173:87: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:16:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_shiftimagetimes.h:174:302: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:176:116: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:178:126: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_shiftimagetimes.h:180:129: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ In file included from qt-ui/simplewidgets.h:17:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_divecomponentselection.h: In member function ‘void Ui_DiveComponentSelectionDialog::retranslateUi(QDialog*)’: .uic/ui_divecomponentselection.h:136:136: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_divecomponentselection.h:137:130: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_divecomponentselection.h:138:99: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_divecomponentselection.h:139:90: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_divecomponentselection.h:140:102: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_divecomponentselection.h:141:92: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ .uic/ui_divecomponentselection.h:142:90: error: ‘UnicodeUTF8’ is not a member of
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 02:58, Michele Fabi fabie...@gmail.com wrote: hello, Qt4 is no longer supported by Subsurface. you should install the Qt5 developer packages and use the appropriate Qt5 qmake command to build the application. lubomir -- Thank you for your quick reply. To tell the truth I already tried to compile with qmake-qt5, but it doen't work: [michele@localhost subsurface]$ qmake-qt5 [michele@localhost subsurface]$ make Checking /home/michele/subsurface/ssrf-version.h compiling main.cpp In file included from qt-ui/simplewidgets.h:13:0, from .uic/ui_mainwindow.h:25, from qt-ui/mainwindow.h:15, from main.cpp:11: .uic/ui_renumber.h: In member function ‘void Ui_RenumberDialog::retranslateUi(QDialog*)’: .uic/ui_renumber.h:79:97: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’ seems to me like old files generated by Qt4 remain in the .uic folder. try running: qmake-qt5 make clean make lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On 17 February 2015 at 02:23, Michele Fabi fabie...@gmail.com wrote: Hello, I'm trying to compile subsurface on my f18 following the instructions reported in the website. I succesfully compiled libdivecomputer and cloned subsurface git repository. qmake-qt4 also work, but make command gives me this output: hello, Qt4 is no longer supported by Subsurface. you should install the Qt5 developer packages and use the appropriate Qt5 qmake command to build the application. lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On February 16, 2015 4:57:53 PM Michele Fabi fabie...@gmail.com wrote: hello, Qt4 is no longer supported by Subsurface. you should install the Qt5 developer packages and use the appropriate Qt5 qmake command to build the application. lubomir -- Thank you for your quick reply. To tell the truth I already tried to compile with qmake-qt5, but it doen't work: Fedora 18 is quite old and no longer receives updates. I wouldn't be surprised if the Qt5 support for it was broken. May I ask why you are on such an old version? I assume that's why you want to build from source instead of using our packages (those are available for the current Fedora 20 and 21) /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: problems compiling subsurface 4.4 on fedora 18
On Tue, Feb 17, 2015 at 02:27:41AM +0100, Michele Fabi wrote: This is the laptop I use for work (and all the rest :) and I procrastinated the upgrade for lack of time and a bit of laziness. F18 is ok for all I need. (well, it was...) Except for security as there are quite a few known exploits for the kernel and several key components included in Fedora 18... Another reason for using git version is that my dive computer is a Divesystem Orca (very similar to the iDive) that is currently supported by libdivecomputer but is not in the official list of supported computer by subsurface. That's just a matter of me not having updated that list, yet. Subsurface 4.4 contains the very latest of libdivecomputer. Here the result of compiling following Lubomir suggestions. Ill'upgrade the machine as soon as possible. Good plan :-) compiling qt-ui/printlayout.cpp qt-ui/printlayout.cpp: In member function ‘void PrintLayout::printTable()’: qt-ui/printlayout.cpp:394:4: warning: ‘headingRowHeight’ may be used uninitialized in this function [-Wmaybe-uninitialized] qt-ui/printlayout.cpp:382:83: note: ‘headingRowHeight’ was declared here In file included from /usr/include/qt5/QtCore/qrect.h:46:0, from /usr/include/qt5/QtCore/qmargins.h:45, from /usr/include/qt5/QtWidgets/qwidget.h:47, from /usr/include/qt5/QtWidgets/qdesktopwidget.h:45, from /usr/include/qt5/QtWidgets/QDesktopWidget:1, from qt-ui/printlayout.cpp:2: /usr/include/qt5/QtCore/qpoint.h:278:64: warning: ‘headingRowHeightD2’ may be used uninitialized in this function [-Wmaybe-uninitialized] qt-ui/printlayout.cpp:382:63: note: ‘headingRowHeightD2’ was declared here compiling qt-ui/printoptions.cpp compiling qt-ui/simplewidgets.cpp qt-ui/simplewidgets.cpp: In constructor ‘TagFilter::TagFilter(QWidget*)’: qt-ui/simplewidgets.cpp:509:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ qt-ui/simplewidgets.cpp: In constructor ‘BuddyFilter::BuddyFilter(QWidget*)’: qt-ui/simplewidgets.cpp:536:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ qt-ui/simplewidgets.cpp: In constructor ‘LocationFilter::LocationFilter(QWidget*)’: qt-ui/simplewidgets.cpp:562:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ qt-ui/simplewidgets.cpp: In constructor ‘SuitFilter::SuitFilter(QWidget*)’: qt-ui/simplewidgets.cpp:588:25: error: ‘class QLineEdit’ has no member named ‘setClearButtonEnabled’ Can you send the output of qmake-qt5 -v I wonder if we use features that require 5.3 (that's the lowest that I have been compiling with, lately). /D ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: Problems compiling Subsurface
On 14 November 2014 12:36, Benjamin nyst...@gmail.com wrote: Today, I synced the git tree and when I tried to compile I got the following error: qt-ui/printdialog.cpp:17:21: fatal error: QMarginsF: No such file or directory #include QMarginsF ^ compilation terminated. make: *** [.obj/printdialog.o] Error 1 Does anybody else get this? hello, what Qt version is that? lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: Problems compiling Subsurface
On 14.11.2014, at 12:15, Lubomir I. Ivanov neolit...@gmail.com wrote: Hi, Today, I synced the git tree and when I tried to compile I got the following error: qt-ui/printdialog.cpp:17:21: fatal error: QMarginsF: No such file or directory #include QMarginsF ^ compilation terminated. make: *** [.obj/printdialog.o] Error 1 Does anybody else get this? hello, what Qt version is that? happens also for me (Mac with currently Qt4 only). Best Robert -- .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO Robert C. Helling Elite Master Course Theoretical and Mathematical Physics Scientific Coordinator Ludwig Maximilians Universitaet Muenchen, Dept. Physik Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339 http://www.atdotde.de Enhance your privacy, use cryptography! My PGP keys have fingerprints A9D1 A01D 13A5 31FA 6515 BB44 0820 367C 36BC 0C1Dand DCED 37B6 251C 7861 270D 5613 95C7 9D32 9A8D 9B8F signature.asc Description: Message signed with OpenPGP using GPGMail ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: Problems compiling Subsurface
On 14 November 2014 13:34, Robert Helling hell...@atdotde.de wrote: On 14.11.2014, at 12:15, Lubomir I. Ivanov neolit...@gmail.com wrote: Hi, Today, I synced the git tree and when I tried to compile I got the following error: qt-ui/printdialog.cpp:17:21: fatal error: QMarginsF: No such file or directory #include QMarginsF ^ compilation terminated. make: *** [.obj/printdialog.o] Error 1 Does anybody else get this? hello, what Qt version is that? happens also for me (Mac with currently Qt4 only). thanks for the report, Robert, can you or Benjamin give the attached patch a try? apparently some of the stuff i've added for the Print part yesterday is quite new in Qt and it breaks older builds... lubomir -- 0001-Print-support-margin-saving-for-older-Qt-versions.patch Description: Binary data ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: Problems compiling Subsurface
I'll try later on tonight. Real-life has this nasty habit of sneaking up on one and causing delays :( Benjamin On 14 Nov 2014 13:46, Lubomir I. Ivanov neolit...@gmail.com wrote: On 14 November 2014 13:34, Robert Helling hell...@atdotde.de wrote: On 14.11.2014, at 12:15, Lubomir I. Ivanov neolit...@gmail.com wrote: Hi, Today, I synced the git tree and when I tried to compile I got the following error: qt-ui/printdialog.cpp:17:21: fatal error: QMarginsF: No such file or directory #include QMarginsF ^ compilation terminated. make: *** [.obj/printdialog.o] Error 1 Does anybody else get this? hello, what Qt version is that? happens also for me (Mac with currently Qt4 only). thanks for the report, Robert, can you or Benjamin give the attached patch a try? apparently some of the stuff i've added for the Print part yesterday is quite new in Qt and it breaks older builds... lubomir -- ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
Re: Problems compiling Subsurface
On 14 Nov 2014, at 12:46, Lubomir I. Ivanov neolit...@gmail.com wrote: Lubomir, can you or Benjamin give the attached patch a try? apparently some of the stuff i've added for the Print part yesterday is quite new in Qt and it breaks older builds... better, but the compiler still complains. I guess the method is called setPageMargins (including ‘Page’). With the updated version of the patch, it comiles. Best Robert 0001-Print-support-margin-saving-for-older-Qt-versions.patch Description: Binary data -- .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO Robert C. Helling Elite Master Course Theoretical and Mathematical Physics Scientific Coordinator Ludwig Maximilians Universitaet Muenchen, Dept. Physik print Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339 stupid .sig\n; http://www.atdotde.de signature.asc Description: Message signed with OpenPGP using GPGMail ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface