[M3devel] CM3 on windows

Jay K jay.krell at cornell.edu
Fri Aug 28 06:32:02 CEST 2009


NT386GNU => Do you have an X Windows server?
Compiler -- I meant the C compiler.
 
 
set show:
 set LIB
 set PATH
 set INCLUDE
 
 
and then among the directories in LIB, and your cm3 install\lib, where is kernel32.lib? Where is winspool.lib?
 
Cm3 has its own, but for /almost/ no good reason.
 Older cm3 had its own modified ones for reasons related to the VM-sychronized GC.
 If you were to keep those around, they wouldn't work any longer -- probably fail to link.
 So current cm3 replaces them.
 As well, some much less usual toolsets, such as the Visual C++ 2003 Express or somesuch, which isn't available any longer, only included a C runtime and no kernel32.lib, user32.lib, winspool.lib, etc. So we provide them for such users. Perhaps we should 1) assume a new clean install, no old cm3 .libs 2) not support that one odd toolset -- heck, we can keep the import-libs directory, just remove it from any package set, and any such users can build it themselves.
 
 
Long story short: normally among the directories in %LIB%, you should find kernel32.lib, msvcrt.lib, winspool.lib, user32.lib, gdi32.lib, comctl32.lib, etc.
 
 
Windows 2000, really?
Plan to upgrade to XP or newer any time soon?
 
 
 - Jay


