Dirli / budgie-weather-applet

Dlsplays the current weather for the selected location
GNU General Public License v2.0
5 stars 2 forks source link

Compilation issue on Ubuntu Budgie 18.04 #2

Closed fossfreedom closed 5 years ago

fossfreedom commented 5 years ago
Native dependency glib-2.0 found: YES 2.56.3
Program meson/meson_post_install.py found: YES (/usr/bin/env python3 /<<PKGBUILDDIR>>/meson/meson_post_install.py)
Build targets in project: 6
Found ninja-1.8.2 at /usr/bin/ninja
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cd build && ninja -v
[1/11] glib-compile-resources /<<PKGBUILDDIR>>/data/plugin.gresource.xml --sourcedir /<<PKGBUILDDIR>>/data --sourcedir ../src --internal --generate --target src/bwa-resources.c --dependency-file src/bwa-resources.c.d
XMLLINT not set and xmllint not found in path; skipping xml preprocessing.
[2/11] glib-compile-resources /<<PKGBUILDDIR>>/data/plugin.gresource.xml --sourcedir /<<PKGBUILDDIR>>/data --sourcedir ../src --internal --generate --target src/bwa-resources.h
XMLLINT not set and xmllint not found in path; skipping xml preprocessing.
[3/11] valac -C --debug --pkg gweather-3.0 --pkg libsoup-2.4 --pkg json-glib-1.0 --pkg budgie-1.0 --pkg libpeas-1.0 --target-glib ' 2.46.0' --pkg glib-2.0 --pkg gtk+-3.0 --color=always --directory src/budgieweatherapplet@sha --basedir ../src --library budgieweatherapplet --header src/budgieweatherapplet.h --vapi ../budgieweatherapplet.vapi --gresources=/<<PKGBUILDDIR>>/data/plugin.gresource.xml ../src/WeatherApplet.vala ../src/Widgets/AppletSettings.vala ../src/Widgets/Popover.vala ../src/Providers/LibGWeather.vala ../src/WeatherInfo.vala ../src/ILogindManager.vala
FAILED: src/budgieweatherapplet@sha/WeatherApplet.c src/budgieweatherapplet@sha/Widgets/AppletSettings.c src/budgieweatherapplet@sha/Widgets/Popover.c src/budgieweatherapplet@sha/Providers/LibGWeather.c src/budgieweatherapplet@sha/WeatherInfo.c src/budgieweatherapplet@sha/ILogindManager.c src/budgieweatherapplet.h src/budgieweatherapplet.vapi 
valac -C --debug --pkg gweather-3.0 --pkg libsoup-2.4 --pkg json-glib-1.0 --pkg budgie-1.0 --pkg libpeas-1.0 --target-glib ' 2.46.0' --pkg glib-2.0 --pkg gtk+-3.0 --color=always --directory src/budgieweatherapplet@sha --basedir ../src --library budgieweatherapplet --header src/budgieweatherapplet.h --vapi ../budgieweatherapplet.vapi --gresources=/<<PKGBUILDDIR>>/data/plugin.gresource.xml ../src/WeatherApplet.vala ../src/Widgets/AppletSettings.vala ../src/Widgets/Popover.vala ../src/Providers/LibGWeather.vala ../src/WeatherInfo.vala ../src/ILogindManager.vala
../src/WeatherApplet.vala:127.28-127.45: error: 1 missing arguments for `void GLib.DateTime.now (GLib.TimeZone)'
            DateTime now = new DateTime.now();
                           ^^^^^^^^^^^^^^^^^^

Looking here https://valadoc.org/glib-2.0/GLib.DateTime.DateTime.now.html it does appear that "now" is missing a parameter.

maybe use now_local ?https://valadoc.org/glib-2.0/GLib.DateTime.DateTime.now_local.html

Dirli commented 5 years ago

Yes you are right. To be honest, I was surprised to see "now" instead "now_local". Most likely inattentive. Although "Vala 0.42.3" compiles fine. I will correct.