jasperla / openbsd-wip

OpenBSD work in progress ports
http://www.openbsd.org/
267 stars 88 forks source link

obs make fails with Libpci error #159

Closed divansantana closed 1 year ago

divansantana commented 1 year ago

Hi,

Perhaps this is a known issue, since it's an incomplete build. I was hoping to get obs build and installed. Below is the error, is their a workaround?

-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/X11R6/lib/libxcb-xinput.so.0.1;/usr/X11R6/lib/libxcb.so.4.1;/usr/X11R6/lib/libxcb-composite.so.1.0;/usr/X11R6/lib/libxcb-damage.so.1.0;/usr/X11R6/lib/libxcb-dri2.so.1.1;/usr/X11R6/lib/libxcb-ewmh.so.2.0;/usr/X11R6/lib/libxcb-glx.so.1.1;/usr/X11R6/lib/libxcb-icccm.so.4.0;/usr/X11R6/lib/libxcb-image.so.2.0;/usr/X11R6/lib/libxcb-keysyms.so.3.0;/usr/X11R6/lib/libxcb-randr.so.2.3;/usr/X11R6/lib/libxcb-render.so.1.1;/usr/X11R6/lib/libxcb-render-util.so.2.0;/usr/X11R6/lib/libxcb-shape.so.1.1;/usr/X11R6/lib/libxcb-shm.so.1.1;/usr/X11R6/lib/libxcb-sync.so.1.2;/usr/X11R6/lib/libxcb-util.so.0.0;/usr/X11R6/lib/libxcb-xfixes.so.2.0;/usr/X11R6/lib/libxcb-xtest.so.1.0;/usr/X11R6/lib/libxcb-xv.so.1.1;/usr/X11R6/lib/libxcb-xinput.so.0.1;/usr/X11R6/lib/libxcb-xinerama.so.1.0
-- Found PulseAudio - Audio Monitor enabled
-- Checking for modules 'gio-2.0;gio-unix-2.0'
--   Found gio-2.0, version 2.72.4
--   Found gio-unix-2.0, version 2.72.4
-- Found Gio: /usr/local/lib/libgio-2.0.so.4200.15
-- Found ImageMagick: /usr/local/lib/libMagickCore-6.Q16.so.8.1 (found version "6.9.12-63")
-- Using libavcodec for image loading in libobs
-- Found ZLIB: /usr/bin/../lib/libz.so.7.0
-- Found Wayland: /usr/local/lib/libwayland-client.so.0.1;/usr/local/lib/libwayland-server.so.0.1;/usr/local/lib/libwayland-egl.so.0.0;/usr/local/lib/libwayland-cursor.so.0.0  found components: Client
-- Found Xkbcommon: /usr/local/lib/libxkbcommon.so.1.6
-- XCB[XCB]: Found component XCB
-- XCB[RANDR]: Found component RANDR
-- XCB[SHM]: Found component SHM
-- XCB[XFIXES]: Found component XFIXES
-- XCB[XINERAMA]: Found component XINERAMA
-- Found XCB: /usr/X11R6/lib/libxcb.so.4.1;/usr/X11R6/lib/libxcb-randr.so.2.3;/usr/X11R6/lib/libxcb-shm.so.1.1;/usr/X11R6/lib/libxcb-xfixes.so.2.0;/usr/X11R6/lib/libxcb-xinerama.so.1.0  found components: XCB RANDR SHM XFIXES XINERAMA
-- Found Libv4l2: /usr/local/lib/libv4l2.so.0.0
-- Could NOT find UDev (missing: UDEV_LIB UDEV_INCLUDE_DIR)
-- udev disabled for v4l2 plugin
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.so.25.0 (found version "58.134.100") found components: avcodec avutil avformat
-- Found Sndio: /usr/lib/libsndio.so.7.2
-- Found Libx264: /usr/local/lib/../lib/libx264.so.24.0
-- Found Libfdk: /usr/local/lib/../lib/libfdk-aac.so.1.0
-- Found FFmpeg: /usr/local/lib/../lib/libavcodec.so.25.0 (found version "58.134.100") found components: avcodec avfilter avdevice avutil swscale avformat swresample
-- Checking for module 'libpci'
--
CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Libpci (missing: LIBPCI_LIB LIBPCI_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindLibpci.cmake:31 (find_package_handle_standard_args)
  plugins/obs-ffmpeg/CMakeLists.txt:15 (find_package)

-- Configuring incomplete, errors occurred!
See also "/usr/obj/ports/obs-studio-27.2.4/build-amd64/CMakeFiles/CMakeOutput.log".
See also "/usr/obj/ports/obs-studio-27.2.4/build-amd64/CMakeFiles/CMakeError.log".
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2932 'do-configure': @cd /usr/obj/ports/obs-studio-27.2.4/build-amd64 && /usr/bin...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2952 '/usr/obj/ports/obs-studio-27.2.4/build-amd64/.configure_done': @cd /usr/por...)
*** Error 2 in /usr/ports/openbsd-wip/multimedia/obs-studio (/usr/ports/infrastructure/mk/bsd.port.mk:2611 'all': @lock=obs-studio-27.2.4;  ...)
rfht commented 1 year ago

obs has been a challenge. This WIP draft will likely need an overhaul including updated Makefile syntax. I'll close this for now as we need some form of update/PR to continue working on obs...