---
title: "DCMTK:wwwapp instalation "
author: "qimo601"
date: "2012-10-18T15:55:28Z"
tags: []
categories: ["编程语言"]
slug: "dcmtk-wwwapp-instalation"
draft: false
lastmod: "2012-10-20T13:22:57Z"
id: 1701026
url: "https://qimo601.iteye.com/blog/1701026"
---

## 问题

 

最近按照[wwwapp.txt](http://support.dcmtk.org/docs/file_wwwapp.html)安装worklist中www application server。总有一步看不透。

 

3\. INSTALL FILES  
b) Then copy all executables from dcmtk/dcmwlm/wwwapps to  
the same directory: preplock, readoviw, readwlst and writwlst.

 

我在dcmtk3.6.120120831的源码中dcmtk/dcmwlm/wwwapps并没有发现执行程序preplock, readoviw, readwlst and writwlst，只有.cc源码。所有执行程序只有在C:\\Program Files\\DCMTK\\bin下才有exe，但也没有上述exe程序。

 

## 初步解释（2012-10-19）

 

       我在官方论坛上看到解释：

 

原来www application server 并不属于DCMTK，为了实现模拟医院的RIS系统，DCMTK将www appplication server 引入。当我们将dcmtk3.6.120120831源码编译成功之后，实际在我们编译后的二进制文件中已经有了相关exe，在D:\\DCMTK\\DCMTK-bin\\bin\\Debug  中可以看到上面四个exe以及其他很多exe，但如果我们编译后，选择了install，这些exe将会被部署到C:\\\\program files\\DCMTK\\bin下，但是上面四个exe并没部署，因为他们并不属于DCMTK.所以如果想用这四个exe配置worklist webserver，请在编译源码后，及时从D:\\\\DCMTK-bin\\Debug\\  拷贝出来。

官方链接：[http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt)

 

 

Author Message []()**meandog**

 **Post subject:** wwwapp instalation

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2410#p2410)**Posted:** Thu, 2006-03-16, 19:28 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline")

**Joined:** Tue, 2004-12-07, 00:13  
**Posts:** 6

OS: FreeBSD 5.4  
wwwapp.txt, INSTALLATION part, 3-rd paragraph "INSTALL FILES":

*b) Then copy all executables from dcmtk/dcmwlm/wwwapps to the same directory: preplock, readoviw, readwlst and writwlst.*

I made compilation and installation with all available modules, but I can't find these executables required for proper wwwapp operation. Do I need to compile them separately, if so how to do this? Maybe I need to add some configuration directives somewhere to compile these apps along with dcmtk?

Thanks in advance

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2410)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=51)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2410)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**Michael Onken**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2417#p2417)**Posted:** Fri, 2006-03-17, 10:30 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline") OFFIS DICOM Team ![OFFIS DICOM Team](http://forum.dcmtk.org/images/ranks/offislogo.gif "OFFIS DICOM Team")

**Joined:** Fri, 2004-11-05, 14:47  
**Posts:** 1154  
**Location:** Oldenburg, Germany

Hm, I just tried under linux with 3.5.4 and they get built without additional configuration. Did all other files compile? (apps and src directories)?

Regards,  
Michael

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2417)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=7)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2417)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**meandog**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2424#p2424)**Posted:** Fri, 2006-03-17, 13:10 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline")

**Joined:** Tue, 2004-12-07, 00:13  
**Posts:** 6

**Quote:**

Did all other files compile? (apps and src directories)?

Well, here is the list of available executables in "bin" directory after compilation and installation:

dcm2pnm dcmgpdir dcmpsmk dcod2lum storescp  
dcm2xml dcmj2pnm dcmpsprt dconvlum storescu  
dcmcjpeg dcmmkcrv dcmpsrcv dsr2html termscu  
dcmconv dcmmkdir dcmpssnd dsr2xml wlmscpfs  
dcmcrle dcmmklut dcmqridx dsrdump xml2dcm  
dcmdjpeg dcmodify dcmqrscp dump2dcm xml2dsr  
dcmdrle dcmp2pgm dcmqrti echoscu  
dcmdspfn dcmprscp dcmquant findscu  
dcmdump dcmprscu dcmscale movescu  
dcmftest dcmpschk dcmsign pdf2dcm

But where are preplock, readoviw, readwlst and writwlst? As from wwwapp.txt I thought these executables would be compiled and stored in dcmtk source directory wwwapps, but all I can find there are source files (\*.cc).  
I didn't mention that I configured dcmtk with command:  
./configure --prefix="/med"  
So my installation is not in default place on the system, maybe that's the problem?

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2424)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=51)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2424)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**meandog**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2439#p2439)**Posted:** Sat, 2006-03-18, 17:40 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline")

**Joined:** Tue, 2004-12-07, 00:13  
**Posts:** 6

finally I found the answer: executables mentioned above had been compiled succefully, but when I finalized installation with "make distclean" command these executables were deleted. Sorry for bothering you ![:oops:](http://forum.dcmtk.org/images/smilies/icon_redface.gif "Embarassed")

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2439)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=51)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2439)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**Michael Onken**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2441#p2441)**Posted:** Mon, 2006-03-20, 10:17 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline") OFFIS DICOM Team ![OFFIS DICOM Team](http://forum.dcmtk.org/images/ranks/offislogo.gif "OFFIS DICOM Team")

**Joined:** Fri, 2004-11-05, 14:47  
**Posts:** 1154  
**Location:** Oldenburg, Germany

You're welcome ![:wink:](http://forum.dcmtk.org/images/smilies/icon_wink.gif "Wink")

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2441)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=7)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2441)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**catchesides**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2528#p2528)**Posted:** Tue, 2006-03-28, 17:51 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline")

**Joined:** Tue, 2006-03-28, 17:48  
**Posts:** 2

I have a similar probem with Mac OS 10.4.5 and DCMTK 3.5.4 - preplock, readoviw, readwlst and writwlst don't appear in the target directory after running "make install".

However, unlike meandog's experience, these executables are missing even before I run "make distclean".

Does anyone have any idea what might be going wrong here?

Thanks in advance,  
Tom

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2528)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=553)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2528)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**Marco Eichelberg**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2529#p2529)**Posted:** Tue, 2006-03-28, 18:29 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline") OFFIS DICOM Team ![OFFIS DICOM Team](http://forum.dcmtk.org/images/ranks/offislogo.gif "OFFIS DICOM Team")

**Joined:** Tue, 2004-11-02, 18:22  
**Posts:** 1160  
**Location:** Oldenburg, Germany

The worklist server web form support tools (preplock, readoviw, readwlst and writwlst) are not installed by "make install" because they don't belong into the end user's path where make install should install files to. You have to install them manually following the instructions in dcmwlm/docs/wwwapp.txt, the same also applies to the Perl scripts in dcmwlm/perl. However, the tools should be compiled when you run "make". Check if the compiler has produced any output in dcmwlm/wwwapps.

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2529)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=6)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2529)  

![](http://forum.dcmtk.org/images/spacer.gif)

[]()**catchesides**

 **Post subject:**

[![Post](http://forum.dcmtk.org/styles/subsilver2/imageset/icon_post_target.gif "Post")](http://forum.dcmtk.org/viewtopic.php?p=2531#p2531)**Posted:** Wed, 2006-03-29, 10:38 

![Offline](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_offline.gif "Offline")

**Joined:** Tue, 2006-03-28, 17:48  
**Posts:** 2

Marco,

Thanks for the prompt reply - I had misunderstood meandog's post.

As you say, the executables are indeed in the /dcmwlm/wwwapps/ directory before you run "make distclean".

Many thanks,  
Tom

[![Report this post](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_report.gif "Report this post")](http://forum.dcmtk.org/report.php?f=1&p=2531)

[**Top**](http://forum.dcmtk.org/viewtopic.php?f=1&t=723&hilit=wwwapp.txt#wrapheader)

 [![Profile](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_user_profile.gif "Profile")](http://forum.dcmtk.org/memberlist.php?mode=viewprofile&u=553)  

[![Reply with quote](http://forum.dcmtk.org/styles/subsilver2/imageset/en/icon_post_quote.gif "Reply with quote")](http://forum.dcmtk.org/posting.php?mode=quote&f=1&p=2531)  

![](http://forum.dcmtk.org/images/spacer.gif)

Display posts from previous: All posts 1 day 7 days 2 weeks 1 month 3 months 6 months 1 year Sort by Author Post time Subject Ascending Descending 

 

## 最终解释（2012-10-20）

**但是我在win7上编译只能出现三个exe，就是没有preplock.exe.后来官方DCMTK开发人员给我回复了邮件说：**

**这个www application 是1996年在linux上开发展示用的，本来就没打算能在windows上运行，而且只是一个小例子，已经过时了。**

 

 邮件原文写道

Dear qimo,

&gt; I've followed all instructions in the wwwapp.txt file &lt;http://support.dcmtk.org/docs/file\_wwwapp.html&gt;.I'm trying to create a www server  
&gt; application to create , modify anddelete worklist entries using a Web browser ,but there isn't no management interface.  
&gt; Also I have compiled DCMTK3.6.120120831 on win7. But I can only find readoviw.exe, readwlst.exe and writwlst.exe, but no preplock.exe in  
&gt; bin\\debug directory.just like the forum topic &lt;http://forum.dcmtk.org/viewtopic.php?f=1&t=723&gt; .

first of all, all questions related to DCMTK should be posted to the discussion forum  
at http://forum.dcmtk.org/ so that other people can benefit from the answers given there.  
If you send us a mail with your designed user name, we can create login/password for you.

Concerning your specific question, the Web Server user interface has never been developed  
for Windows, and we have never tried to run it on Windows. This was intended for a  
demonstration at an exhibition in 1996 (more than 15 years ago!) and seen very little  
maintenance ever after. At that time even Apache as a webserver did not yet exist.

The underlying principle is that the web server generates the user interface by running  
the Perl scripts from dcmwlm/perl and the binaries from dcmwlm/wwwapps through the  
CGI interface.

The problem with running this on Windows is that the API for locking files (which is  
used to prevent the DICOM worklist server from accessing worklist entries while the  
web server is modifying them) does not work on Windows, which is the reason why the  
preplock tool cannot be compiled there.

Summary: It's outdated software, not intended for anything except a demo anyway,  
and it does not run on Windows.

Best regards,  
Dr. Marco Eichelberg

--   
Dr. Marco Eichelberg  
Gruppenleiter Integrationstechnik | Manager Integration Technology Group