Skip to content

Conversation

yangning1368
Copy link
Contributor

Signed-off-by: Yang, Ning [email protected]

Signed-off-by: Yang, Ning <[email protected]>

if(LIBGMM_FOUND)
include_directories(BEFORE ${LIBGMM_INCLUDE_DIRS})
link_directories(${LIBGMM_LIBRARY_DIRS})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't call link_directories() after add_library(): it will not take effect. You can see this if you will configure and install gmmlib to the custom location. I get this error with your PR:
/usr/bin/ld: cannot find -ligdgmm

I have fixed this in my PR: #270. Please, take a look

endif()

include(${MEDIA_DRIVER_CMAKE}/ext/media_feature_include_ext.cmake OPTIONAL)
target_compile_definitions(${LIB_NAME} PUBLIC GMM_LIB_DLL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output_dri_init(ctx);
#endif

void *gmm_handle = dlopen(GMM_UMD_DLL, RTLD_NOW);
Copy link
Contributor

@dvrogozh dvrogozh Aug 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You link against igdgmm, you don't need to dlopen() it and search for symbols. You can see here how this should actually be done: 700ac49#diff-142d67e662b77af7cb7deda2856b8118R1401

Copy link
Contributor

@dvrogozh dvrogozh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have fixed those 3 issues which I have highlighted here: #270. Actually that's the same PR, but with fixed problems...

@yangning1368 yangning1368 deleted the patch branch August 28, 2018 08:06
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

Successfully merging this pull request may close these issues.

2 participants