At 08:05 PM 22/11/2006 -0800, you wrote: >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_.
Oh, that's a bugger :-(. It all "just worked" for me with MingW, so I never looked under the hood to see how (or why). I thought all the magic was done during the cmake call, then makefile just called the standard gcc programs. I didn't realise the makefile in-turn called cmake. >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. What would happen would be the DOS make would try to call the windows cmake, then botch it because it can only all other DOS programs, rather than trying to call a DOS cmake; unfortunately under windows, does executables and windows executables look, on most levels, identical since they have the same extension. >That leads to the following question: can you build a DOS executable from a >windows environment using the DJGPP compiler in that windows environment? Yes. >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. DJGPP uses the stock gcc make. It is a pity you just can't cross compile from MingW to DJGPP that would make life so easy -Andrew ------------------------------------------------------------------------- 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