-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva.cpp:5745: undefined reference to `GmmResGetSizeSurface'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva.cpp.o: In function `DdiMedia_CreateImage(VADriverContext*, _VAImageFormat*, int, int, _VAImage*)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva.cpp:3830: undefined reference to `GmmResCreate'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva.cpp:3895: undefined reference to `GmmResFree'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva.cpp.o: In function `DdiMedia_Terminate(VADriverContext*)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva.cpp:1634: undefined reference to `GmmDestroyGlobalContext'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva.cpp.o: In function `DdiMedia__Initialize(VADriverContext*, int*, int*)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva.cpp:1403: undefined reference to `GmmInitGlobalContext'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva.cpp:1475: undefined reference to `pGmmGlobalContext'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/cm/cm_hal_os.cpp.o: In function `HalCm_GetSurfPitchSize':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/cm/cm_hal_os.cpp:370: undefined reference to `GmmResCreate'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/cm/cm_hal_os.cpp:375: undefined reference to `GmmResFree'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_util.cpp.o: In function `DdiMediaUtil_AllocateBuffer':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:676: undefined reference to `GmmResCreate'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:679: undefined reference to `GmmResOverrideAllocationSize'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:680: undefined reference to `GmmResOverrideAllocationBaseWidth'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:681: undefined reference to `GmmResOverrideAllocationPitch'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_util.cpp.o: In function `DdiMediaUtil_Allocate2DBuffer':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:729: undefined reference to `GmmResCreate'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_util.cpp.o: In function `DdiMediaUtil_FreeSurface(_DDI_MEDIA_SURFACE*)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:1067: undefined reference to `GmmResFree'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_util.cpp.o: In function `DdiMediaUtil_AllocateSurface':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:500: undefined reference to `GmmResCreate'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_util.cpp.o: In function `DdiMediaUtil_FreeBuffer(_DDI_MEDIA_BUFFER*)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_util.cpp:1096: undefined reference to `GmmResFree'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_putsurface_linux.cpp.o: In function `DdiCodec_PutSurfaceLinuxHW(VADriverContext*, unsigned int, void*, short, short, unsigned short, unsigned short, short, short, unsigned short, unsigned short, _VARectangle*, unsigned int, unsigned int)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_putsurface_linux.cpp:488: undefined reference to `GmmResCreate'
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/ddi/media_libva_putsurface_linux.cpp:532: undefined reference to `GmmResFree'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/mos_context_specific.cpp.o: In function `OsContextSpecific::Destroy()':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/os/mos_context_specific.cpp:659: undefined reference to `GmmDeleteClientContext'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/mos_context_specific.cpp.o: In function `OsContextSpecific::Init(_MOS_OS_CONTEXT*)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/os/mos_context_specific.cpp:508: undefined reference to `GmmCreateClientContext'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/mos_os_specific.c.o: In function `Linux_Destroy(_MOS_OS_CONTEXT*, int, int)':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/os/mos_os_specific.c:1004: undefined reference to `GmmDeleteClientContext'
CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/mos_os_specific.c.o: In function `Mos_Specific_InitInterface':
/home/dvrogozh/git/github/clean/media-driver/media_driver/linux/common/os/mos_os_specific.c:5758: undefined reference to `GmmCreateClientContext'
collect2: error: ld returned 1 exit status
make[2]: *** [media_driver/iHD_drv_video.so] Error 1
make[1]: *** [media_driver/CMakeFiles/iHD_drv_video.dir/all] Error 2
make: *** [all] Error 2
To reproduce:
- Apply switch to dynamic gmmlib media-driver#270
- Try to configure and build media driver - you will see the above link error
Detailed repro steps:
git clone https://github.com/intel/media-driver.git && cd media-driver
git fetch origin pull/270/head:gmmlib_via_pkgconfig
git checkout gmmlib_via_pkgconfig
export PKG_CONFIG_PATH=/path/to/gmmlib/install/location/pkgconfig/igdgmm.pc
mkdir build && cd build
cmake ..
make -j8
Metadata
Metadata
Assignees
Labels
No labels