i have write the code and create the GUI and it works fine for jpeg file. But I have to visualize images from dcm format so now I have to add some code for manage the dcm format.
I have read a lot of guide but I'm not able to use the DCMTK libraries.
I've done:
+download dcmtk-3.6.0;
+download cmake-3.8.0-rc1-win64-x64;
+use cmake and configure the project for visual studio 14;
+In the Qt .pro file i've add the code:
Code: Select all
INCLUDEPATH += C:/Users/.../DCMTK/include
LIBS += -L C:/Users/.../DCMTK/lib \
-ladvapi32 \
-ldcmdata \
-loflog \
-lofstd \
-lws2_32 \
-lnetapi32 \
-lwsock32
I found on web this, is right ?
when i go to my mainwindows i can add the libraries and if I write some code it is recognize from the editor (the color of the words change) but when i try to run I have these errors:
Code: Select all
C:\Users\...\DCMTK\include\dcmtk\ofstd\offile.h:200: error: cannot convert 'bool' to 'FILE* {aka _iobuf*}' in assignment
file_ = _popen(command, modes);
C:\Users\...\DCMTK\include\dcmtk\ofstd\offile.h:262: error: no matching function for call to 'OFFile::_pclose(FILE*&)'
result = _pclose(file_);
I use:
- windows 10
- Qt 5.1.1 MinGW 32bit
what I'm doing wrog?