[Dcmlib] gdcm

olivier.stern at swing.be olivier.stern at swing.be
Fri Jul 22 10:20:15 CEST 2005


Hello,

Here is the point: I have installed cmake 2.2.0 and gdcm correctly this morning (after bug fixed)(gcc3.4.1). I've copied my program on my computer and here is the error I get if the command \"FIND_PACKAGE(GDCM) \" is not written in the cmakelists.txt file (during compilation):

/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:18:22: gdcmFile.h: No such file or directory
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:19:28: gdcmFileHelper.h: No such file or directory
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:20:26: gdcmDocument.h: No such file or directory
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:21:27: gdcmValEntry.h: No such file or directory
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:22:26: gdcmBinEntry.h: No such file or directory
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:23:23: gdcmDebug.h: No such file or directory
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx: In function `int main(int, char**)':
/home/olivier/GDCM/Tfe/Recalage/exGrey2RGB.cxx:340: error: `cerr' is not a member of `std'
...

If I add the command \"FIND_PACKAGE(GDCM) \", here is what I get (during generation of the makefile):

[olivier at Olivier Recalage]$ cmake .
CMake Error: GDCM_DIR is not set.  It must be set to the directory containing GDCMConfig.cmake in order to use GDCM.
-- Configuring done

Could you please help because I m really lost ? I really have no idea how to set GDCM_DIR and why now I have to set it whereas in my precedent installation (with gcc 2.96) I didn't do anything with this variable.

Thx, Olivier

PS: In my cmakelists.txt file, I dont have FIND_PACKAGE(GDCM) but I thought this lines had the same utility:
INCLUDE_DIRECTORIES(
  ${GDCM_SOURCE_DIR}/src/
  ${GDCM_BINARY_DIR}/
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050722/5ffd9d6c/attachment.html>


More information about the Dcmlib mailing list