@Pheidologeton I am having the same issue, any luck?
Search Criteria
Package Details: vesc_tool-git 1:r1412.7c02f7f-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/vesc_tool-git.git (read-only, click to copy) |
---|---|
Package Base: | vesc_tool-git |
Description: | VESC ESC graphical configuration tool |
Upstream URL: | https://vesc-project.com/vesc_tool |
Licenses: | GPL3 |
Conflicts: | vesc-tool |
Submitter: | Kezi |
Maintainer: | None |
Last Packager: | bionade24 |
Votes: | 3 |
Popularity: | 0.000000 |
First Submitted: | 2018-08-27 22:50 (UTC) |
Last Updated: | 2024-04-14 12:18 (UTC) |
Dependencies (10)
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR)
- qt5-connectivity (qt5-connectivity-gitAUR)
- qt5-gamepadAUR (qt5-gamepad-gitAUR)
- qt5-location
- qt5-quickcontrols2 (qt5-quickcontrols2-gitAUR)
- qt5-serialbusAUR (qt5-serialbus-gitAUR)
- qt5-serialport (qt5-serialport-gitAUR)
- qt5-svg (qt5-svg-gitAUR)
- git (git-gitAUR, git-glAUR) (make)
- mold (mold-gitAUR) (make)
Required by (0)
Sources (3)
GPereira commented on 2023-02-19 00:41 (UTC)
Pheidologeton commented on 2022-11-27 23:33 (UTC)
Cannot build. Loop in this
build()...
Info: creating stash file /home/hpc0/buildroot/AUR/vesc_tool-git/src/vesc_tool-git/.qmake.stash
WARNING: Failure to find: res_fw_original.qrc
/usr/bin/rcc: File does not exist 'res_fw_original.qrc'
/usr/bin/qmake -o Makefile vesc_tool.pro PREFIX=/usr LIBDIR=/usr/lib
WARNING: Failure to find: res_fw_original.qrc
/usr/bin/rcc: File does not exist 'res_fw_original.qrc'
/usr/bin/qmake -o Makefile vesc_tool.pro PREFIX=/usr LIBDIR=/usr/lib
WARNING: Failure to find: res_fw_original.qrc
/usr/bin/rcc: File does not exist 'res_fw_original.qrc'
/usr/bin/qmake -o Makefile vesc_tool.pro PREFIX=/usr LIBDIR=/usr/lib
WARNING: Failure to find: res_fw_original.qrc
/usr/bin/rcc: File does not exist 'res_fw_original.qrc'
/usr/bin/qmake -o Makefile vesc_tool.pro PREFIX=/usr LIBDIR=/usr/lib
WARNING: Failure to find: res_fw_original.qrc
/usr/bin/rcc: File does not exist 'res_fw_original.qrc'
/usr/bin/qmake -o Makefile vesc_tool.pro PREFIX=/usr LIBDIR=/usr/lib
WARNING: Failure to find: res_fw_original.qrc
/usr/bin/rcc: File does not exist 'res_fw_original.qrc'
/usr/bin/qmake -o Makefile vesc_tool.pro PREFIX=/usr LIBDIR=/usr/lib
Any way to fix it?
niraami commented on 2021-06-12 17:00 (UTC) (edited on 2021-06-12 21:15 (UTC) by niraami)
@bionade24 The reason behind my error a few months back is a flawed pkgver()
function, as it returns the pkgver
variable + the git information (r287.b0632c4
)... that is already in that variable - essentially duplicating it. I've noticed that after installing the package (through yay or manually) the PKGBUILD gets updated. Here is the diff:
diff --git a/PKGBUILD b/PKGBUILD
index 3a0eaf4..3f3f06b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=vesc_tool-git
-pkgver=3.00.r287.b0632c4.r287.b0632c4.r287.b0632c4
+pkgver=3.00.r287.b0632c4.r287.b0632c4.r287.b0632c4.r287.b0632c4
pkgrel=1
pkgdesc="VESC ESC graphical configuration tool"
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
So, if you don't reload the pkgbuild during installation, this issue will not arise (which I guess Yay does for some reason). Also using the --editmenu
to edit the PKGBUILD /w Yay and removing the "${pkgver}" from pkgver()
solves the issue.
I can see that this is not an issue only affecting me, as, in the latest commit, you've changed the pkgver
to 3.00.r287.b0632c4.r287.b0632c4.r287.b0632c4-1
. I find that kind of hilarious as it also changed the name of the package on AUR.
Also, dunno if this is helpful, but the commit that introduced this issue was: 163d11d0e029.
The offending line is: printf "${pkgver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
My recommendation is, if you want to also keep the program version included in the name & the pkgbuild, use a separate variable for it (like gitver=3.00
).
Though it is unfortunate that the github maintainers still don't tag the versions on GitHub.
I hope my formatting is done right, otherwise I might edit this comment a few times.
DarioP commented on 2021-06-11 13:45 (UTC)
Thank you for your very prompt action, I was able to successfully build the package.
I did not look into the building system, but I agree that everything that can be fixed upstream should be done there, without custom fixes and patches ;)
bionade24 commented on 2021-06-11 13:13 (UTC)
@DarioP: The linkers errors are fixed now.
It still would probably better to patch the upstream .pro file instead of provding a derived one, probably doing that.
DarioP commented on 2021-06-11 08:19 (UTC) (edited on 2021-06-11 08:20 (UTC) by DarioP)
Anyone getting the same linker errors as I do:
/usr/bin/ld: mainwindow.o: in function `MainWindow::on_actionLoadMeters_triggered()':
mainwindow.cpp:(.text+0x8267): undefined reference to `QmlUi::startCustomGui(VescInterface*)'
/usr/bin/ld: mainwindow.cpp:(.text+0x8289): undefined reference to `QmlUi::reloadCustomGui(QString)'
/usr/bin/ld: mainwindow.o: in function `MainWindow::on_actionCloseCustomGUI_triggered()':
mainwindow.cpp:(.text+0x82e6): undefined reference to `QmlUi::stopCustomGui()'
/usr/bin/ld: mainwindow.o: in function `MainWindow::~MainWindow()':
mainwindow.cpp:(.text+0xc609): undefined reference to `vtable for QmlUi'
/usr/bin/ld: mainwindow.o: in function `MainWindow::MainWindow(QWidget*)':
mainwindow.cpp:(.text+0xc8c5): undefined reference to `QmlUi::QmlUi(QObject*)'
/usr/bin/ld: mainwindow.o: in function `MainWindow::MainWindow(QWidget*) [clone .cold]':
mainwindow.cpp:(.text.unlikely+0x170e): undefined reference to `vtable for QmlUi'
/usr/bin/ld: vescinterface.o: in function `QtPrivate::QFunctorSlotObject<VescInterface::VescInterface(QObject*)::{lambda(QByteArray&)#5}, 1, QtPrivate::List<QByteArray&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)':
vescinterface.cpp:(.text+0x838): undefined reference to `UdpServerSimple::packet()'
/usr/bin/ld: vescinterface.o: in function `VescInterface::udpServerStart(int)':
vescinterface.cpp:(.text+0x4085): undefined reference to `UdpServerSimple::startServer(int, QHostAddress)'
/usr/bin/ld: vescinterface.cpp:(.text+0x40d1): undefined reference to `UdpServerSimple::errorString()'
/usr/bin/ld: vescinterface.o: in function `VescInterface::udpServerStop()':
vescinterface.cpp:(.text+0x41a6): undefined reference to `UdpServerSimple::stopServer()'
/usr/bin/ld: vescinterface.o: in function `VescInterface::udpServerIsRunning()':
vescinterface.cpp:(.text+0x41b6): undefined reference to `UdpServerSimple::isServerRunning()'
/usr/bin/ld: vescinterface.o: in function `VescInterface::udpServerIsClientConnected()':
vescinterface.cpp:(.text+0x41c6): undefined reference to `UdpServerSimple::isClientConnected()'
/usr/bin/ld: vescinterface.o: in function `VescInterface::udpServerClientIp()':
vescinterface.cpp:(.text+0x41ef): undefined reference to `UdpServerSimple::getConnectedClientIp()'
/usr/bin/ld: vescinterface.o: in function `VescInterface::VescInterface(QObject*)':
vescinterface.cpp:(.text+0xdbdf): undefined reference to `UdpServerSimple::UdpServerSimple(QObject*)'
/usr/bin/ld: vescinterface.cpp:(.text+0xdbf8): undefined reference to `UdpServerSimple::setUsePacket(bool)'
/usr/bin/ld: vescinterface.cpp:(.text+0xdc02): undefined reference to `UdpServerSimple::packet()'
bionade24 commented on 2021-01-11 08:16 (UTC)
@niraami: I can't reproduce your issue, seems like caused by your dirty build environment. Please use a clean chroot/container.
bionade24 commented on 2020-11-25 13:47 (UTC)
This package works with 5.15. It's not a -bin
package, so it's not precompiled. You can build it yourself, but you don't need to, of course.
Pinned Comments
bionade24 commented on 2024-04-07 09:57 (UTC)
I switched to the mold linker on purpose to reduce the enormous link times (with LTO) of this project and get better error messages when the linking fails due to the patched buildscript. If you don't like that, use
qmake -unset <flags>
to remove it.