I use wind xp; visual studio 6 and cmake 2.0.6
I have the following warning during the execution of cmake:
(
as early as possible but afer the most recent call to
cmake_minimum_required or cmake_policy(vertion)
this warning appears because terget "dcm2xml" links to some libraries for which the linker must search:
netapi32, wsock32, Zlib_d
and other libraries with known full path:
C:\dcmtk-3.5.4\ofstd\libsrc\Debug\ofstd.lib
C:\dcmtk-3.5.4\ofstd\libsrc\Debug\dcmdata.lib
......
)
and I have the following error at the time of build all
dcistrmz.cxx
..\include\dcmtk/dcmdata/dcistrmz.h(44) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
Generating Code...
Compiling...
dcitem.cxx
dclist.cxx
dcmetinf.cxx
dcobject.cxx
dcostrma.cxx
..\include\dcmtk/dcmdata/dcostrmz.h(44) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
dcostrmb.cxx
dcostrmf.cxx
dcostrmz.cxx
..\include\dcmtk/dcmdata/dcostrmz.h(44) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
dcpcache.cxx
dcpixel.cxx
dcpixseq.cxx
dcpxitem.cxx[/color][/size][/code]
help me please
warning and errors at the time of build all by using vs 6
Moderator: Moderator Team
warning and errors at the time of build all by using vs 6
I have an error during the execution of cmake
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Read the FAQ.
tthe problem persists although I have to carry out the steps indicated in the file install. I downloaded the libreries mentioned in install file: that zlib ,; pngtiff, libxml and openssl; I indicated their site in the path of cmake and I pressed on the button configures then ok: a message warning leaves during l' execution of boutton ok: its contained is the following:
cmake warning(dev) atdcmdata/apps/cmakelists.txt:9(ADD_EXECUTABLE)
policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(set CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). this warning appears because target "dcm2xml3links to some libreries for witch the linker must search:
netapi32,wsoch32,Zlib_d
and other libraries with known full path
C:\Documents and Settings\imen.ISI-DAB2D93991\Bureau\aprendre\dcmtk-3.5.4\ofstd\libsrc\Debug\ofstd.lib
C:\Documents and Settings\imen.ISI-DAB2D939919\Bureau\aprendre\dcmtk-3.5.4\dcmdata\libsrc\Debug\dcmdata.lib
cmake is adding directoris in the second list to thelinker search path in
case they are needed to find librairies from the first list (for backwards compatibility with cmake 2.4)
set policy CMP0003 to old or new to enable or desable this behavior explicity.
it is also necessary to indicate the site of these libreries in different place: for example in environnemt variable : path!!
I have difficulties because I dont have experience in the handling of the makefile
help me please to advance
cmake warning(dev) atdcmdata/apps/cmakelists.txt:9(ADD_EXECUTABLE)
policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(set CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). this warning appears because target "dcm2xml3links to some libreries for witch the linker must search:
netapi32,wsoch32,Zlib_d
and other libraries with known full path
C:\Documents and Settings\imen.ISI-DAB2D93991\Bureau\aprendre\dcmtk-3.5.4\ofstd\libsrc\Debug\ofstd.lib
C:\Documents and Settings\imen.ISI-DAB2D939919\Bureau\aprendre\dcmtk-3.5.4\dcmdata\libsrc\Debug\dcmdata.lib
cmake is adding directoris in the second list to thelinker search path in
case they are needed to find librairies from the first list (for backwards compatibility with cmake 2.4)
set policy CMP0003 to old or new to enable or desable this behavior explicity.
it is also necessary to indicate the site of these libreries in different place: for example in environnemt variable : path!!
I have difficulties because I dont have experience in the handling of the makefile
help me please to advance
I have an error during the execution of cmake
-
- OFFIS DICOM Team
- Posts: 1513
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
If CMake does not know about the netapi32 and wsock32 libraries, then there is a problem with your installations. These are part of the Visual C++ 6 installation. The problems related to zlib (zlib_d and zlib.h) indicate that the directory name/path for zlib, which can be chosen on the CMake GUI before creating the VC project files, is wrong. Also note that you are using a very outdated version of CMake, I would suggest that you upgrade to a newer version (2.4 has been available for some time now).
Who is online
Users browsing this forum: No registered users and 1 guest