[Dcmlib] dummy project

olivier.stern at swing.be olivier.stern at swing.be
Wed Jul 27 10:51:06 CEST 2005


Hi,

I don't have any white space in my installation path... and GDCM_USE_FILE contains nothing.

Here is in detail what I've made on my computer since I've installed linux mandriva 10.2:

- Download cmake 2.2.0 tarball
- Uncompress it in /home/olivier (I then have the directory /home/olivier/cmake-2.2.0)
- Open a terminal, going to /home/olivier/cmake-2.2.0 and use thiese commands:
               $ ./bootstrap
               $ make
               $ make install
- Create a new directory /home/olivier/GDCM
- In a terminal, placed in this directory I do
               $ export CVSROOT=:pserver:anonymous at cvs.creatis.insa-lyon.fr:2402/cvs/public   
               $ cvs login
               ==> anonymous as pass
               $ cvs co gdcm  
               $ cvs co gdcmData  
               $ mkdir gdcmInstall   
               $ mkdir gdcmBin
               $ cd gdcmBin
               $ ccmake ../gdcm
               ==> I don't change anything, just hit a couple of times c then g
               $ make
               $ make install

Then, I create the directory /home/olivier/Projets/Tmp/dummy/ where I copy the 2 files dummy.cxx and CMakeLists.txt. I create another directory /home/olivier/Projets/Tmp/dymmy-gcc/ and in a terminal placed there I do: ccmake ../dummy, I point GDCM_DIR to /home/olivier/GDCM/gdcm/ and configure. cmake indicates me taht the file GDCMConfig.cmake is not present in /home/olivier/GDCM/gdcm and the reason is that the file is called GDCMConfig.cmake.in. I rename it and repeat de ccmake operation where when I confure it writes:

 CMake Error: Error in cmake code at
 /home/olivier/Projets/Tmp/dummy/CMakeLists.txt:7:
 INCLUDE called with wrong number of arguments.  Include only takes one file.

(the concerned line is INCLUDE(${GDCM_USE_FILE}))

Hope the details could help you to find the error,

Thanks for all,

           Olivier

----------------------------------------
Hello,

Have you any whitespace in your gdcm instalation path ??? 
I'm really wondering what is the content of your GDCM_USE_FILE here.


Can you empty your /home/olivier/Projets/Tmp/dummy-gcc directory, and add 
a line
like
MESSAGE(STATUS \";value of GDCM_USE_FILE: ${GDCM_USE_FILE}\";)
just before the INCLUDE line

so that your CMakeLists.txt looks like:
#################################
FIND_PACKAGE(GDCM REQUIRED)

# Import all settings
MESSAGE(STATUS \";value of GDCM_USE_FILE: ${GDCM_USE_FILE}\";)
INCLUDE(${GDCM_USE_FILE})

IF(GDCM_FOUND)
   ADD_EXECUTABLE(dummy dummy.cxx)
   TARGET_LINK_LIBRARIES(dummy gdcm)
ENDIF(GDCM_FOUND)
#################################

Then when executing ccmake, you should see something like:
-- Check for working C compiler: gcc -- works
-- Check for working CXX compiler: c++ -- works
-- value of GDCM_USE_FILE: /home/olivier/Projets/gdcm/src/GDCMUse.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/olivier/Projets/Tmp/dummy-gcc


just my two cents.
JM


dcmlib-bounces at creatis.insa-lyon.fr wrote on 26/07/2005 15:28:18:

> Hello,
> 
> I've followed your indication on the dummy project. Here is the 
> error I obtain during the ccmake:
> 
> CMake Error: Error in cmake code at
> /home/olivier/Projets/Tmp/dummy/CMakeLists.txt:4:
> INCLUDE called with wrong number of arguments. Include only takes one 
file.
> 
> and here is the concerned line
> 
> INCLUDE(${GDCM_USE_FILE})
> 
> Thanks for all,
> Olivier_______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050727/16ec20fa/attachment.html>


More information about the Dcmlib mailing list