[Coco] COmpiling CMOC under Windows?

Jason Pittman jason.pittman at live.com
Sat Aug 22 00:38:54 EDT 2020


I know I'm months late to this, but was searching the list for cmoc and thought I'd share the steps I use to install cygwin with lwtools and cmoc on Windows. Here's what I do:

1) Create an empty "C:\Cygwin" directory
2) Download the installer ("setup-x86_64.exe") from cygwin.com and put it in that C:\Cygwin directory
3) Open a command prompt and "cd c:\Cygwin"
4) Run the following command to install Cygwin and packages needed to compile lwtools and cygwin:
      setup-x86_64.exe -q --site http://cygwin.osuosl.org/ --root c:\Cygwin -P bison -P flex -P make -P gcc-c++ -P perl -P wget -P cygport
5) In c:\Cygwin, create a batch file (just an empty text file...name it "cmoc.bat"). Paste the following into it and save it. Run it by typing "cmoc.bat" in command prompt

REM BEGIN cmoc.bat
cd c:\Cygwin\bin
bash --login -c "cd /home; wget http://www.lwtools.ca/releases/lwtools/lwtools-4.17.tar.gz; tar zxvf lwtools-4.17.tar.gz"
bash --login -c "cd /home/lwtools-4.17; make; make install"
bash --login -c "cd /home; wget http://perso.b2b2c.ca/~sarrazip/dev/cmoc-0.1.67.tar.gz; tar zxvf cmoc-0.1.67.tar.gz"
bash --login -c "cd /home/cmoc-0.1.67; ./configure; make; make install
REM END cmoc.bat


*Note: The versions numbers in the batch file will change, but are the current versions as of today. Also, it's worth looking into installing a copy of linux using Windows Subsystem for Linux and installing lwtools and cmoc in it. It basically works the same, but (for me) is orders of magnitude faster than Cygwin.

Jason Pittman


From: Coco <coco-bounces at maltedmedia.com> on behalf of RETRO Innovations <go4retro at go4retro.com>
Sent: Saturday, April 25, 2020 9:49 PM
To: coco at maltedmedia.com <coco at maltedmedia.com>
Subject: Re: [Coco] COmpiling CMOC under Windows? 
 
On 4/25/2020 2:33 PM, Pierre Sarrazin wrote:
> Indeed.
> Could the src/usim-0.91-cmoc/main.cc file have been deleted somehow?
> It comes with the source archive.
$ ls src/usim*
machdep.h  Makefile.am  mc6809.h     misc.h   term.h      usim.h
main.cc    Makefile.in  mc6809in.cc  README   typedefs.h
Makefile   mc6809.cc    misc.cc      term.cc  usim.cc

>
> For what it's worth, 'g++ --version' gives 7.5.0 on my system.
$ g++ --version
g++ (GCC) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>
> Also, 'which g++' should give a path that is inside the Cygwin system.
$ which g++
/usr/bin/g++

>
> I have successfully compiled CMOC under Cygwin in the past.
>
> Does the same problem happen with a previous version of CMOC?
$ make
Making all in src
make[1]: Entering directory `C:/tools/src/cmoc-0.1.64/src'
Making all in support
make[2]: Entering directory `C:/tools/src/cmoc-0.1.64/src/support'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `C:/tools/src/cmoc-0.1.64/src/support'
Making all in usim-0.91-cmoc
make[2]: Entering directory `C:/tools/src/cmoc-0.1.64/src/usim-0.91-cmoc'
g++ -DPACKAGE_NAME=\"cmoc\" -DPACKAGE_TARNAME=\"cmoc\" 
-DPACKAGE_VERSION=\"0.1.64\" -DPACKAGE_STRING=\"cmoc\ 0.1.64\" 
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cmoc\" 
-DVERSION=\"0.1.64\" -I.     -g -O2 -W -Wall -MT main.o -MD -MP -MF 
.deps/main.Tpo -c -o main.o main.cc
g++: fatal error: no input files
compilation terminated.
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `C:/tools/src/cmoc-0.1.64/src/usim-0.91-cmoc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `C:/tools/src/cmoc-0.1.64/src'
make: *** [all-recursive] Error 1

I'm happy to try versions earlier, but don't see a previous versions 
link on the page.

JIm


-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list