dependon / fantascene-dynamic-wallpaper

Managed animated wallpaper based on X11 under Linux(Dynamic Wallpapers for Linux)
GNU General Public License v3.0
200 stars 21 forks source link

尝试用 AUR 进行打包后问题 #7

Open taotieren opened 3 years ago

taotieren commented 3 years ago

PKGBUILD

# Contributor: taotieren <admin@taotieren.com>

pkgname=fantascene-dynamic-wallpaper
pkgver=1.0.2
pkgrel=1
pkgdesc="动态壁纸"
arch=('x86_64')
url="https://github.com/dependon/fantascene-dynamic-wallpaper"
license=('GPLv3')
provides=(${pkgname})
conflicts=(${pkgname})
#replaces=(${pkgname})
depends=()
makedepends=()
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname}.deb::${url}/releases/download/${pkgver}/${pkgname}_${pkgver}_deepinv20.2.1_amd64.deb")
sha256sums=('d5dab8b92ee5c8e099a7be269b2bd667eb98995b8086c09dec0fddc9bbb2c6cb')

package() {
    bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}"
}

打包后可以安装,可以启动,可以导入壁纸。但是无法正常使用壁纸到桌面。 这个动态壁纸只能在 DDE 上使用吗?我这边使用的 KDE 能正常使用吗?

dependon commented 3 years ago

这里对dde做了特殊处理,不过我可以兼容适配一下kde环境,感谢建议,我没有在kde开发过,不过只要kde能够透明,就可以做到,我明天弄个kde环境来试一下,我会尽快给你答复

dependon commented 3 years ago

这里对dde做了不绘制壁纸的操作,我明天搞个kde环境来试试

taotieren commented 3 years ago

好的,最好可以用 Arch 测试,这样环境可能达到一致。我这边可以帮你打 AUR 包

dependon commented 3 years ago

你那边使用的是原生的arch吗

taotieren commented 3 years ago

你那边使用的是原生的arch吗

Arch 是要自己装桌面环境,这个桌面的包就是仓库最新的包。

dependon commented 3 years ago

kde环境没有我想的那么简单, 我没有找到好的方法将它背景关闭,如果要做,还是做kde桌面插件形式可能较好,哈哈,以后慢慢研究吧

taotieren commented 3 years ago

https://github.com/linuxdeepin/deepin-movie-reborn/issues/60 这里给回复是不建议使用旧的 mpv 方式

==> Retrieving sources...
  -> Found fantascene-dynamic-wallpaper-1.1.0.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting fantascene-dynamic-wallpaper-1.1.0.tar.gz with bsdtar
==> Starting build()...
Updating '/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/translations/fantascene-dynamic-wallpaper_es.qm'...
    Generated 84 translation(s) (84 finished and 0 unfinished)
    Ignored 1 untranslated source text(s)
Updating '/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/translations/fantascene-dynamic-wallpaper_zh_CN.qm'...
    Generated 62 translation(s) (61 finished and 1 unfinished)
    Ignored 23 untranslated source text(s)
make: Entering directory '/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build'
/usr/bin/uic ../settingwindow.ui -o ui_settingwindow.h
/usr/bin/uic ../listview/historywidget.ui -o ui_historywidget.h
/usr/bin/uic ../moresetting.ui -o ui_moresetting.h
/usr/bin/uic ../listview/wallpaperengineplugin.ui -o ui_wallpaperengineplugin.h
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o main.o ../main.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o wallpaper.o ../wallpaper.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o dbuswallpaperservice.o ../dbuswallpaperservice.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o mpvwidget.o ../mpvwidget.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o settings.o ../settings.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o application.o ../application.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o delegate.o ../listview/delegate.cpp
g++ -c -pipe -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_X11EXTRAS_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I../../fantascene-dynamic-wallpaper-1.1.0 -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/include/libdtk-5.5.3/DWidget -I/usr/include/libdtk-5.5.3/DCore -I/usr/include/libdtk-5.5.3/DGui -I/usr/include/qt -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWebEngineWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtWebEngine -I/usr/include/qt/QtWebEngineCore -I/usr/include/qt/QtQuick -I/usr/include/qt/QtGui -I/usr/include/qt/QtDBus -I/usr/include/qt/QtQmlModels -I/usr/include/qt/QtWebChannel -I/usr/include/qt/QtQml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtPositioning -I/usr/include/qt/QtCore -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build -I/usr/lib/qt/mkspecs/linux-g++ -o view.o ../listview/view.cpp
In file included from ../mpvwidget.cpp:2:
../mpvwidget.h:8:10: fatal error: mpv/qthelper.hpp: No such file or directory
    8 | #include <mpv/qthelper.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../wallpaper.h:4,
                 from ../wallpaper.cpp:1:
../mpvwidget.h:8:10: fatal error: mpv/qthelper.hpp: No such file or directory
    8 | #include <mpv/qthelper.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:737: wallpaper.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:749: mpvwidget.o] Error 1
In file included from ../wallpaper.h:4,
                 from ../main.cpp:4:
../mpvwidget.h:8:10: fatal error: mpv/qthelper.hpp: No such file or directory
    8 | #include <mpv/qthelper.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:731: main.o] Error 1
In file included from ../wallpaper.h:4,
                 from ../dbuswallpaperservice.cpp:2:
../mpvwidget.h:8:10: fatal error: mpv/qthelper.hpp: No such file or directory
    8 | #include <mpv/qthelper.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:744: dbuswallpaperservice.o] Error 1
In file included from ../application.cpp:9:
../setdesktop.h: In constructor ‘WindowsMatchingPid::WindowsMatchingPid(Display*, Window, long unsigned int)’:
../setdesktop.h:45:20: warning: ‘WindowsMatchingPid::_display’ will be initialized after [-Wreorder]
   45 |     Display       *_display;
      |                    ^~~~~~~~
../setdesktop.h:43:20: warning:   ‘long unsigned int WindowsMatchingPid::_pid’ [-Wreorder]
   43 |     unsigned long  _pid;
      |                    ^~~~
../setdesktop.h:26:5: warning:   when initialized here [-Wreorder]
   26 |     WindowsMatchingPid(Display *display, Window wRoot, unsigned long pid)
      |     ^~~~~~~~~~~~~~~~~~
../listview/delegate.cpp: In member function ‘virtual QSize delegate::sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const’:
../listview/delegate.cpp:99:54: warning: unused parameter ‘option’ [-Wunused-parameter]
   99 | QSize delegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../listview/delegate.cpp:99:81: warning: unused parameter ‘index’ [-Wunused-parameter]
   99 | QSize delegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
      |                                                              ~~~~~~~~~~~~~~~~~~~^~~~~
../listview/view.cpp: In constructor ‘view::view(QWidget*)’:
../listview/view.cpp:21:21: warning: unused parameter ‘parent’ [-Wunused-parameter]
   21 | view::view(QWidget *parent)
      |            ~~~~~~~~~^~~~~~
../listview/view.cpp: In member function ‘virtual void view::resizeEvent(QResizeEvent*)’:
../listview/view.cpp:185:38: warning: unused parameter ‘e’ [-Wunused-parameter]
  185 | void view::resizeEvent(QResizeEvent *e)
      |                        ~~~~~~~~~~~~~~^
../application.cpp: In member function ‘bool Application::setThumbnail(const QString&)’:
../application.cpp:142:17: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  142 |           system(commod.toStdString().c_str());
      |           ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../application.cpp: In member function ‘void Application::setDesktopTransparent()’:
../application.cpp:204:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  204 |     system("qdbus --literal com.deepin.dde.desktop /com/deepin/dde/desktop com.deepin.dde.desktop.EnableBackground false");
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: Leaving directory '/build/fantascene-dynamic-wallpaper/src/fantascene-dynamic-wallpaper-1.1.0/build'
==> ERROR: A failure occurred in build().
    Aborting...
taotieren commented 3 years ago

使用源码就行编译

# Contributor: taotieren <admin@taotieren.com>

pkgname=fantascene-dynamic-wallpaper
pkgver=1.1.0
pkgrel=1
pkgdesc="动态壁纸"
arch=('x86_64')
url="https://github.com/dependon/fantascene-dynamic-wallpaper"
license=('GPLv3')
provides=(${pkgname})
conflicts=(${pkgname} ${pkgname}-git)
#replaces=(${pkgname})
depends=( 'qt5-tools' 'qt5-webengine' 'dtkwidget' 'dtkgui' 'mpv')
makedepends=('qconf')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    qmake ./${pkgname}.pro -spec linux-g++ CONFIG+=qtquickcompiler -o build/
    make -C ./build
}

package() {
    install -Dm0755 "${srcdir}/${pkgname}-${pkgver}/build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm0644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
dependon commented 3 years ago

我试试把该.hpp的头文件放入工程中,您再试试,等一下,但是现在还有一个问题是我里面有一个自编译的dde-desktop

dependon commented 3 years ago

image

dependon commented 3 years ago

我在想如果arch打包的话,自编译的dde-desktop变为appimage程序可能会好一点

taotieren commented 3 years ago

这越改越麻烦了2021年6月15日 13:16,dependon @.***>写道:

我试试把该.hpp的头文件放入工程中,您再试试,等一下,但是现在还有一个问题是我里面有一个自编译的dde-desktop

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

dependon commented 3 years ago

我从manjaro deepin下研究一下

taotieren commented 3 years ago

创建了新的 fantascene-dynamic-wallpaper-git 编译成功 还没进行安装运行测试

# Contributor: taotieren <admin@taotieren.com>

pkgname=fantascene-dynamic-wallpaper-git
pkgver=1.1.0.r4.g7662913
pkgrel=1
pkgdesc="Deepin Desktop Environment dynamic wallpaper/ DDE 动态壁纸"
arch=('x86_64')
url="https://github.com/dependon/fantascene-dynamic-wallpaper"
license=('GPLv3')
provides=(${pkgname})
conflicts=(${pkgname} ${pkgname%-git})
#replaces=(${pkgname})
depends=( 'qt5-tools' 'qt5-webengine' 'dtkwidget' 'dtkgui' 'mpv')
makedepends=('git' 'qconf')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname%-git}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${pkgname%-git}"
    qmake ./${pkgname%-git}.pro -spec linux-g++ CONFIG+=qtquickcompiler -o build/
    make -C ./build
}

