George Bora
George Bora

Reputation: 1650

QTCreator won't find headers for QTVTK Widget?

Hello I added a Qtvtk widget in QtCreator to my window and then tried to build and run the program, I then received a error saying that some headers were missing.

I would like to emphasize that I didn't add any of my own code yet, I just dragged and dropped from the toolkit the widget.

Now maybe I'm not thinking this correctly but if the item appears in the toolkit and is doped without a problem, the headers should be accessible or else it wouldn't have appeared in the toolkit.

I'd like to mention I'm working on Ubuntu, I haven't installed VTK on it's own but with the PCL package, a library which uses VTK for it's visualizer,so there maybe something funny with my library installation orders.

The headers which can't be found:

#include "vtkSystemIncludes.h"
#include "vtkABI.h"

The error itself, yes it's win32 and I'm on linux, is:

/usr/include/QVTKWin32Header.h:23: error: vtkSystemIncludes.h: No such file or directory

So if there is something more to be done so I can use the widget please tell me.

Upvotes: 1

Views: 1469

Answers (1)

I L
I L

Reputation: 188

Have you Properly Compiled and linked the Library to the Project? Have you also linked the Source files to the Project?

include the source by adding "INCLUDEPATH += path_to_source*" to your .pro file e.g INCLUDEPATH += $$PWD/../src for a source located in the directory up the present working directory with name src

and library by adding "LIBS += -L path_to_compiled_library" to your .profile

If already done and Not working, Double check to ensure that the path is correct..

Upvotes: 2

Related Questions