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

Unable to build shared library DLLs #3

Open
0xzz opened this issue May 23, 2019 · 2 comments
Open

Unable to build shared library DLLs #3

0xzz opened this issue May 23, 2019 · 2 comments

Comments

@0xzz
Copy link

0xzz commented May 23, 2019

@cpinter Is it currently possible to output dynamic library .DLLs and/or with Python wrappers?

By default only a single .lib static library is generated. But I see that there are statements related to exporting dynamic libaries.

if(VTK_WRAP_PYTHON AND BUILD_SHARED_LIBS)

After manually adding these two variables in CMAKE as booleans, it prompts

CMake Error at src/CMakeLists.txt:145 (include):
include could not find load file:
vtkMacroKitPythonWrap
CMake Error at src/CMakeLists.txt:147 (vtkMacroKitPythonWrap):
Unknown CMake command "vtkMacroKitPythonWrap".

This required vtkMacroKitPythonWrap.cmake command looks like a part of Slicer. Is there a way of generating the .DLL without involving Slicer? If not possible, how can I adapt this wrapper into PolySeg. I'm happy to do the legwork but need some guidance. Thank you!

@0xzz
Copy link
Author

0xzz commented May 23, 2019

On a side note, if BUILD_SHARED_LIBS is set to TRUE, and VTK_WRAP_PYTHON is set to FALSE, Cmake configure will still attempt to find the vtkMacroKitPythonWrap command. Does the logical AND operator here evaluate to TRUE, somehow? And is it possible to generate a DLL without the Python wrapper?

@cpinter
Copy link
Contributor

cpinter commented May 27, 2019

I haven't tested individual python wrapping so far.
Although this repository is detached from Slicer and can be built separately, some fixes probably still need to be done. I will do it when we decide to use PolySeg as a remote module in Slicer (i.e. use this repo and build in the superbuild), but I'll only do that if there is a serious user who also wants to use PolySeg, but outside Slicer.

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

2 participants