I'm using Qt Creator 2.4.1 under Xubuntu 11.10.
I've installed libgdcm2-dev (2.0.17) in repositories.
Now I have
/usr/include/gdcm-2.0
/usr/lib/gdcm-2.0
and a lot of *.so related to gdcm in Writing code, I can autocomplete sentences with gdcm classes and functions (the IDE finds them), but compiling, it gives me error messages like:
My code:
#include <gdcmImageReader.h>
...
gdcm::ImageReader ir;
#include <gdcmImageReader.h>
...
gdcm::ImageReader ir;
To copy to clipboard, switch view to plain text mode
I get:
error: undefined reference to `gdcm::ImageReader::ImageReader()'
I've tried with:
#include "/usr/include/gdcm-2.0/ImageImageReader.h"
#include "/usr/include/gdcm-2.0/ImageImageReader.h"
To copy to clipboard, switch view to plain text mode
With this one, it works from a simple editor like Geany.
In my .pro file I have
INCLUDEPATH += /usr/include/gdcm-2.0
LIBS += -L/usr/lib/
INCLUDEPATH += /usr/include/gdcm-2.0
LIBS += -L/usr/lib/
To copy to clipboard, switch view to plain text mode
What could I try? Thanks.
Bookmarks