Build failed with aur helper.
CMake Error at QtScrcpy/CMakeLists.txt:379 (target_link_libraries):
Target "QtScrcpy" links to:
Qt6::GuiPrivate
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Generate step failed. Build files cannot be regenerated correctly.
-- Generating done (0.0s)
==> ERROR: A failure occurred in build().
Aborting...
Build Failed with yay -S qtscrcpy, though I have installed qt5-x11extras
-- Could NOT find Qt6X11Extras (missing: Qt6X11Extras_DIR)
CMake Error at QtScrcpy/CMakeLists.txt:86 (find_package):
Found package configuration file:
/usr/lib/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:
Failed to find required Qt component "X11Extras".
Expected Config file at
"/usr/lib/cmake/Qt6X11Extras/Qt6X11ExtrasConfig.cmake" does NOT exist
Configuring with --debug-find-pkg=Qt6X11Extras might reveal details why the
package was not found.
Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
of the path variables that find_package uses to try and find the package.
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'qtscrcpy-2.2.1-5':
error: packages failed to build: qtscrcpy-2.2.1-5
@anlorsp The program was overwriting the environment variable. I've updated the patch to prevent it. I also removed the variable from the script, so now you can change config path by running:
$ QTSCRCPY_CONFIG_PATH=/path/to/config qtscrcpy
I notice that this package create /usr/bin/qtscrcpy and in which use export QTSCRCPY_CONFIG_PATH="/etc/qtscrcpy" to define the path to the config files. However, when I try to modify it to redefine the config path, it takes no effect and the application always use /etc/qtscrcpy as its config path. So what's the effect of the QTSCRCPY_CONFIG_PATH env?
this fixes submodule:
diff --git a/PKGBUILD b/PKGBUILD
index c8312bc..93cf44f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,11 +33,9 @@ backup=("etc/$_pkgname/config.ini")
_pkgsrc="$_pkgname"
source=(
"$_pkgname"::"git+$url.git#tag=v$pkgver"
- "qtscrcpycore"::"git+https://github.com/barry-ran/QtScrcpyCore.git"
"path-fix.patch"
)
sha256sums=(
- 'SKIP'
'SKIP'
'a80a69c96361e671db319be612dc08f26142886875a35c9cd5df57c100ddae3a'
)
@@ -45,9 +43,8 @@ sha256sums=(
# common functions
prepare() {
cd "$_pkgsrc"
- git submodule init
- git config submodule.QtScrcpy/QtScrcpyCore.url "$srcdir/qtscrcpycore"
- git -c protocol.file.allow=always submodule update
+ git submodule set-url QtScrcpy/QtScrcpyCore https://github.com/barry-ran/QtScrcpyCore.git
+ git submodule update --init --recursive
patch --strip=1 QtScrcpy/main.cpp < "$srcdir/path-fix.patch"
}
It seems that QtScrcpyCore in the master branch is invalid, but the default branch should be dev, which is very strange.
Fatal error: Obtained submodule path 'QtScrcpy/QtScrcpyCore', but it does not contain 769943161f99dbc7b0c55f7f769e32729ab06693. Direct access to the commit failed.
After the last update of the pckgbuild, qtscrpy no longer installs its .desktop file.
The keymap folder does not have execution permission and the script file cannot be opened.
Translated by Google
@jaysonwcs What depends do you want to change? Edit the PKGBUILD before building to make changes. Or ignore depends during install with pacman -Udd [filename]