Add VTK library to Qt project
-
@SGaist I recompiled same version of VTK and it's here:
C:\apps\MSVC_apps_debug\VTK_820
Then I copied project from E:\Users\Tasik\Documents\Qt_prj\VTK to C:\Users\tasik\Documents\Qt_Projects\VTK. So application name is the same.
And dependency it is difficult to say but I use the same Qt and MSVC.
Don't you know what jom 1.1.3 - empower your cores means?
Here is my Qt configuration:
-
Did you nuke the .pro.user file ?
If not, this one is likely still configured for your old project. -
@SGaist yes I looked carefully at the .pro-file and I think it'is ok because it is a standart pro-file with added libraries. I also tried to create new project, add libraries and launche copied main.cpp - the same result.
Do you know what jom 1.1.3 - empower your cores means? Beaucause this is the only thing that sometimes is highlited with red color
-
@SGaist I found that I don't have PATH (all in capital) neither in ENVIRONMENT VARIABLES nor in SYSTEM VARIABLES.
I only have Path ENVIRONMENT VARIABLE. Maybe I should create it and point to some Qt or Visual Studio components? -
I wasn't talking about the .pro file but the .pro.user file that is generated by Qt Creator and which contains the various settings of your project.
No, just use Path since it's what is already used by the system (I currently don't know why the casing has changed).
-
You may have gremlins in your machine...
Did you check with DependencyWalker if you are missing any dll ?
As for the jom message, jom is a nmake replacement that does handle parallel building in a better.
-
@SGaist said in Add VTK library to Qt project:
You may have gremlins in your machine...
What is "gremlins"?
I just tried dependency walker even I dont fully understand how to use it (I clicked File->Open MyApp) I can say that all these libraries that are highlighted with yellow I have in C:\apps\MSVC_apps_debug\VTK_820\bin
And I added this /bin path to Path and PATH variables in Qt Runtime Environment (in Projects tab)
-
@SGaist thank you!
Tanks to your idea that I miss some libraries I doble clicked on MyApp.exe :)
And it told me that it needs some VTK libraries and ZLIB!!! O forgot that when I was compiling VTK libraries last time (on Windows 10) I pointed that I have ZLIB in Cmake GUI and when I did it before (on Windows 7) I didn't do that. And it seems to me that the debugger doesn't have to tell me wether I miss libraries or not.Then I copied .dll files from /VTK/bin and /ZLIB/bin to MyApp.exe folder and it worked
Then I added /ZLIB/bin to the PATH and deleted .dll files from MyApp.exe folder and it also worked
But what is the difference between BUILD and RUNTIME settings in as in picture below? Now I added path to /VTK/bin and /ZLIB/bin in both of them.
Tomorrow I'm going to try other examples from VTK web-site but I think all of them should now wooooork :)
-
Glad you found out and thanks for sharing !
As for the gremlin, it comes from an old plane related sabotaging critter.