On 2013-12-09 14:09-0000 Arjen Markus wrote:

> make is happier with this [MSYS_PLATFORM OFF for cygwin] change, but there is 
> still something wrong:
>
> checking for library containing deflateSetHeader... -lz
> checking for ranlib... ranlib
> checking if 64bit support is requested... yes
> checking if 64bit Sparc VIS support is requested... no
> checking if compiler supports visibility "hidden"... yes
> checking if rpath support is requested... yes
> checking system version... CYGWIN_NT-6.1-1.7.27(0.271/5/3)
> checking for dlopen in -ldl... yes
> checking for ar... ar
> checking for Cygwin version of gcc... yes
> configure: error: Please configure and make the ../win directory first.
> tcl/CMakeFiles/build_tcl.dir/build.make:110: recipe for target 
> 'epa_build/Stamp/build_tcl/build_tcl-configure' failed
> make[3]: *** [epa_build/Stamp/build_tcl/build_tcl-configure] Error 1
> CMakeFiles/Makefile2:373: recipe for target 
> 'tcl/CMakeFiles/build_tcl.dir/all' failed
> make[2]: *** [tcl/CMakeFiles/build_tcl.dir/all] Error 2
> CMakeFiles/Makefile2:385: recipe for target 
> 'tcl/CMakeFiles/build_tcl.dir/rule' failed
> make[1]: *** [tcl/CMakeFiles/build_tcl.dir/rule] Error 2
> Makefile:187: recipe for target 'build_tcl' failed
> make: *** [build_tcl] Error 2
>
> This may be due to an ambiguity - Cygwin being somewhere between Linux and 
> Windows.
> I have no idea how to build Tcl on Cygwin though - I have sofar used the 
> prebuilt version. My first guess
> would be that it is built as under UNIX/Linux, given all the available tools.

That was my guess as well, but it appears from the results above that
the autotools-based build system for Tcl independently detects the Cygwin
platform and demands you use the win subdirectory in that case.

Therefore here is my guess for what might work:

Current logic in tcl/CMakeLists.txt

if(MSYS_PLATFORM)
   set(source_PATH ${source_PATH}\unix)
else(MSYS_PLATFORM)
   set(source_PATH ${source_PATH}/unix)
endif(MSYS_PLATFORM)

==>

if(MSYS_PLATFORM)
   set(source_PATH ${source_PATH}\\win)
elseif(CYGWIN)
   set(source_PATH ${source_PATH}/win)
else
   set(source_PATH ${source_PATH}/unix)
endif(MSYS_PLATFORM)

That first change to \\win is irrelevant to you since MSYS_PLATFORM is
OFF, but nevertheless that is my guess for what might work in the
MinGW/MSYS case.

Of course, for both the MinGW/MSYS and Cygwin platforms we are both
guessing here because we are both unfamiliar with the autotools build
for Tcl on either of those platforms, but the above change is worth a
try.

If the above guess doesn't work on Cygwin, then I suggest you put this aside 
for the time
being and test other components of the -DBUILD_THE_BUILDTOOLS=ON
case to see what works and what doesn't on Cygwin.

Then move on to the (default) -DBUILD_THE_BUILDTOOLS=OFF case for
epa_build which assuming you have set up your setup/setup_cygwin file
correctly (see setup/setup_linux for a template of how to set up that
file) will use the -DBUILD_THE_BUILDTOOLS=ON results when they are
available but otherwise use the system versions (e.g. for Tcl and Tk).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to