Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
183 stars 127 forks source link

meson error if imx-codec is not installed (branch v2) #246

Closed DerDakon closed 3 years ago

DerDakon commented 4 years ago
Dependency libfslaudiocodec found: NO
Message: Installed fslaudiocodec library not found, or user disabled uniaudiodec element compilation - uniaudio decoder will not be built

ext/audio/meson.build:22:0: ERROR:  Search directory  is not an absolute path.

If I install imx-codec it works fine, but the error message is not helpful in location what is actually wrong.

dv1 commented 3 years ago

The meson recipe was changed, and might solve this issue by now. If you can, please try again. Reopen the issue if there is still an error.

DerDakon commented 3 years ago

Issue is still there:

Run-time dependency libfslaudiocodec found: NO (tried pkgconfig and cmake)
Message: Installed fslaudiocodec library not found, or user disabled uniaudiodec element compilation - uniaudio decoder will not be built

../gstreamer-imx-2.0.0/ext/audio/meson.build:24:0: ERROR: Search directory . is not an absolute path.

If I install it the messages are:

Run-time dependency libfslaudiocodec found: YES 4.3.5
Message: Found installed fslaudiocodec library - uniaudio decoder will be built
Message: imx audio codec path: "/usr/lib/imx-mm/audio-codec"
Library _mp3_enc_arm12_elinux found: YES
Message: Found installed _mp3_enc_arm12_elinux library - mp3 encoder will be built
dv1 commented 3 years ago

What are you using for (cross-)compilation? Yocto? Buildroot? Or are you building directly on the device?

DerDakon commented 3 years ago

Our custom cross build environment e2factory with hand-written build script.

For me it seems like the error comes from whatever is used to get the output for "Message: imx audio codec path:".

dv1 commented 3 years ago

Then this is something specific to the meson configuration. Do you use any particular meson cross compilation configuration? I am talking about https://mesonbuild.com/Cross-compilation.html#page-description

DerDakon commented 3 years ago

This is my cross-config, using meson 0.56.2: meson-cross-file.txt

Talkless commented 2 years ago

I too got ERROR: Search directory . is not an absolute path. when building on the device:

# meson ..
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
The Meson build system
Version: 0.56.2
Source dir: /root/code/gstreamer-imx/gstreamer-imx.git
Build dir: /root/code/gstreamer-imx/gstreamer-imx.git/build
Build type: native build
Project name: gstreamer-imx
Project version: 2.0.0
Using 'CFLAGS' from environment with value: '-I/root/opt/aarch64-poky-linux/usr/include'
C compiler for the host machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.2.1 20210110")
C linker for the host machine: cc ld.bfd 2.35.2
Using 'CFLAGS' from environment with value: '-I/root/opt/aarch64-poky-linux/usr/include'
Host machine cpu family: aarch64
Host machine cpu: aarch64
Message: Setting up build configuration for gstreamer-imx version 2.0.0
Library dl found: YES
Library m found: YES
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency libimxdmabuffer found: YES 1.0.1
Message: libimxdmabuffer supports ION allocation - enabling ION GstAllocator
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency gstreamer-1.0 found: YES 1.18.4
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency gstreamer-base-1.0 found: YES 1.18.4
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency gstreamer-allocators-1.0 found: YES 1.18.4
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency gstreamer-audio-1.0 found: YES 1.18.4
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency gstreamer-video-1.0 found: YES 1.18.4
Message: found gstaudio library - building audio plugins
Message: found gstvideo library - building video plugins
Has header "g2d.h" : YES 
Library g2d found: NO
Message: imx2d G2D backend disabled due to missing G2D dependency
Check usable header "linux/ipu.h" : NO 
Check usable header "imx/linux/ipu.h" : YES 
Message: imx2d IPU backend enabled
Check usable header "linux/pxp_device.h" : NO 
Check usable header "imx/linux/pxp_device.h" : NO 
Message: imx2d PxP backend disabled due to missing PxP dependency
Using 'PKG_CONFIG_PATH' from environment with value: '/root/opt/nxp/lib/pkgconfig/'
Run-time dependency libimxvpuapi2 found: YES 2.2.0
Message: Found installed imxvpuapi library - VPU elements will be built
Found CMake: /usr/bin/cmake (3.18.4)
Run-time dependency libfslaudiocodec found: NO (tried pkgconfig and cmake)
Message: Installed fslaudiocodec library not found, or user disabled uniaudiodec element compilation - uniaudio decoder will not be built

../ext/audio/meson.build:24:0: ERROR: Search directory . is not an absolute path.
Talkless commented 2 years ago

Workaround was to comment-out this line:

#subdir('ext/audio')