We planned to upgrade GitLab and Mattermost to the latest version this Friday morning. Expect some downtime!

Commit ba88df68 authored by Mart Lubbers's avatar Mart Lubbers

notes about windows

parent 202a0ff3
Pipeline #14911 passed with stage
in 1 minute and 36 seconds
...@@ -3,6 +3,7 @@ CLEAN_HOME?=/opt/clean ...@@ -3,6 +3,7 @@ CLEAN_HOME?=/opt/clean
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
DETECTED_OS?=Windows DETECTED_OS?=Windows
LIBFOLDER?=Libraries LIBFOLDER?=Libraries
CC=gcc
else else
DETECTED_OS?=POSIX DETECTED_OS?=POSIX
LIBFOLDER?=lib LIBFOLDER?=lib
...@@ -23,8 +24,8 @@ Monitor.prj: ...@@ -23,8 +24,8 @@ Monitor.prj:
install: Clean\ System\ Files/ctty.o $(LIBFILE) install: Clean\ System\ Files/ctty.o $(LIBFILE)
mkdir $(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial mkdir $(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial
cp -R TTY.[id]cl iTasksTTY.[id]cl $(DETECTED_OS)/Platform.[id]cl "Clean System Files" $(CLEAN_HOME)/lib/CleanSerial cp -R TTY.[id]cl iTasksTTY.[id]cl $(DETECTED_OS)/Platform.[id]cl "Clean System Files" $(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial
cp -f $(DETECTED_OS)/CleanSerial_library "$(CLEAN_HOME)/lib/CleanSerial" cp -f $(DETECTED_OS)/CleanSerial_library "$(CLEAN_HOME)/$(LIBFOLDER)/CleanSerial"
clean: clean:
$(RM) -r $(DETECTED_OS)/Clean\ System\ Files/* Clean\ System\ Files/* test $(RM) -r $(DETECTED_OS)/Clean\ System\ Files/* Clean\ System\ Files/* test
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
Serial port library for [clean](http://clean.cs.ru.nl). Build with `make`. Serial port library for [clean](http://clean.cs.ru.nl). Build with `make`.
Linux and mac are fully supported. Windows support is only available at the
moment as a stub. The functions are not implemented so it will crash.
## How to use ## How to use
TODO TODO
...@@ -15,10 +18,8 @@ IDE/`cpm` or `clm`. ...@@ -15,10 +18,8 @@ IDE/`cpm` or `clm`.
Run `make install`. Run `make install`.
### Windows ### Windows
Run `make install` from a mingw msys shell. Not sure, if I compile the object file with mingw it doesn't work. Cross
compiling works...
Windows support is only available at the moment as a stub.
The functions are not implemented so it will crash.
### Build the windows version on a linux machine ### Build the windows version on another OS
Install `gcc-mingw-w64` and run `DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make` Install `gcc-mingw-w64` and run `DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make`
...@@ -15,6 +15,7 @@ rm -rf "./Clean System Files/*" ...@@ -15,6 +15,7 @@ rm -rf "./Clean System Files/*"
DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make -B 'Clean System Files/ctty.o' DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial mv 'Clean System Files' CleanSerial
cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial
cp Windows/CleanSerial_library CleanSerial/Clean\ System\ Files
zip -rv CleanSerial-win64.zip CleanSerial zip -rv CleanSerial-win64.zip CleanSerial
rm -r CleanSerial rm -r CleanSerial
...@@ -24,5 +25,6 @@ rm -rf "./Clean System Files/*" ...@@ -24,5 +25,6 @@ rm -rf "./Clean System Files/*"
DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc-win32 make -B 'Clean System Files/ctty.o' DETECTED_OS=Windows CC=x86_64-w64-mingw32-gcc-win32 make -B 'Clean System Files/ctty.o'
mv 'Clean System Files' CleanSerial mv 'Clean System Files' CleanSerial
cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial cp TTY.[id]cl iTasksTTY.[id]cl Windows/Platform.[id]cl CleanSerial
cp Windows/CleanSerial_library CleanSerial/Clean\ System\ Files
zip -rv CleanSerial-win32.zip CleanSerial zip -rv CleanSerial-win32.zip CleanSerial
rm -r CleanSerial rm -r CleanSerial
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment