<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Yes I agree it is "broken #1" and shouldn't be this way, but I assure you, really, your results are 99% there. What isn't working is minor and easy to fix and much is working.<BR>
<BR>
- Jay<BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
Date: Wed, 16 Jan 2008 08:25:49 -0500<BR>From: rcoleburn@scires.com<BR>To: m3devel@elegosoft.com; jayk123@hotmail.com<BR>Subject: Re: [M3devel] my status on win32<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<DIV>Jay:</DIV>
<DIV> </DIV>
<DIV>There is no line in the m3makefile dealing with datefn, so I added the whole statement just before the line </DIV>
<DIV>include("version.quake")</DIV>
<DIV> </DIV>
<DIV>Now, I get an error saying that the variable datefn is not defined.</DIV>
<DIV> </DIV>
<DIV>If you change to put quotes around datefn in the include statement, you get an error saying it can't open the file.</DIV>
<DIV> </DIV>
<DIV>You made a reference in one of your earlier posts about trying 5.1.6 or 4.1, but note that I started with your cm3-min-WIN32-NT386-d5.5.0.zip , not the 5.1.6 or 4.1 versions. Thus, using d5.5.0 as a base, I am trying to run your "upgrade.cmd" to rebuild the sources I checked out from CVS. Since this doesn't work "out-of-the-box", again I say this fits into the "Broken #1" category.</DIV>
<DIV> </DIV>
<DIV>If I can get this to work, I don't mind putting together a Windows installer program that will install the whole thing. That way, folks won't have to install cygwin just to get CVS so that they can install a working cm3. Folks will need to install the free Microsoft Visual C as a prerequisite, but then that's not too bad. Having an installer program would make cm3 more friendly to Windows folks. The current 16-step method is too laborious and error-prone for the person just getting started and they will not give cm3 a second try. </DIV>
<DIV> </DIV>
<DIV>As the cm3 system evolves and new releases are made, we will need to keep the installer program up-to-date and I don't mind doing that. After someone gets familiar with cm3 they might want to delve into some of the scripts for rebuilding the system, but until then, I think the installer program is the way to go.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy<BR><BR>>>> Jay <jayk123@hotmail.com> 1/16/2008 1:01 AM >>><BR>I think I see the problem.<BR> <BR>in cm3\src\m3makefile, make this change<BR> > if not defined("NOW")<BR> include(datefn)<BR> > end<BR> <BR>datefn is only created if certain other variables aren't defined, and do-pkg defines them.<BR>I don't know why I don't see this. Later.<BR><BR>Could be that the Python scripts have a typo and don't define them.<BR>I've been using them more than cmd.<BR> <BR>If the host is NT, "NOW" is either gotten from an updated cm3.exe, or left to "not available".<BR> So the initial cm3 built from older cm3 can't report when it was built, but cm3 built from current cm3 can.<BR> <BR>I need to change that:<BR> 1) to be a function for niceness<BR> 2) to make it that way for Posix, for any host<BR> <BR>but I haven't been using Posix as much lately so not testing it.<BR> <BR> - Jay<BR><BR><BR></DIV>
<BLOCKQUOTE>
<HR id=EC_EC_stopSpelling>
Date: Tue, 15 Jan 2008 23:55:39 -0500<BR>From: rcoleburn@scires.com<BR>To: m3devel@elegosoft.com; jayk123@hotmail.com<BR>Subject: RE: my status on win32<BR><BR>
<DIV>Jay:</DIV>
<DIV> </DIV>
<DIV>In the file version.quake, I made the following edit:</DIV>
<DIV> </DIV>
<DIV>changed line: local datefn = "../" & TARGET & ".datenow"</DIV>
<DIV>to: local datefn = ".." & SL & TARGET & ".datenow"</DIV>
<DIV> </DIV>
<DIV>This change has the effect of putting a backward slash in the pathname instead of a forward slash, so we get<BR>C:\CM3_CVS_SourceTree\m3-sys\cm3\src\..\NT386.datenow</DIV>
<DIV> </DIV>
<DIV>So from that perspective, the change seems good.</DIV>
<DIV> </DIV>
<DIV>Unfortunately, I still get the error that this file can't be opened.</DIV>
<DIV> </DIV>
<DIV>A quick check of C:\CM3_CVS_SourceTree\m3-sys\cm3\NT386 shows that the file .datenow does not exist.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy<BR><BR>>>> Jay <jayk123@hotmail.com> 1/15/2008 11:03 PM >>><BR>That's not too bad really.<BR> <BR> 1) I'd recommend putting cm3 at the start of the path instead of the end. <BR> 2) Just comment out the offending code to make progress. It's not critical. <BR><BR> >> C:\CM3_CVS_SourceTree\m3-sys\cm3\src\../NT386.datenow<BR> <BR>The code is:<BR> C:\CM3_CVS_SourceTree\m3-sys\cm3\src\version.quake or such, included by cm3\src\m3makefile.<BR> <BR>Does the file exist?<BR>Does version.quake use "/" or "SL"? If it uses "/", try replacing with SL (and ampersand for string concat).<BR> <BR>Could be that a newer binary distributions works better with forward slashes.<BR> <BR> > 4. <BR> > 5. <BR></DIV>
<DIV> > 6. Launch cygwin from desktop icon. </DIV>
<DIV> </DIV>
<DIV>Cygwin is only needed for cvs, I think you realize.</DIV>
<DIV> </DIV>
<DIV>Could you send me offline the result of just running "set" after running vcvarsall?</DIV>
<DIV>I'd like to adapt pylib.py to it maybe.</DIV>
<DIV> </DIV>
<DIV>(I can start from 5.1.6 and will try 4.1 at some point.)</DIV>
<DIV> </DIV> - Jay<BR><BR>
<BLOCKQUOTE>
<HR id=EC_EC_EC_stopSpelling>
Date: Tue, 15 Jan 2008 22:52:59 -0500<BR>From: rcoleburn@scires.com<BR>To: m3devel@elegosoft.com; jayk123@hotmail.com<BR>Subject: my status on win32<BR><BR>
<DIV>Jay et al:</DIV>
<DIV> </DIV>
<DIV>I've listed below the steps I've undertaken to try and build the current sources on Windows XP. </DIV>
<DIV> </DIV>
<DIV>I've also attached a text file showing the output I got when trying to build everything using Jay's upgrade.cmd script.</DIV>
<DIV> </DIV>
<DIV>Unfortunately, I'm getting a build error (see below).</DIV>
<DIV> </DIV>
<DIV>Please advise on how to resolve.</DIV>
<DIV> </DIV>
<DIV>STEPS I TOOK:</DIV>
<DIV>=========</DIV>
<DIV>1. Download Microsoft Visual Studio 2008 Express Edition All-in-One .ISO file and burn to DVD.<BR> <A href="http://www.microsoft.com/express/download/" target=_blank>http://www.microsoft.com/express/download/</A></DIV>
<DIV> </DIV>
<DIV>2. Install Microsoft Visual C++ 2008 Express Edition from DVD.</DIV>
<DIV> </DIV>
<DIV>3. Use "Microsoft Update" service to check for updates / service packs.</DIV>
<DIV> </DIV>
<DIV>4. Download cygwin setup program from <BR> <A href="http://cygwin.com/" target=_blank>http://cygwin.com/</A></DIV>
<DIV> </DIV>
<DIV>5. Ran cygwin setup.exe program to install cygwin for all users. <BR> Under "Devel" category, make certain to select "cvs" for installation.</DIV>
<DIV> </DIV>
<DIV>6. Launch cygwin from desktop icon.</DIV>
<DIV> </DIV>
<DIV>7. In cygwin command shell window, execute following two commands, making sure to give email as password when prompted for login:<BR> cvs -d :pserver:anonymous@modula3.elegosoft.com:/usr/cvs login<BR> cvs -d :pserver:anonymous@modula3.elegosoft.com:/usr/cvs checkout cm3</DIV>
<DIV> </DIV>
<DIV>8. Moved resulting C:\cygwin\home\rcoleburn\cm3 to C:\CM3_CVS_SourceTree<BR> Note that you should replace "rcoleburn" above with your Windows login username.</DIV>
<DIV> </DIV>
<DIV>9. Download cm3-min-WIN32-NT386-d5.5.0.zip and cm3-min-WIN32-NT386-d5.5.0-symbols.zip from <BR> <A href="http://modula3.elegosoft.com/cm3/download.html" target=_blank>http://modula3.elegosoft.com/cm3/download.html</A></DIV>
<DIV> </DIV>
<DIV>10. Unzipped cm3-min-WIN32-NT386-d5.5.0.zip and stored resulting cm3 folder at C:\cm3</DIV>
<DIV> </DIV>
<DIV>11. Unzipped cm3-min-WIN32-NT386-d5.5.0-symbols.zip and stored resulting symbols folder at C:\cm3\symbols</DIV>
<DIV> </DIV>
<DIV>12. Launch Windows Command Prompt shell. The following steps represent commands executed within this shell.</DIV>
<DIV> </DIV>
<DIV>13. path %path%;c:\cm3\bin</DIV>
<DIV> </DIV>
<DIV>14. "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"</DIV>
<DIV> </DIV>
<DIV>15. cd C:\CM3_CVS_SourceTree\scripts\win</DIV>
<DIV> </DIV>
<DIV>16. upgrade.cmd</DIV>
<DIV> </DIV>
<DIV>ERROR I'M GETTING:</DIV>
<DIV>=============</DIV>
<DIV> </DIV>
<DIV>=== package C:\CM3_CVS_SourceTree\m3-sys\cm3 ===<BR>+++ "cm3 -build -DROOT=C:\\CM3_CVS_SourceTree -DCM3_VERSION_TEXT=d5.5.1 -DCM3_V<BR>ERSION_NUMBER=050501 -DCM3_LAST_CHANGED=2007-12-30 && cm3 -ship -DROOT=C:\\CM3_C<BR>VS_SourceTree -DCM3_VERSION_TEXT=d5.5.1 -DCM3_VERSION_NUMBER=050501 -DCM3_LAST_C<BR>HANGED=2007-12-30" +++<BR>--- building in NT386 ---
<DIV> </DIV>
<DIV>ignoring ..\src\m3overrides</DIV>
<DIV> </DIV>
<DIV>"C:\CM3_CVS_SourceTree\m3-sys\cm3\src\version.quake", line 136: quake runtime er<BR>ror: unable to open "C:\CM3_CVS_SourceTree\m3-sys\cm3\src\../NT386.datenow" for<BR>reading</DIV>
<DIV> </DIV>
<DIV>--procedure-- -line- -file---<BR>include -- <builtin><BR>version_impl 136 C:\CM3_CVS_SourceTree\m3-sys\cm3\src\version.quake<BR>include_dir 20 C:\CM3_CVS_SourceTree\m3-sys\cm3\src\m3makefile<BR> 8 C:\CM3_CVS_SourceTree\m3-sys\cm3\NT386\m3make.args</DIV>
<DIV> </DIV>
<DIV>Fatal Error: package build failed<BR>ERROR: "cm3 -build -DROOT=C:\\CM3_CVS_SourceTree -DCM3_VERSION_TEXT=d5.5.1 -DCM<BR>3_VERSION_NUMBER=050501 -DCM3_LAST_CHANGED=2007-12-30 && cm3 -ship -DROOT=C:\\CM<BR>3_CVS_SourceTree -DCM3_VERSION_TEXT=d5.5.1 -DCM3_VERSION_NUMBER=050501 -DCM3_LAS<BR>T_CHANGED=2007-12-30"<BR>ERROR: cd C:\CM3_CVS_SourceTree\m3-sys\cm3<BR>ERROR: set INSTALLROOT=c:\cm3</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy</DIV></DIV>
<DIV> </DIV>
<DIV> </DIV></BLOCKQUOTE><BR>
<HR>
Share life as it happens with the new Windows Live. <A href="http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008" target=_blank>Start sharing!</A> </BLOCKQUOTE><BR>
<HR>
Put your friends on the big screen with Windows Vista® + Windows LiveT. <A href="http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_012008" target=_blank>Start now!</A> </BLOCKQUOTE><br /><hr />Watch “Cause Effect,” a show about real people making a real difference. <a href='http://im.live.com/Messenger/IM/MTV/?source=text_watchcause' target='_new'>Learn more</a></body>
</html>