Installation Problem

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
mahtabrasheed195
Posts: 4
Joined: Fri, 2011-02-18, 17:17
Location: Pakistan
Contact:

Installation Problem

#1 Post by mahtabrasheed195 »

I am stuck with the installation of dcmtk-3.6 in vs2010.i make project files through cmake .After that i build the project.Now i am unable to include the libraries in my simple program?
i make a project in vs210 in the same directory where i build the dcmtk and picked the following code from somewhere:

#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmdata/dctk.h"

int main()
{
DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("test.dcm");
if (status.good())
{
OFString patientName;
if (fileformat.getDataset()->findAndGetOFString(DCM_PatientName, patientName).good())
{
cout << "Patient's Name: " << patientName << endl;
} else
cerr << "Error: cannot access Patient's Name!" << endl;
} else
cerr << "Error: cannot read DICOM file (" << status.text() << ")" << endl;
return 0;
}

but compiler says that no such library or header file exist.
i also checked the path ,there were no such files present.
so my point is where i did mistake
in making project files through cmake
or
in building and installing the dcmtk
plz tell me the right procedure to install and use dcmtk 3.6 in vs2010.
i also go through FAQ #47 and "install" file instructions in dcmtk.
plz help
Mahtab

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Did you follow step 4 from the FAQ entry #47?
Select target INSTALL in order to install the DCMTK files to the directory specified using CMake.
And did you specify the correct directory for DCMTK in your main CMakeLists.txt file (see CMake variable "DCMTK_DIR"). This usually makes sure that the DCMTK header files are found.

mahtabrasheed195
Posts: 4
Joined: Fri, 2011-02-18, 17:17
Location: Pakistan
Contact:

#3 Post by mahtabrasheed195 »

Jörg Riesmeier wrote:Did you follow step 4 from the FAQ entry #47?
Select target INSTALL in order to install the DCMTK files to the directory specified using CMake.
And did you specify the correct directory for DCMTK in your main CMakeLists.txt file (see CMake variable "DCMTK_DIR"). This usually makes sure that the DCMTK header files are found.
Brother i tried to follow the step but i did't get the understanding .do i have to make this change during converting the cmake file to project files in cmake?

and what do we mean "install" is it building the project files?i did't get the install option
sorry if i am being fool but actually i am new to cmake and new comer to this field.
Mahtab

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest