basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
40 stars 9 forks source link

Can't compile the plugin on windows #66

Closed rwang5203 closed 8 months ago

rwang5203 commented 8 months ago

The bug: Library nvbufsurface found: NO Run-time dependency CUDA (modules: cudart) found: NO (tried system) Message: Deepstream or CUDA not found, skipping NVMM support Run-time dependency valgrind found: NO (tried pkgconfig) Run-time dependency gstreamer-plugins-base-1.0 found: YES 1.22.6 Dependency gstpylon found: YES 0.7.0 (overridden) Program C:/gstreamer/1.0/msvc_x86_64/libexec/gstreamer-1.0/gst-plugins-doc-cache-generator found: NO docs\meson.build:32: WARNING: GStreamer plugin inspector for documentation not found, can't update the cache Program hotdoc found: NO Message: Hotdoc not found, not building the documentation Message: Meta python bindings disabled Configuring config.h using configuration Build targets in project: 8

To Reproduce: meson setup build --prefix=%GSTREAMER_1_0_ROOT_MSVC_X86_64%

Expected behavior The paths are all correct, not sure what path is wrong.

thiesmoeller commented 8 months ago

What is the error, that you get? Is meson failing or ninja ?

rwang5203 commented 8 months ago

Here is the error message it produces when I try meson setup build --prefix=%GSTREAMER_1_0_ROOT_MSVC_X86_64%

Program C:/gstreamer/1.0/msvc_x86_64/libexec/gstreamer-1.0/gst-plugins-doc-cache-generator found: NO
docs\meson.build:32: WARNING: GStreamer plugin inspector for documentation not found, can't update the cache
Program hotdoc found: NO
Message: Hotdoc not found, not building the documentation
Message: Meta python bindings disabled
Configuring config.h using configuration
Build targets in project: 8

gst-plugin-pylon 0.7.0

    Plugins: pylon

  User defined options
    prefix : C:\gstreamer\1.0\msvc_x86_64\

Found ninja-1.11.0 at "C:\Program Files\Meson\ninja.EXE"

I assume that means compilation is completed. And when I continue and run ninja -C build, it runs into an error again. I think the initial meson compilation failed in finding a gst-plugins-doc-cache-generator as it showed in the error. So the ninja build is also unsucessful.

Here is meson error output:

meson error

Here is ninja error output:

ninja error

Working Environment: Windows 11, CUDA 12.2, Pylon 7.4.0 (not sure if I need to switch to 7.3.0), gstreamer 1.22.6, VS 2019

rwang5203 commented 8 months ago

This issue is resolved after reinstalling pylon 7.3.0. Thanks!