Daniel
Daniel

Reputation: 2726

Portability of VTK applications

My program was written with some vtk and qvtkwidget stuffs. I want to know is the portability going to be an issue? Can someone run the program on his own computer without vtk installed on it? UPDATE: I am using Linux as operative system, by the way.

Upvotes: 1

Views: 174

Answers (1)

Andrea
Andrea

Reputation: 6123

Assuming that you've created an application for Windows: yes, you just need to include the .dll files with your exe. Since you are using VTK and "qvtkwidget stuffs" (I presume Qt...), you have to include the .dll files of VTK and Qt that you use in your application.

Now, if you try to run your application on another PC, with no VTK/Qt libraries in its file system, you'll almost certainly receive an error, something like "The program can't start because xx.dll is missing from your computer [...]".

enter image description here

So, you just need to include all the necessary .dll files until the application will work fine. At that point, you'll be sure that the application is portable between all Windows machines (assuming a Windows version that is compatible with your distribution of Qt and VTK, of course).

Upvotes: 1

Related Questions