Skip to content

[qt5] Fix linux dynamic build#15005

Merged
BillyONeal merged 1 commit intomicrosoft:masterfrom
IRCAD:qt5-fix-dynamic-build
Dec 21, 2020
Merged

[qt5] Fix linux dynamic build#15005
BillyONeal merged 1 commit intomicrosoft:masterfrom
IRCAD:qt5-fix-dynamic-build

Conversation

@dweckmann
Copy link
Copy Markdown
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
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Dec 10, 2020
Comment on lines 71 to 72
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. 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
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Dec 21, 2020
Copy link
Copy Markdown
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
Copy Markdown
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:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

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