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

[qt5] Fix linux dynamic build #15005

Merged
merged 1 commit into from
Dec 21, 2020
Merged

Conversation

dweckmann
Copy link
Contributor

Describe the pull request

Basically this PR does three things:

  1. Allow to correctly find and link to psql client
  2. Allow to correctly link module that have qt5-base as dependency, regarding ICU and zstd sub-dependencies
  3. Allow to correctly run Qt tools (rcc, qkgen, ...) and use qt5 libraries at build time.

Setting LD_LIBRARY_PATH may be somewhat dangerous, but I cannot find a better way to do that, without changing too much things. If someone have a better idea, feel free to propose !

@dweckmann dweckmann force-pushed the qt5-fix-dynamic-build branch from c6d90a7 to 3ddb154 Compare December 8, 2020 14:37
@JackBoosY
Copy link
Contributor

cc @Neumann-A for review this PR,

@JackBoosY JackBoosY self-assigned this Dec 9, 2020
@dweckmann dweckmann force-pushed the qt5-fix-dynamic-build branch 3 times, most recently from 27b69ab to 04635cc Compare December 9, 2020 05:41
@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Dec 9, 2020
@dweckmann dweckmann force-pushed the qt5-fix-dynamic-build branch from 04635cc to 53daa6e Compare December 9, 2020 12:26
@JackBoosY JackBoosY requested a review from BillyONeal December 10, 2020 02:03
@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Dec 10, 2020
Comment on lines 71 to 72
set(_ld_library_path_backup_ $ENV{LD_LIBRARY_PATH})
if(NOT "${_ld_library_path_backup_}" STREQUAL "")
Copy link
Contributor

Choose a reason for hiding this comment

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

That is incorrect. if $ENV{LD_LIBRARY_PATH} is set to "" it means .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I will use if(DEFINED ENV{<name>}). Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can check again. I unset the env variable if it wasn't set, otherwise I use the backup.

@JackBoosY JackBoosY added requires:author-response and removed info:reviewed Pull Request changes follow basic guidelines labels Dec 10, 2020
@dweckmann dweckmann force-pushed the qt5-fix-dynamic-build branch 4 times, most recently from 781e3d4 to 8bdd6f4 Compare December 17, 2020 07:12
@dweckmann dweckmann force-pushed the qt5-fix-dynamic-build branch from 8bdd6f4 to 9eee572 Compare December 17, 2020 10:00
@JackBoosY
Copy link
Contributor

@Neumann-A Do you have any other concerns about this?

@dweckmann dweckmann force-pushed the qt5-fix-dynamic-build branch from 9eee572 to dbf8fb7 Compare December 18, 2020 14:50
@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Dec 21, 2020
Copy link
Member

@vicroms vicroms left a comment

Choose a reason for hiding this comment

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

LGTM

@BillyONeal BillyONeal merged commit f7e746d into microsoft:master Dec 21, 2020
@BillyONeal
Copy link
Member

Thanks for your help!

@dweckmann dweckmann deleted the qt5-fix-dynamic-build branch December 23, 2020 12:06
ryukw7 pushed a commit to ryukw7/vcpkg that referenced this pull request Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[qt5-base:x64-linux] build failure: [libpq] not found with dynamic linkage
5 participants