On 2006-11-23 12:29+1000 Andrew Roach wrote:

> This is encouraging all the same, and would let people with WIN32
> potentially generate a makefile for DJGPP using cmake for windows, but for
> people with pure-DOS (e.g. FreeDos and no WIN32), the old build system
> would still be required.
>
>
>> However,
>> that is still a useful goal (to provide some competition for MinGW on
>> windows) if you want to pursue this further.  Also, the consensus may be
>> wrong, and you will get a useful DOS result
>
> DJGPP programs are still just DOS programs, even when compiled from
> windows, so in many respects would remain a "poor cousin" of the MingW
> equivalent.

First a clarification.  Many of the custom commands we have embedded in our
CBS use the cmake executable to copy files, make symlinks, etc., in a
cross-platform way _at make time_. This is probably true of all projects of
any complexity that are built with cmake such as cmake itself. Thus, if you
generate a system of Makefiles with cmake on windows (as discussed in your
first paragraph above) those Makefiles will still not work on DOS since the
make command on DOS will attempt to invoke a DOS version of cmake whenever
it executes one of those custom commands.

That leads to the following question: can you build a DOS executable from a
windows environment using the DJGPP compiler in that windows environment?
(Andrew, this is one interpretation of your comment above that "DJGPP
programs are still just DOS programs", but that might not be what you
meant.)

If the answer is yes, then the first issue is to support the DJGPP compiler
properly for cmake under windows following what Arjen did as I just
discussed in my previous off-list e-mail to you. After that issue has been
solved, then use cmake (and nmake?) to build the DOS version of cmake _on
windows using DJGPP_.  To call this by its proper name, you would be using
the CMake/DJGPP/windows build platform to cross-compile cmake for the DOS
platform.

Werner, if you could get a cross-compiled version of CMake to work on DOS, I
think there would be a lot of interest in both the CMake and DJGPP
communities, and it might be an improvement on the current DJGPP build
system for PLplot as well. However, I don't want to over-encourage you since
our current DJGPP build system is certainly adequate.  So I suggest you only
play some more with this if you find CMake on DOS to be a cool and
interesting challenge.

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); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to