how could i build a makefile for ubuntu

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
winstonshi
Posts: 33
Joined: Mon, 2010-07-26, 15:12

how could i build a makefile for ubuntu

#1 Post by winstonshi »

i am a new comer for dcmtk as well as for ubuntu.
i want to use storescu function.
i wonder if someone could show me how to create makefile for it.
i try to compile with the makefile in the package, but it always reported: make: *** No rule to make target `config/Makefile.def'. Stop.
thank you.

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 ever call "./configure" before "make"? And, btw, reading the INSTALL file really helps :-)

winstonshi
Posts: 33
Joined: Mon, 2010-07-26, 15:12

#3 Post by winstonshi »

sorry, but what do you mean by the INSTALL file? could you please give me the full name of the file? thank you.
Jörg Riesmeier wrote:Did you ever call "./configure" before "make"? And, btw, reading the INSTALL file really helps :-)

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

#4 Post by Jörg Riesmeier »

The INSTALL file is a text file with this name in the main directory of the DCMTK source code package - where else?
For the current DCMTK release 3.5.4, the file can also be found in the online documentation..

winstonshi
Posts: 33
Joined: Mon, 2010-07-26, 15:12

#5 Post by winstonshi »

thank you, i found that file
and when i call make install i met following problem
../../config/mkinstalldirs /usr/local/dicom/bin
mkdir -p -- /usr/local/dicom/bin
mkdir: cannot create directory `/usr/local/dicom': Permission denied
make[2]: *** [install-bin] Error 1
make[2]: Leaving directory `/mnt/hgfs/D/dcmtk-3.5.4/dcmdata/apps'
make[1]: *** [apps-install] Error 2
make[1]: Leaving directory `/mnt/hgfs/D/dcmtk-3.5.4/dcmdata'

would you please suggest? thank you.
Jörg Riesmeier wrote:Did you ever call "./configure" before "make"? And, btw, reading the INSTALL file really helps :-)

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

#6 Post by Jörg Riesmeier »

mkdir: cannot create directory `/usr/local/dicom': Permission denied
It should be obvious that you do not have the permission to create the directory "dicom" under "/usr/local". So, either make sure that you have the rights (e.g. with "sudo") or choose another installation prefix (see "./configure --help").

winstonshi
Posts: 33
Joined: Mon, 2010-07-26, 15:12

#7 Post by winstonshi »

thank you, i solve that problem. :)
then how do i implement storescu function?
thank you.
Jörg Riesmeier wrote:
mkdir: cannot create directory `/usr/local/dicom': Permission denied
It should be obvious that you do not have the permission to create the directory "dicom" under "/usr/local". So, either make sure that you have the rights (e.g. with "sudo") or choose another installation prefix (see "./configure --help").

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

#8 Post by Jörg Riesmeier »

There is a ready to use command line tool called "storescu". If you want to implement a Storage SCU based on the DCMTK, you should check the source code at "dcmtk/dcmnet/apps/storescu.cc".

winstonshi
Posts: 33
Joined: Mon, 2010-07-26, 15:12

#9 Post by winstonshi »

i am wondering how to use it, could you please give me an example?
and, how could i merge it to my own application?
thank you.
Jörg Riesmeier wrote:There is a ready to use command line tool called "storescu". If you want to implement a Storage SCU based on the DCMTK, you should check the source code at "dcmtk/dcmnet/apps/storescu.cc".

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest