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

NG building from microsoft/vcpkg #196

Closed
QiuKejian opened this issue Aug 11, 2020 · 4 comments
Closed

NG building from microsoft/vcpkg #196

QiuKejian opened this issue Aug 11, 2020 · 4 comments

Comments

@QiuKejian
Copy link

build vtk-dicom from vcpkg, find_package and target_link_libraries is not working.

The following find_package and target_link_libraries is not working.
image

Error Message is: LINK: fatal error LNK1104: can not open "VTK::DICOM.lib".

Check the vcpkg build log , we can find that vtk-dicom is built by "outside of VTK" mode.
image

Please help, How can I fix this problem?

@JackBoosY
Copy link

Related: microsoft/vcpkg#12839

@dgobbi
Copy link
Owner

dgobbi commented Aug 12, 2020

Which version of VTK are you using? Are you building programs that use vtk-dicom, or are you packaging it up for other people to use?

For VTK 9, the most common way to build vtkDICOM is to enable it as part of the VTK build itself, by using the following configuration option (only for VTK 9, not for older versions of VTK):

VTK_MODULE_ENABLE_VTK_DICOM:STRING=DEFAULT

For VTK 8 and earlier, the instructions at https://dgobbi.github.io/vtk-dicom/doc/api/installation.html should work.

@JackBoosY
Copy link

@dgobbi VTK version 9.0.1.
Use official usage:

find_package(DICOM QUIET)
if(DICOM_FOUND)
  include(${DICOM_USE_FILE})
endif()
set(VTK_DICOM_LIBRARIES vtkDICOM)

does't work.

@QiuKejian
Copy link
Author

Which version of VTK are you using? Are you building programs that use vtk-dicom, or are you packaging it up for other people to use?

For VTK 9, the most common way to build vtkDICOM is to enable it as part of the VTK build itself, by using the following configuration option (only for VTK 9, not for older versions of VTK):

VTK_MODULE_ENABLE_VTK_DICOM:STRING=DEFAULT

For VTK 8 and earlier, the instructions at https://dgobbi.github.io/vtk-dicom/doc/api/installation.html should work.

appreciate for reply!!
I was using VTK9, the latest version. The situation is that I had build VTK9.0.1 from vcpkg,
therefore vtk-dicom is built outside of VTK.

On the other hand, i am trying to build vtk-dicom as a sub module, in this case there is also an unexpected behavior.
image

The reason is:
image

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

No branches or pull requests

3 participants