Error in importing the library

Sorry that it is my first time to do the project based programming.

I have tried to import library into visual studio for programming .

I follow the tutorial in internet and I imported the VTK modules successfully, but some header file still can not be import, such as vtkMRMLApplicationLogic.h, vtkMRMLScene.h, vtkMRMLModelNode.h which is in the slicer master library.

I try to use the library directories or import directly, but both method are failed.

Is it have any other way to import the header file?

To get started, I would recommend to follow the existing modules as examples or use the templates.

Sorry, I do not quite understand your meaning.

Is it mean that I just need to modify in existing extension file?

Yes, first study existing extensions, understand how they work, make small modifications to them. Once you are confident you can start creating new modules.

I have already modified the extensions code, but it needs to export to be .pyd file.

Following the tutorial in internet, I need to build the project successfully first. But some header file which is mention in question cannot be included. It makes cannot able to build project sucessfully.

You can start with just building an existing extension without any modification. If you have problems with that then let us know what the exact error message is and we should be able to help.


It still come out same error.

Have you followed these instructions?

1 Like

No, I just open the .cxx file directly.

I will try to use it to build the project again.
Thanks for your help.