You are not logged in.

#1 2020-12-30 22:14:27

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 88

[SOLVED] qtcam-git fails to build

https://aur.archlinux.org/packages/qtcam-git

/usr/bin/ld: audioinput.o: undefined reference to symbol 'pa_stream_set_read_callback@@PULSE_0'
/usr/bin/ld: /usr/lib/libpulse.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:446: Qtcam] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by RedArcher (2020-12-31 09:50:21)

Offline

#2 2020-12-30 22:29:42

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED] qtcam-git fails to build

Builds in a clean chroot after making the following changes:

git diff
diff --git a/PKGBUILD b/PKGBUILD
index c2992be..a914094 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
 # Contributor: Piotr Rogoza <piotr dot r dot public at gmail dot com>
 
 pkgname=qtcam-git
-pkgver=r145.51ddb5d
+pkgver=r160.411420b
 pkgrel=1
 pkgdesc='A free, Open Source Linux Webcamera Software with more than 10 image control settings - alexzk1 fork'
 arch=('i686' 'x86_64')
 url='http://www.e-consystems.com/opensource-linux-webcam-software-application.asp'
 license=('GPL')
-depends=('qt5-declarative' 'ffmpeg' 'libusb')
-makedepends=('git')
+depends=('qt5-declarative' 'qt5-multimedia' 'ffmpeg' 'libusb')
+makedepends=('git' 'dpkg' 'lsb-release')
 source=('git://github.com/econsysqtcam/qtcam.git')
 sha256sums=('SKIP')
 _gitname='qtcam'
@@ -27,9 +27,9 @@ build() {
 package() {
   cd "${srcdir}/${_gitname}/src"
   #make INSTALL_ROOT="${pkgdir}" install
-  install -Dm644 "${srcdir}/${_gitname}/arch_linux/qtcam.desktop" "${pkgdir}/usr/share/applications/qtcam.desktop"
+#  install -Dm644 "${srcdir}/${_gitname}/arch_linux/qtcam.desktop" "${pkgdir}/usr/share/applications/qtcam.desktop"
   install -Dm644 "${srcdir}/${_gitname}/src/qml/qtcam/icon/images/icon.jpg" "${pkgdir}/usr/share/pixmaps/qtcam.jpg"
-       install -Dm755 "${srcdir}/${_gitname}/src/qtcam" "${pkgdir}/usr/bin/qtcam"
+       install -Dm755 "${srcdir}/${_gitname}/src/Qtcam" "${pkgdir}/usr/bin/Qtcam"
 }
 
 # vim: set ts=2 sw=2 ft=sh noet:

Edit:
If you still can not build the package with the above changes applied,  post the full output of makepkg.  Also are you a custom version of ffmpeg or any of its dependencies?

Last edited by loqs (2020-12-30 22:40:44)

Offline

#3 2020-12-31 08:52:45

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 88

Re: [SOLVED] qtcam-git fails to build

First of all, thank you.
Second, I must be missing something

$ ./Qtcam
file:///usr/share/qml/qtcam/Views/qtcam.qml: No such file or directory
QObject::connect: Cannot connect (nullptr)::stopCamPreview() to (nullptr)::triggerModeCapture()

Offline

#4 2020-12-31 09:32:30

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED] qtcam-git fails to build

Please try with the following changes applied

diff --git a/PKGBUILD b/PKGBUILD
index c2992be..e2eacba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,18 +2,23 @@
 # Contributor: Piotr Rogoza <piotr dot r dot public at gmail dot com>
 
 pkgname=qtcam-git
-pkgver=r145.51ddb5d
+pkgver=r160.411420b
 pkgrel=1
 pkgdesc='A free, Open Source Linux Webcamera Software with more than 10 image control settings - alexzk1 fork'
 arch=('i686' 'x86_64')
 url='http://www.e-consystems.com/opensource-linux-webcam-software-application.asp'
 license=('GPL')
-depends=('qt5-declarative' 'ffmpeg' 'libusb')
-makedepends=('git')
+depends=('qt5-declarative' 'qt5-multimedia' 'ffmpeg' 'libusb')
+makedepends=('git' 'dpkg' 'lsb-release')
 source=('git://github.com/econsysqtcam/qtcam.git')
 sha256sums=('SKIP')
 _gitname='qtcam'
 
+prepare() {
+  cd "${srcdir}/${_gitname}/src"
+  sed -i 's|target.path = /usr/|target.path = /usr/share/|' qtcam.pro
+}
+
 pkgver() {
   cd "${_gitname}"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
@@ -26,10 +31,11 @@ build() {
 }
 package() {
   cd "${srcdir}/${_gitname}/src"
-  #make INSTALL_ROOT="${pkgdir}" install
-  install -Dm644 "${srcdir}/${_gitname}/arch_linux/qtcam.desktop" "${pkgdir}/usr/share/applications/qtcam.desktop"
-  install -Dm644 "${srcdir}/${_gitname}/src/qml/qtcam/icon/images/icon.jpg" "${pkgdir}/usr/share/pixmaps/qtcam.jpg"
-       install -Dm755 "${srcdir}/${_gitname}/src/qtcam" "${pkgdir}/usr/bin/qtcam"
+  make INSTALL_ROOT="${pkgdir}" install
+  rm "${pkgdir}/usr/share/Qtcam"
+#  install -Dm644 "${srcdir}/${_gitname}/arch_linux/qtcam.desktop" "${pkgdir}/usr/share/applications/qtcam.desktop"
+#  install -Dm644 "${srcdir}/${_gitname}/src/qml/qtcam/icon/images/icon.jpg" "${pkgdir}/usr/share/pixmaps/qtcam.jpg"
+  install -Dm755 "${srcdir}/${_gitname}/src/Qtcam" "${pkgdir}/usr/bin/Qtcam"
 }
 
 # vim: set ts=2 sw=2 ft=sh noet:

Use make install which previously commented,  but had to patch the target path to /usr/share from /usr.

Offline

#5 2020-12-31 09:51:42

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 88

Re: [SOLVED] qtcam-git fails to build

Thank you!

I've tried using command "cp" a it seems that "install" doesn't have recursive action, and it didn't work.
Where can I find more on function "prepare()"?

Last edited by RedArcher (2020-12-31 09:52:10)

Offline

#6 2020-12-31 09:54:02

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED] qtcam-git fails to build

Offline

#7 2020-12-31 16:51:08

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 88

Re: [SOLVED] qtcam-git fails to build

Thanks!

I've made Desktop and Icon files

Desktop File:

[Desktop Entry]
Version=1.0
Type=Application
Name=Qtcam
Comment=Qt Camera App
#Comment=Webcamera Software with more than 10 image control settings
#Comment=e-con’s open source Linux webcam software
#Comment=e-con’s Linux Webcam Software
GenericName=Webcam
Icon=qtcam
Exec=Qtcam
Terminal=false
Categories=Video;AudioVideo;
StartupNotify=true

Graphics:
TKAbBol.png
https://imgur.com/TKAbBol

Edit: There already is an icon available at https://www.e-consystems.com/images/QtC … M-Icon.png

Last edited by RedArcher (2020-12-31 16:57:48)

Offline

#8 2020-12-31 18:22:53

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED] qtcam-git fails to build

Have you added the .desktop file icons to the PKGBUILD?  You could notify the maintainer the PKGBUILD fails to build,  flag it out of date and link to this thread or provide an update PKGBUILD.
Edit:
Package has no current maintainer,  you could adopt if you wanted to maintain it.

Last edited by loqs (2020-12-31 18:25:24)

Offline

#9 2021-01-02 20:01:10

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 88

Re: [SOLVED] qtcam-git fails to build

loqs wrote:

Package has no current maintainer,  you could adopt if you wanted to maintain it.

I'd love to. To whom do I send an application?

Offline

#10 2021-01-02 20:37:57

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] qtcam-git fails to build

No need to send an application.

register an aur account .
login to aur, navigate to the qtcam-git page and you'll notice an "adopt package" option .

For submitting you'll need a personal ssh key pair.
Check https://wiki.archlinux.org/index.php/AU … guidelines thoroughly .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB