Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build in nvidia-340 #136

Closed
xswqaz opened this issue Dec 8, 2022 · 4 comments
Closed

Failed to build in nvidia-340 #136

xswqaz opened this issue Dec 8, 2022 · 4 comments

Comments

@xswqaz
Copy link

xswqaz commented Dec 8, 2022

Failed to build with below error

The Meson build system
Version: 0.61.2
Source dir: /home/user/nvidia-vaapi-driver
Build dir: /home/user/nvidia-vaapi-driver/build
Build type: native build
Project name: nvidia-vaapi-driver
Project version: 0.1
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library m found: YES
Library dl found: YES
Library EGL found: YES
Dependency gstreamer-codecparsers-1.0 found: YES 1.20.3 (cached)
Dependency ffnvcodec found: YES 11.1.5.1 (cached)
Dependency libva found: YES 1.14.0 (cached)
Dependency threads found: YES unknown (cached)
Build targets in project: 1

ninja: Entering directory /home/user/nvidia-vaapi-driver/build' [1/1] Linking target nvidia_drv_video.so FAILED: nvidia_drv_video.so cc -o nvidia_drv_video.so nvidia_drv_video.so.p/src_av1.c.o nvidia_drv_video.so.p/src_export-buf.c.o nvidia_drv_video.so.p/src_direct_direct-export-buf.c.o nvidia_drv_video.so.p/src_direct_nv-driver.c.o nvidia_drv_video.so.p/src_h264.c.o nvidia_drv_video.so.p/src_hevc.c.o nvidia_drv_video.so.p/src_jpeg.c.o nvidia_drv_video.so.p/src_mpeg2.c.o nvidia_drv_video.so.p/src_mpeg4.c.o nvidia_drv_video.so.p/src_vabackend.c.o nvidia_drv_video.so.p/src_vc1.c.o nvidia_drv_video.so.p/src_vp8.c.o nvidia_drv_video.so.p/src_list.c.o nvidia_drv_video.so.p/src_vp9.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,nvidia_drv_video.so /usr/lib/x86_64-linux-gnu/libva.so /usr/lib/x86_64-linux-gnu/libgstcodecparsers-1.0.so /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so -lEGL -lm -ldl -Wl,--end-group -pthread /usr/bin/ld: nvidia_drv_video.so.p/src_export-buf.c.o: in function egl_initExporter':
/home/user/nvidia-vaapi-driver/build/../src/export-buf.c:237: undefined reference to eglGetPlatformDisplay' /usr/bin/ld: nvidia_drv_video.so.p/src_export-buf.c.o: in function egl_destroyBackingImage':
/home/user/nvidia-vaapi-driver/build/../src/export-buf.c:329: undefined reference to eglDestroyImage' /usr/bin/ld: nvidia_drv_video.so.p/src_export-buf.c.o: in function egl_allocateBackingImage':
/home/user/nvidia-vaapi-driver/build/../src/export-buf.c:470: undefined reference to eglCreateImage' /usr/bin/ld: /home/user/nvidia-vaapi-driver/build/../src/export-buf.c:474: undefined reference to eglDestroyImage'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Could not rebuild /home/user/nvidia-vaapi-driver/build

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 9400/integrated/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.108
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3.0 NVIDIA 340.108
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 340.108 340.108
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00
OpenGL ES profile extensions:

Any clues?

@elFarto
Copy link
Owner

elFarto commented Dec 8, 2022

The compile error is because you have a very old version of the EGL headers. But aside from that, this driver won't work with the 340 NVIDIA driver, it requires the 470 or 500+ series. I'm also not sure your card is recent enough to be supported by NVDEC either.

@crimist crimist mentioned this issue Dec 9, 2022
@xswqaz
Copy link
Author

xswqaz commented Dec 9, 2022

Is eglDestroyImage function required for hwaccel in browser ( chrome / firefox ) ?
It will be for helpful for low-end card user, If there is an option for old driver

@elFarto
Copy link
Owner

elFarto commented Dec 9, 2022

I'm afraid so. Unfortunately the 470 series of drivers is the oldest we can support as those are the ones that gained the ability to export DMA-BUFs.

@elFarto
Copy link
Owner

elFarto commented Dec 15, 2022

Closing issue as the 340 series isn't supported.

@elFarto elFarto closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants