zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
328 stars 18 forks source link

error: could not convert ‘{position, url}’ from ‘<brace-enclosed initializer list>’ to ‘WallpaperImage’ return { .position = position, .url = url }; #10

Closed Y0lan closed 4 years ago

Y0lan commented 4 years ago
[ 45%] Building CXX object src/plugin/CMakeFiles/wallpaperplugin.dir/DynamicWallpaperPackage.cc.o
/tmp/dynamic-wallpaper/src/plugin/DynamicWallpaperPackage.cc: In function ‘WallpaperImage parseSolarImage(const Context&, const QJsonValue&)’:
/tmp/dynamic-wallpaper/src/plugin/DynamicWallpaperPackage.cc:176:47: error: could not convert ‘{position, url}’ from ‘<brace-enclosed initializer list>’ to ‘WallpaperImage’
     return { .position = position, .url = url };
                                               ^
/tmp/dynamic-wallpaper/src/plugin/DynamicWallpaperPackage.cc: In function ‘WallpaperImage parseTimedImage(const Context&, const QJsonValue&)’:
/tmp/dynamic-wallpaper/src/plugin/DynamicWallpaperPackage.cc:187:39: error: could not convert ‘{time, url}’ from ‘<brace-enclosed initializer list>’ to ‘WallpaperImage’
     return { .time = time, .url = url };

OS: KDE NEON I have installed all that you said to install.

zzag commented 4 years ago

What compiler do you use?

Y0lan commented 4 years ago

cc, I will try with gcc, do you know how to force the build to use gcc ?

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Found KF5Plasma: /usr/lib/x86_64-linux-gnu/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.62.0") 
-- Found KF5: success (found version "5.62.0") found components:  Plasma 
-- The following REQUIRED packages have been found:

 * ECM (required version >= 1.6.0)
 * KF5Plasma
 * KF5
 * Qt5Core
 * Qt5Gui
 * Qt5Network (required version >= 5.12.3)
 * Qt5Qml
 * Qt5
zzag commented 4 years ago

Thanks. The issue is addressed.