[Insight-users] Compile problem : configuration problem

Luis Ibanez luis . ibanez at kitware . com
Tue, 14 Oct 2003 11:35:10 -0400


Hi Jianguo,

Something is quite wrong in your configuration.
There should be a Makefile in Insight/Utilities/zlib
regardless of your selection for Examples and/or Testing.

I would suggest you to remove completly your binary
tree and restart the configuration from scratch.

  Create a bin directory, cd into it, and invoke
  "ccmake ITKSource"  where ITKSource is the TOP
  directory of ITK sources.

After quiting ccmake, there must be a Makefile in
binInsight/Utilities/zlib.

Please look carefully if ccmake gives you *any* error
message or warning during the configuration process.
That may indicate the real source of the problem.


Regards,


  Luis


----------------------
Rao Jianguo wrote:
> Hi Luis,
> 
> Thanks for your help.
> 
> The following are answers to your question:
> ===============
> 1) I use cmake 1.8.1 and I use absolute directory
> 2)  and 3)
> to run ccmake for example:
> 
>  ../../../../ccmake/bin/ccmake ../
> 
> 4)
> there is no Makefile in
>    binForInsight/Utilities/zlib
> 
> accturately, there are only two files there:
> DartTestfile.txt
> zlibDllConfig.h
> 
> =================
> 
> I hope this can give your more information to diagnose
> the problem.
> 
> Thanks again,
> 
> Jianguo
> 
> 
> Luis Ibanez wrote:
> 
> 
>>Hi Jianguo,
>>
>>1) What version of CMake did you use ?
>>2) Where did you installed CMake ?
>>3) Is CMake in your path ?
>>
>>Your Makefile in
>>
>>    binForInsight/Utilities/zlib
>>
>>should have a line defining how to
>>produce "cmake.depends" by invoking
>>CMake.
>>
>>something like:
>>
>>cmake.depends: $(CMAKE_MAKEFILE_SOURCE)
>>  echo: "Building dependencies. cmake.depends..."
>>  $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY)
>>                          -H(CMAKE_SOURCE_DIR) -B(CMAKE_BINARY_DIR)
>>
>>It looks like you may have installed CMake
>>incorrectly. A common mistake is to install
>>conflicting CMake versions.
>>
>>Please check the path to your cmake executable
>>using :
>>
>>           "which cmake"
>>
>>Regards,
>>
>>  Luis
>>
>>-----------------------
>>Rao Jianguo wrote:
>>
>>>Hello all,
>>>
>>>I try to comile itk  on sparc-sun-solaris and got the following
>>>problems:
>>>( I checked out the new version using cvs after checking the Darboard
>>>yesterday ).
>>>
>>>
>>>When turn the Example and Test off,  it comiles fine.
>>>When I turn the Example on and compile again,  I got the following
>>>error:
>>>
>>>========
>>>/mydirectory/Insight/binForInsight/Examples/Iterators: building
>>>default_target
>>>Building dependencies. cmake.depends...
>>>`cmake.depends' is up to date.
>>>`cmake.check_depends' is up to date.
>>>`cmake.depends' is up to date.
>>>make: Fatal error: Don't know how to make target `cmake.depends'
>>>Current working directory
>>>/mydirectory/Insight/binForInsight/Utilities/zlib
>>>*** Error code 1
>>>The following command caused the error:
>>>cd /mydirectory/Insight/binForInsight/Utilities/zlib; make
>>>cmake.depends; make  cmake.check_depends; make  -f cmake.check_depends;
>>>make
>>>/mydirectory/Insight/binForInsight/bin/libitkzlib.a
>>>make: Fatal error: Command failed for target
>>>`/mydirectory/Insight/binForInsight/bin/libitkzlib.a'
>>>Current working directory
>>>/mydirectory/Insight/binForInsight/Examples/Iterators
>>>*** Error code 1
>>>========
>>>
>>>I would be very grateful, if some one can help.
>>>
>>>Thanks for your attention,
>>>
>>>Jianguo
>>>
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk . org
>>>http://www . itk . org/mailman/listinfo/insight-users
>>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk . org
>>http://www . itk . org/mailman/listinfo/insight-users
> 
> 
>