Meecast / meecast

MeeCast - multiplatform highly customizable open source weather forecast client based on OMWeather code. Copyright (C) 2006-2024
https://meecast.org/
GNU Lesser General Public License v2.1
30 stars 18 forks source link

MeeCast-Daemon fails to compile for SailfishOS < 4.2.0 #56

Closed Olf0 closed 4 months ago

Olf0 commented 4 months ago

From a log when compiling at the Sailfish-OBS targetting any SailfishOS release < 4.2.0 (down to 3.1.0, which is the oldest supported release at the Sailfish-OBS):

[  210s] g++ -Wl,-O1 -Wl,-rpath,/usr/share/meecastd/lib -o bin/meecastd meecastdaemon.o dbusadaptor.o dconfvalue.o mdconf.o mdconfitem.o moc_meecastdaemon.o moc_dbusadaptor.o moc_dconfvalue.o moc_mdconfitem.o   -lmlite5 -ldconf -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lsailfishapp -pie -rdynamic -lmdeclarativecache5 -lkeepalive -lQt5DBus -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Concurrent -lQt5Core -lGLESv2 -lpthread 
[  211s] /usr/bin/ld: mdconfitem.o: in function `MDConfItem::listDirs(QString const&) const':
[  211s] /home/abuild/rpmbuild/BUILD/harbour-meecast-1.1.39/meecast/meecastdaemon/../dconf/mdconfitem.cpp:126: undefined reference to `dconf_is_dir(char const*, _GError**)'
[  211s] /usr/bin/ld: mdconfitem.o: in function `MDConfItem::listItems(QString const&) const':
[  211s] /home/abuild/rpmbuild/BUILD/harbour-meecast-1.1.39/meecast/meecastdaemon/../dconf/mdconfitem.cpp:161: undefined reference to `dconf_is_key(char const*, _GError**)'
[  211s] collect2: error: ld returned 1 exit status
[  211s] make[1]: *** [Makefile:140: bin/meecastd] Error 1
[  211s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/harbour-meecast-1.1.39/meecast/meecastdaemon'
[  211s] make: *** [Makefile:617: sub-meecast-meecastdaemon-make_first-ordered] Error 2
[  211s] error: Bad exit status from /var/tmp/rpm-tmp.FN14L1 (%build)

I wonder what is going on here, because the two code locations in meecast/dconf/mdconfitem.cpp ([1] and [2]) are both part of a large block of code which was not altered for 10 years.

So I assume something must have been changed somewhere else causing this failure, but my C++ and QML programming skills are too little to understand what.

vasvlad commented 4 months ago

Fixed. Try it