Open O-Tom opened 1 month ago
Could you please provide a simple repro project(include vcpkg.json).
Hi,
Attached is a minimal project reproducing the problem with build commands for x64-linux
(which fails) and x64-windows
(which works).
While building this project, I realized that the conflict was between the poco
port and the qtbase
port and was not related to the gdal
port after all.
If the symptoms are similar, it's NOT the same problem as the one identified by #25941. I'll correct the title accordingly.
I fixed gdal upstream. But similar fixes should be applied to poco and qt: Rename the PCRE2_LIBARY
cache variable to indicate the chosen implementation (8/16/32).
Hi,
In the meantime, I've set up a github project around the minimal case: https://github.com/O-Tom/vcpkg_issue_41170 I've created an automatic build that reproduces the problem. Testing different ways around it, I've noticed that forcing a search for pcre2 BEFORE Qt6 fixes the link:
I'll use this workaround for now.
Testing different ways around it, I've noticed that forcing a search for pcre2 BEFORE Qt6 fixes the link
This isn't a proper fix. One package will get the wrong lib. It might just be hidden by other circumstances.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Hi, I see the title has been updated; I think we can also remove the “requires:repro” label ?
The error was reproduced on x64-linux:
It seems related to this: https://github.com/pocoproject/poco/issues/4598
How can one resolve this issue?
Describe the bug My project, based on cmake and vcpkg, compiles an executable that requires the qtbase and gdal ports. A
vcpkg.json
file is used to manage dependencies, and the whole thing works perfectly under windows with thex64-windows
triplet. Under linux, with thex64-linux
triplet, link phase fails with undefined symbols related to the pcre2 library. I looked for references to this problem before asking you and it seems to me that it is very similar, if not identical, to the one reported by #25941 Although this one is closed, I'm not sure it's been corrected; I haven't found any changes in the logs that correspond directly to the diagnosis made at the time.I reproduced this issue with the latest release of vcpkg, i.e. https://github.com/microsoft/vcpkg/releases/tag/2024.08.23
Environment
To Reproduce Create an application that links against gdal and qtbase. Build and link under linux with gcc.
Expected behavior No linker error.
Failure logs
Additional context No.