Skip to content

Conversation

@Cheney-W
Copy link

@Cheney-W Cheney-W commented Jun 26, 2023

Hello, I'm a member of Microsoft VCPKG. When I install dcmtk by vcpkg after we updated the pkg-config to 1.8.0, I got below error:

Package dcmtk was not found in the pkg-config search path.
Perhaps you should add the directory containing `dcmtk.pc'
to the PKG_CONFIG_PATH environment variable
Package 'dcmtk', required by 'virtual:world', not found

Above error also could be reproduced by command:
pkg-config.exe --print-errors --exists dcmtk --with-path={path of pc file}

This issue occurred because there were leading spaces in the content of the pc file. After removing the spaces, the issue was resolved.

 Name: DCMTK
 Description: DICOM Toolkit (DCMTK)
 URL: https://dcmtk.org
 Version: 3.6.7

To maintain consistent formatting, I removed all the spaces.

@michaelonken
Copy link
Member

Merged into local testing branch, will be visible on GitHub master branch within a few days. Thanks for the report and patch!

@Cheney-W Cheney-W deleted the Cheney-W-patch-1 branch June 29, 2023 01:52
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