[M3devel] EXT: Fw: Rel 3.8.6. on XP

Coleburn, Randy rcolebur at SCIRES.COM
Fri Sep 21 05:07:56 CEST 2012


I prepared some CMD files and a set of instructions for setting up cm3 on Windows a long time back.  Not quite sure where those instructions are now, but the scripts are still in the CVS repository.

Once you've installed the minimal distribution on Windows, you can use my scripts to rebuild the entire system from source code.  These scripts also help with setting up your command line environment.

I'll try to explain below...

The scripts I wrote to assist in rebuilding cm3 from source code are in:  scripts\dev\windows

There are some more scripts in:  scripts\install\windows
that first must be put in your "cm3\bin" folder for everything to work.
In particular, cm3CommandShell.CMD, sets up your command shell window to work properly with all the right paths and environment variables.

On my system, I have cm3 stored on my C: drive as follows:
   C:\cm3
   C:\cm3\bin
   C:\cm3\lib
   C:\cm3\pkg
   C:\cm3\doc
   C:\cm3\examples
   C:\cm3\man
   Etc.
   C:\cm3\Sandbox

The Sandbox folder is where I keep a copy of the entire source tree from the CVS repository.

So on my system, you would find the scripts I referenced in:
   C:\cm3\Sandbox\scripts

And you would also have:
   C:\cm3\Sandbox\m3-sys
   C:\cm3\Sandbox\m3-libs
   Etc.

If you "CD to C:\cm3\Sandbox\scripts\dev\windows" and then run "RCC_upgradeCM3 -help", it will give you some basic help on what that script does.  The goal was to provide on Windows 2000/XP the functionality of the "upgrade.sh" script.

So, in summary, you should be able to get a current (up-to-date) working CM3 on Windows by doing the following:

0.  Ensure you have the free Visual C++ Express (or a paid version) installed (see Prerequisite below).
1.  Install the most recent cm3 minimal binary distribution for Windows as per the regular instructions.  
    (Basically, you are just unzipping the files to your hard drive in C:\cm3 )
2.  Grab all the sources from the CVS repository and store them in C:\cm3\Sandbox.
3.  Open a Windows command shell window.
4.  COPY  C:\cm3\Sandbox\scripts\install\windows\*.CMD  C:\cm3\bin
    (Actually, the RCC_upgradeCM3 script will do this for you, but it can't hurt to do it here.)
5.  CD  C:\cm3\Sandbox\scripts\dev\windows
6.  .\RCC_upgradeCM3 -all
    (NOTE:  ".\RCC_upgradeCM3 -min" would build a "minimal" cm3 system, whereas "-all" builds all packages.)

PREREQUISITE:  Your Windows system has to have Microsoft Visual Studio for C/C++ installed so that the C source files can be compiled and so that you have a linker for building programs and libraries.  Depending on which visual studio version you use, you may have to edit C:\cm3\bin\cm3CommandShell.CMD to tell it where to find the VCVarsAll.BAT file.  Look under the section labeled :DEFAULTS.  There are examples for VC98, 2003, VS8.0, VS9.0, VS10.0.

The FREE "express" editions of Visual Studio work fine.  The one I've been using is Microsoft Visual Studio 2010 Express, making sure to install at least the Visual C++ 2010.

Finally, if you don't want to rebuild all the sources and you just want to run the cm3 compiler et al, you should complete steps 0, 1, 3, and 4 above, then from the command prompt:
   C:\cm3\bin\cm3CommandShell.CMD
The above script will set up your command shell window with all the right environment variables and paths.

Optionally, the file:  C:\cm3\Sandbox\scripts\install\windows\cm3CommandPromptHere.reg
can be used to add an entry to your Windows registry that lets you right-mouse-click on a folder in Windows Explorer and choose "cm3 Command Prompt Here" from the pull-down menu.  This action will open up a new command shell window and automatically run the script to set up the environment and paths for you to use cm3.  This is the easiest way and is what I do.

For your reference, the contents of this file are:
   Windows Registry Editor Version 5.00
   [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cm3 Prompt]
   @="cm3 Command Prompt Here"
   [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cm3 Prompt\Command]
   @="Cmd.exe /c \"pushd %L && C:\\cm3\\bin\\cm3CommandShell.CMD\""

Hope this helps a bit.

Olaf, you may want to put this info on the web site for folks new to cm3 on Windows.

Regards,
Randy Coleburn

-----Original Message-----
From: Olaf Wagner [mailto:wagner at elegosoft.com] 
Sent: Thursday, September 20, 2012 6:07 PM
To: m3devel at elegosoft.com
Subject: EXT:[M3devel] Fw: Rel 3.8.6. on XP

Begin forwarded message:

Date: Thu, 20 Sep 2012 15:01:06 +0200
From: Michael Moeller <mmoel at t-online.de>
To: m3-support at elego.de
Subject: Rel 3.8.6. on XP


Dear developer team,

I just tried out release 5.8.6. While the cm3 compiler works fine on SuSE Linux I have difficulties to make it run on XP. Setup was done using cm3-NT386-REL.msi which also set the path environment variable. Calling any of the exe files from a cmd shell simply gives me a 'can't execute' error, though.

Btw, the browser refuses to connect to your 'known problems' pages because it considers them untrusted sites.

Regards,
Michael


--
Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com
               Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
Geschäftsführer: Michael Diers, Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list