----------------------------------------
> To: jay.krell at cornell.edu
> CC: m3devel at elegosoft.com
> Subject: Re: CM3 on windows
> Date: Thu, 27 Aug 2009 21:27:15 -0700
> From: mika at async.async.caltech.edu
>
> Jay K writes:
>>
>>> Compiling in the CMD window fails>> at a link (can't find winspool.lib)=
>>=3D2C and the binaries have problems
>>
>>=20
>>Where is it getting kernel32.lib?
>> c:\cm3\lib?
>> %LIB%?
>>What is your compiler/linker?
>>What are the "problems"?
>
> I installed Visual C++ Express Edition 8.0.
>
> It appears to use "link.exe" (not the Cygwin one, but a Windows one) as linker.
>
> Compiler... cm3??
>
> The "problems" are mentioned in my email (scroll down a bit... mentor, Juno, ...)
>
> I tried NT386GNU as well, which does let me do text mode applications but crashes
> if I try to open a window. "TrestleComm.Failure"
>
> I have to warn you I am a *complete* novice when it comes to programming in
> Windows...
>
> Mika
>
>>=20
>>=20
>> - Jay
>>
>>
>>
>>----------------------------------------
>>> To: jay.krell at cornell.edu
>>> CC: m3devel at elegosoft.com
>>> Subject: Re: CM3 on windows
>>> Date: Thu=2C 27 Aug 2009 20:40:57 -0700
>>> From: mika at async.async.caltech.edu
>>>
>>> Jay K writes:
>>>>
>>>>I fixed the access on 5.8.2.
>>>>Try that?
>>>>I can poke around..
>>>>=3D20
>>>>As I recall 5.8.1 used VC 8.0 and 5.8.2 used 9.0.
>>>>If that helps.
>>>
>>> Well I can try but I don't think 9.0 works on Win2k...
>>>
>>>>=3D20
>>>> - Jay
>>>>
>>>>
>>>>----------------------------------------
>>>>> To: m3devel at elegosoft.com=3D3B jay.krell at cornell.edu
>>>>> CC: mika at async.caltech.edu
>>>>> Subject: CM3 on windows
>>>>> Date: Thu=3D2C 27 Aug 2009 19:01:44 -0700
>>>>> From: mika at async.async.caltech.edu
>>>>>
>>>>> Hi m3devel=3D2C
>>>>>
>>>>> Not sure if my earlier message today went anywhere. I never saw it on
>>>>> the list.
>>>>>
>>>>> I'd like to try running CM3 on Windows 2000=3D2C so I've downloaded
>>>>>
>>>>> http://www.opencm3.com/uploaded-archives/cm3-std-NT386-d5.8.1.msi
>>>>>
>>>>> (5.8.2 didn't work---no access).
>>>>>
>>>>> Having installed it as well as I can figure=3D2C following the directio=
>>ns a=3D
>>>>t
>>>>>
>>>>> http://www.opencm3.com/installation-windows.html
>>>>>
>>>>> I don't really seem to get all the way. Compiling in the CMD window fai=
>>ls
>>>>> at a link (can't find winspool.lib)=3D2C and the binaries have problems=
>>.
>>>>>
>>>>> Funnily enough=3D2C WebScape seems to work (as well or poorly as anywhe=
>>re e=3D
>>>>lse)=3D2C
>>>>> but mentor and Juno both fail miserably:
>>>>>
>>>>>
>>>>> mika at scruff /cygdrive/c/cm3/bin
>>>>> $ ./mentor
>>>>>
>>>>>
>>>>> ***
>>>>> *** runtime error:
>>>>> *** Attempt to reference an illegal memory location.
>>>>> *** pc =3D3D 0x1061634 =3D3D GetAttributes + 0x179 in ..\src\lego\WIN32=
>>\Scrol=3D
>>>>lerVBTCl
>>>>> ass.m3
>>>>> ***
>>>>>
>>>>> Stack trace:
>>>>> FP PC Procedure
>>>>> --------- --------- -------------------------------
>>>>> 0x30af668 0x6a6e4d SystemError + 0x66 in ..\src\runtime\NT386\RTSignal.=
>>m3
>>>>> 0x30af70c 0x1061634 GetAttributes + 0x179 in ..\src\lego\WIN32\Scroller=
>>VB=3D
>>>>TClas
>>>>> s.m3
>>>>> 0x30af7e4 0x10993d8 AddView + 0x101e(!) in ..\src\lego\ViewportVBT.m3
>>>>> 0x30af830 0x109743e Init + 0x30e in ..\src\lego\ViewportVBT.m3
>>>>> 0x30af950 0x1004ee0 pViewport + 0x512 in ..\src\FormsVBT.m3
>>>>> 0x30af9b0 0xff33df Item + 0x48b in ..\src\FormsVBT.m3
>>>>> 0x30af9dc 0x1010f66 OneChild + 0xf8 in ..\src\FormsVBT.m3
>>>>> 0x30afae4 0xff7448 pShape + 0x19c in ..\src\FormsVBT.m3
>>>>> 0x30afb44 0xff33df Item + 0x48b in ..\src\FormsVBT.m3
>>>>> 0x30afb70 0x1010f66 OneChild + 0xf8 in ..\src\FormsVBT.m3
>>>>> ......... ......... ... more frames ...
>>>>>
>>>>> mika at scruff /cygdrive/c/cm3/bin
>>>>> $ ./Juno
>>>>>
>>>>>
>>>>> ***
>>>>> *** runtime error:
>>>>> *** failed.
>>>>> *** file "..\src\winvbt\WinContext.m3"=3D2C line 165
>>>>> ***
>>>>>
>>>>> Stack trace:
>>>>> FP PC Procedure
>>>>> --------- --------- -------------------------------
>>>>> 0x1b6f854 0xea1e03 PushPixmap + 0x4cb in ..\src\winvbt\WinContext.m3
>>>>> 0x1b6f91c 0xeb10c7 PixmapCom + 0x9ed in ..\src\winvbt\WinPaint.m3
>>>>> 0x1b6fd78 0xeaedaf PaintBatch + 0x25f in ..\src\winvbt\WinPaint.m3
>>>>> 0x1b6fde4 0xea91f3 PaintBatchVBT + 0x13f in ..\src\winvbt\WinTrestle.m3
>>>>> 0x1b6fe2c 0xea7919 WindowProc + 0x763 in ..\src\winvbt\WinTrestle.m3
>>>>> 0x1b6fe4c 0x77e3a454=3D20
>>>>> 0x1b6fed8 0x77e14605=3D20
>>>>> 0x1b6ff30 0x77e15b77=3D20
>>>>> 0x1b6ff88 0x4fb015 RunThread + 0x234 in ..\src\thread\WIN32\ThreadWin32=
>>.m=3D
>>>>3
>>>>> 0x1b6ffb4 0x4fad57 ThreadBase + 0x3a in ..\src\thread\WIN32\ThreadWin32=
>>.m=3D
>>>>3
>>>>> ......... ......... ... more frames ...
>>>>>
>>>>> mika at scruff /cygdrive/c/cm3/bin
>>>>> $
>>>>>
>>>>> This is running from the cygwin shell but it doesn't do anything differ=
>>en=3D
>>>>t
>>>>> from CMD...
>>>>>
>>>>> Should I not expect to be able to get this to work?
>>>>>
>>>>> Mika=3D=


More information about the M3devel mailing list