Open zzfzzf1018 opened 6 months ago
This issue could be reproduced with vcpkg 2024-03-14-7d353e869753e5609a1f1a057df3db8fd356e49d and VS2022 17.9.6
I was not able to reproduce the issue with "vcpkg 2024-03-14-7d353e869753e5609a1f1a057df3db8fd356e49d" @ baseline 59aeb8fe8fe1c980de6bd5ba634cf21024522d81 with VS2022 17.8.3, on neither x64-windows nor x64-windows-static.
Could you try to apply the PR https://github.com/microsoft/vcpkg/pull/38932 to see if it helps / to pin down the problem?
@zzfzzf1018 If other people have difficulties reproducing the problem, it could be helpful to check or share the configuration logs from buildtrees/dcmtk
. Not just the config log there, but also CMakeFiles/CMakeConfigureLog.yaml
in the subdirectories. dcmtk has extra checks and find modules, and these might clash with vcpkg.
And the next step is to inject --trace-expand
into the cmake options and look for other evil.
@zzfzzf1018, I can't reproduce your error using the latest version of dcmtk. Does this problem still exist?
Describe the bug I use the command to install the dcmtk with openssl feature on
Then I write some sample code using dcmtk tls like
It works well when building and executing in linux environment (in my WSL2 ubuntu), But in windows, I got below errors when build the project
_I find that the windows dcmtk package in dcmtk/config/osconfig.h file the WITHOPENSSL not defined
Seems the feature not truly enabled.
Environment
To Reproduce Steps to reproduce the behavior:
Expected behavior Should build success like in linux env
Failure logs ··· [build] C:\fly_dev_3\cmake_try\4-sample-win\main.cpp(147,5): error C2653: 'DcmTLSTransportLayer': is not a class or namespace name [C:\fly_dev_3\cmake_try\4-sample-win\out\build\Test\MyTest.vcxproj] [build] C:\fly_dev_3\cmake_try\4-sample-win\main.cpp(147,27): error C3861: 'initializeOpenSSL': identifier not found [C:\fly_dev_3\cmake_try\4-sample-win\out\build\Test\MyTest.vcxproj] [build] C:\fly_dev_3\cmake_try\4-sample-win\main.cpp(149,5): error C2065: 'DcmTLSTransportLayer': undeclared identifier [C:\fly_dev_3\cmake_try\4-sample-win\out\build\Test\MyTest.vcxproj] ···
Additional context If I define the WITH_OPENSSL in my code , then build. it will return the LINK error. So I believe the DCMTK not enable the OPENSSL feature in windowsX64
below is the vcpkg list