On 2014-02-06 12:08-0000 Arjen Markus wrote:

> Hi Alan,
>
>> -----Original Message-----
>> From: Arjen Markus [mailto:arjen.mar...@deltares.nl]
>>
>> Next step: see if I can build CMake from source.
>>
>
> That presented no problem. So the procedure in epa_build is overlooking 
> something. Perhaps epa_build should simply use
> the bootstrap script? That works fine.

But the bootstrap method if done without the --system-curl option
produces a weak version of cmake that is unsuitable to use with
epa_build, see my discussion of this in cmake/epa_build/README.  And
when the bootstrap method is used with the --system-curl option, it
should fail (see below) for MinGW/MSYS.

Actually my directions in cmake/epa_build/README are not correct.  I
was trying to summarize what I thought should work, rather than my
actual buildtools builds (done quite a while ago) which were done in a
piece-meal way as below without ever attempting to build cmake on
MinGW/MSYS (since the results of that build should fail on that
platform and are ignored on that platform in any case).

While writing those directions I should have reviewed
cmake/epa_build/cmake/CMakeLists.txt. Note that the bootstrap script
is the method that is used, but that demands an external curl library
with the --system-curl option (which is absolutely necessary to
produce a strong cmake that is suitable for use with epa_build.) So
that bootstrap script method works on Linux (since curl is installed)
but should error out on MinGW/MSYS because curl is unavailable on that
platform.

Apparently, you only sent me bits and pieces of what build_cmake.out
(see below) should have contained. So I cannot figure out what went
on.  But that doesn't matter since the cmake build is irrelevant on
MinGW/MSYS.

So just skip running the build_cmake target on MinGW/MSYS.  Instead, build
the following individual targets for the -DBUILD_THE_BUILDTOOLS=ON
case:

build_pkg-config
build_swig
build_iwidgets4.0
build_iwidgets

Those together build all the buildtools you are going to need.  For
example, build_iwidgets4.0 automatically builds its dependencies (Tcl,
Tk, and old versions of Itcl and Itk), before actually building
Iwidgets 4.0.  build_iwidgets is similar, but it uses different (much
more modern) Itcl and Itk builds that PLplot is currently not
completely compatible with (see
http://sourceforge.net/p/plplot/bugs/138/). So for now you won't be
using the results of build_iwidgets, but you should run that target
anyway to make sure it works (like it does for me) and so that
eventually you will be able to investigate bug 138.

Let's use the first of the above targets (which is actually the
simplest of the bunch) for a test case.

Please keep track of the results in the recommended way, e.g.,

${BUILD_COMMAND} build_pkg-config >& build_pkg-config.out

If that does not work (or you run into trouble with any of the other
targets mentioned above, send me the following essential files so I
can debug what is going on:

1. The files you indirectly and directly source from bash to define the
required environment variables.  (i.e., the tailored versions of
cmake/epa_build/setup/setup_mingw_msys_wine_toolchain and
cmake/epa_build/setup/setup_msys_makefiles that you have created in
accordance with the README directions).

2. cmake.out (created when you follow the exact README directions for
the -DBUILD_THE_BUILDTOOLS=ON case).

3. CMakeCache.txt

4. build_pkg-config.out (or the corresponding file from the particular
above target that did not work).

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
__________________________

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&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