package() {
    cd "${srcdir}/${pkgname%-git}"
    make INSTALL_ROOT="${pkgdir}" -C ./build install
}
dependon commented 3 years ago

估计有个地方我还得改一下,那个自己编译的dde-desktop是在deepin下本地编译的(原生的dde-desktop缺少一个接口给我),可以选择使用在arch下本地编译,或者做成appimage的形式,我会先研究一下的

dependon commented 3 years ago

但是感觉也许可能打的开也不一定

taotieren commented 3 years ago

估计有个地方我还得改一下,那个自己编译的dde-desktop是在deepin下本地编译的(原生的dde-desktop缺少一个接口给我),可以选择使用在arch下本地编译,或者做成appimage的形式,我会先研究一下的

不一定非要基于 DDE 的环境可以尝试用其他方式试试

dependon commented 3 years ago

嗯,我知道,目前不太清楚其他的桌面的机制,下来了解一下,业务逻辑大部分是可以复用的

dependon commented 3 years ago

在arch linux中的发行版,manjaro中,我试了一下,该分支不行,我在本地修改为这样,就可以

dependon commented 3 years ago

Contributor: taotieren admin@taotieren.com

pkgname=fantascene-dynamic-wallpaper-git pkgver=1.1.0.r4.g7662913 pkgrel=1 pkgdesc="Deepin Desktop Environment dynamic wallpaper/ DDE 动态壁纸" arch=('x86_64') url="https://github.com/dependon/fantascene-archLinux-DDE" license=('GPLv3') provides=(${pkgname}) conflicts=(${pkgname} ${pkgname%-git})

replaces=(${pkgname})

depends=( 'qt5-tools' 'qt5-webengine' 'dtkwidget' 'dtkgui' 'mpv') makedepends=('git' 'qconf') backup=() options=('!strip')

install=${pkgname}.install

source=("${pkgname%-git}::git+${url}.git") sha256sums=('SKIP')

build() { cd "${srcdir}/${pkgname%-git}" qmake ./${pkgname%-git}.pro -spec linux-g++ CONFIG+=qtquickcompiler -o build/ make -C ./build }

package() { cd "${srcdir}/${pkgname%-git}" make INSTALL_ROOT="${pkgdir}" -C ./build install }

dependon commented 3 years ago

我删除了pkgver (有它我编译不过,原因不太清楚), 修改了源码地址(因为里面存在基于dde manjaro编译的本地文件,),目前只有dde环境的arch manjaro测试过

dependon commented 3 years ago

kde目前没办法

taotieren commented 3 years ago

你有 Arch 的 AUR 帐号吗?我可以要请你共同维护这个 AUR 包。我这边更新上去

taotieren commented 3 years ago

Contributor: taotieren admin@taotieren.com

pkgname=fantascene-dynamic-wallpaper-git pkgver=1.1.0.r4.g7662913 pkgrel=1 pkgdesc="Deepin Desktop Environment dynamic wallpaper/ DDE 动态壁纸" arch=('x86_64') url="https://github.com/dependon/fantascene-archLinux-DDE" license=('GPLv3') provides=(${pkgname}) conflicts=(${pkgname} ${pkgname%-git})

replaces=(${pkgname})

depends=( 'qt5-tools' 'qt5-webengine' 'dtkwidget' 'dtkgui' 'mpv') makedepends=('git' 'qconf') backup=() options=('!strip')

install=${pkgname}.install

source=("${pkgname%-git}::git+${url}.git") sha256sums=('SKIP')

build() { cd "${srcdir}/${pkgname%-git}" qmake ./${pkgname%-git}.pro -spec linux-g++ CONFIG+=qtquickcompiler -o build/ make -C ./build }

package() { cd "${srcdir}/${pkgname%-git}" make INSTALL_ROOT="${pkgdir}" -C ./build install }

缺少 pkgver 函数

pkgver() {
    cd "${srcdir}/${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
taotieren commented 3 years ago

你将 Arch 的 AUR 添加到 manjaro 那边 就可以通过 AUR 仓库下载编译调试了

dependon commented 3 years ago

我的账号是lmh,邮箱是liuminghang0821@gmail.com

dependon commented 3 years ago

就是加了pkgver会报错

dependon commented 3 years ago

之前的根据这个路径不会报错,但是改了git地址就会

taotieren commented 3 years ago

OK 已添加2021年7月3日 00:00,dependon @.***>写道:

@.***

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

taotieren commented 3 years ago

编译的时候会自动更新版本信息请使用  makepkg -sf 编译2021年7月3日 00:00,dependon @.***>写道:

就是加了pkgver会报错

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

taotieren commented 3 years ago

我提交了两个包一个是发行版一个是 git 版两个包的版本信息不一样详情请看 aur 中的 pkgbuild2021年7月3日 00:00,dependon @.***>写道:

之前的根据这个路径不会报错,但是改了git地址就会

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

dependon commented 3 years ago

好的谢谢