Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 19:56:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256912] emulators/yuzu-qt5: build fails when pkgconf is present
Message-ID:  <bug-256912-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256912

            Bug ID: 256912
           Summary: emulators/yuzu-qt5: build fails when pkgconf is
                    present
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: jkim@FreeBSD.org
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)
          Assignee: jbeich@FreeBSD.org

Created attachment 226141
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D226141&action=
=3Dedit
Do not use pkgconf to find libusb for FreeBSD

CMake fails to find libusb when pkgconf exists.

...

-- Found PkgConfig: /usr/local/bin/pkg-config (found version "1.7.4")=20
CMake Warning at CMakeLists.txt:440 (message):
  libusb not found, falling back to externals

...

CMake Error at externals/libusb/CMakeLists.txt:109 (add_library):
  Cannot find source file:

    libusb/libusb/core.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
  .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc


CMake Error at externals/libusb/CMakeLists.txt:109 (add_library):
  No SOURCES given to target: usb

...

The attached patch let us bypass the pkgconf test and successfully find the
libusb from the base.

...

-- Checking for module 'libusb-1.0'
--   Found libusb-1.0, version 1.0.13
-- Found libusb-1.0: /usr/include, /usr/lib/libusb.so

...

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256912-7788>