Re-compiling DCMTK wirh support for LIBTIFF, LIBPNG

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
yuhong
Posts: 10
Joined: Thu, 2005-04-21, 16:08
Location: Heidelberg, Germany

Re-compiling DCMTK wirh support for LIBTIFF, LIBPNG

#1 Post by yuhong »

Hi, everyone,

I am trying to re-compile DCMTK with support for some external libraries (libtiff, libpng, ...). As mentioned in INSTALL file, I used CMake to generate a new VC project file. In CMake, after I clicked the Configure button, I got this error:

Code: Select all

The C compiler "cl" is not able to compile a simple test program.
It fails with the following output:
-------------Configuration: cmTryCompileExec - Win32 Debug-------------
Compiling ...
Error spawning cl.exe
I am using Windows 2000 SP4, VC++6.0 SP6, and Cmake 2.0.6.

Any idea?

Thanks in advance.

Yuhong
________
NEW MEXICO MEDICAL MARIJUANA DISPENSARY
________
Marijuana test
Last edited by yuhong on Sat, 2011-02-12, 16:03, edited 2 times in total.

yuhong
Posts: 10
Joined: Thu, 2005-04-21, 16:08
Location: Heidelberg, Germany

#2 Post by yuhong »

I've solved this problem. It's not a problem of DCMTK.

Can someone tell me in which file the macro WITH_LIBPNG is defined?
________
Free Drupal Themes
________
Oregon dispensaries
Last edited by yuhong on Sat, 2011-02-12, 16:03, edited 2 times in total.

trev
Posts: 7
Joined: Thu, 2005-09-22, 12:01

VS2005

#3 Post by trev »

Hello,
I'm getting a similar error message. Can you tell me how you fixed this?

I'm using XP, VS2005, Cmake 2.2.3, and DCMTK 3.5.4.

Thanks

yuhong
Posts: 10
Joined: Thu, 2005-04-21, 16:08
Location: Heidelberg, Germany

#4 Post by yuhong »

Hi, trev,

This error means that the VC++ IDE could not find cl.exe on your machine.

First check if cl.exe exists and where it is.

Then start the VC++ IDE:

1) Go to Tools --> Options
2) Click "directories"
3) Under "Show directories for", choose "Executable files"
4) Check if the directory that contains cl.exe is listed in the list of directories
5) If no, just add it in the list

Hope this helps.

Yuhong
________
TOYOTA MOTOR MANUFACTURING ALABAMA
________
Starcraft 2 replay
Last edited by yuhong on Sat, 2011-02-12, 16:03, edited 2 times in total.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1446
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#5 Post by Marco Eichelberg »

On Windows, WITH_LIBPNG etc. are defined in the project files generated by CMake, depending on the compiler for which you are generating the project file. This is not something you would like to touch manually since CMake will overwrite your changes the next time you use it anyway. On Posix platforms, the WITH_LIBPNG etc. options are defined in <dcmtk/config/cfunix.h>.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest