Package Details: libuvc 0.0.7-2

Git Clone URL: https://aur.archlinux.org/libuvc.git (read-only, click to copy)
Package Base: libuvc
Description: a cross-platform library for USB video devices
Upstream URL: https://int80k.com/libuvc/
Licenses: BSD
Submitter: de-vries
Maintainer: de-vries
Last Packager: de-vries
Votes: 29
Popularity: 1.84
First Submitted: 2018-04-05 21:37 (UTC)
Last Updated: 2023-05-15 16:45 (UTC)

Latest Comments

de-vries commented on 2023-05-15 16:45 (UTC)

Added the staticlibs option. Thanks!

pix3l commented on 2023-05-14 20:37 (UTC)

staticlibs are built and referenced by cmake file, by deleted during package. staticlibs option is needed, otherwise cmake projects will fail (like osvr-core-git below)

diff --git a/PKGBUILD b/PKGBUILD
index 949600b..70b0c3e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,7 @@ url="https://int80k.com/libuvc/"
 license=('BSD')
 depends=('glibc' 'libusb' 'libjpeg')
 makedepends=('cmake')
+options=(staticlibs)
 source=("$pkgname-$pkgver.tar.gz::https://github.com/ktossell/libuvc/archive/v$pkgver.tar.gz")
 sha256sums=('7c6ba79723ad5d0ccdfbe6cadcfbd03f9f75b701d7ba96631eb1fd929a86ee72')
- Git reports version 0.6-2231-g495648e4
-- Found JPEG: /usr/lib/libjpeg.so (found version "80")
-- Found JPEG library using standard module
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (JPEG) does
  not match the name of the calling package (JpegPkg).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/lib/cmake/libuvc/FindJpegPkg.cmake:58 (find_package_handle_standard_args)
  /usr/lib/cmake/libuvc/libuvcConfig.cmake:13 (find_package)
  CMakeLists.txt:108 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found JPEG: /usr/lib/libjpeg.so
-- libusb-1.0 found using pkgconfig
CMake Error at /usr/lib/cmake/libuvc/libuvcTargets.cmake:101 (message):
  The imported target "LibUVC::UVCStatic" references the file

     "/usr/lib/libuvc.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/cmake/libuvc/libuvcTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/libuvc/libuvcConfig.cmake:15 (include)
  CMakeLists.txt:108 (find_package)

de-vries commented on 2022-09-30 14:54 (UTC)

Added aarch64 :)

petaramesh commented on 2022-09-30 14:05 (UTC)

Hi, Could you please add 'aarch64' to the supported architectures in PKGBUILD, as it compiles and works fine there ? Thanks in advance.

ecloud commented on 2021-09-23 06:57 (UTC)

My system has ninja installed, therefore cmake prefers to generate a ninja file instead of a makefile. But the PKGBUILD assumes you will use make! So either you need to detect that I guess, or else add this cmake argument: -G"Unix Makefiles"... that worked for me.

EndlessEden commented on 2021-08-20 19:56 (UTC) (edited on 2021-08-20 20:04 (UTC) by EndlessEden)

please add "-DCMAKE_BUILD_TARGET=Both" to PKGBUILD. as its currently only building Shared Libraries.

de-vries commented on 2020-04-20 11:35 (UTC)

The package builds fine in a clean chroot. Whatever required you to make that change is probably caused by something non-standard in your environment.

help_withfix commented on 2020-04-20 02:44 (UTC) (edited on 2020-04-20 02:45 (UTC) by help_withfix)

There is one problem with libusb headers. How to fix: change 14 line in this file libuvc/src/libuvc-0.0.6/include/libuvc/libuvc_internal.h where libusb included from #include <libusb> to #incude <libusb-1.0/libusb.h>