sQLux Windows (mingw64)

Discussion and advice about emulating the QL on other machines.
User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

sQLux Windows (mingw64)

Post by XorA »

sQLux has gained Windows support for those that way inclined although still buggy it WILL eat your files (I haven't tracked down the bug yet)
sQLux-windows.png

Code: Select all

Y:\OneDrive\Work\sQLux>sqlux.exe
problem, stat failed : No such file or directory
Using Config: sqlux.ini
 - MountPoint  for device WIN1_ may not be accessible
*** QL Emulator v0.50 ***
release 2018-10-28

using Minerva ROM
Patching Boot Device mdv1 at 0x83ca
Video Driver windows xres 1920 yres 1080

exiting UQLX: Kill_UQLX 0
Basic instructions how to build using mingw32 are in the README.md

Github: https://github.com/SinclairQL/sQLux/


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Windows (mingw64)

Post by XorA »

As part of making this work I cleaned up a lot of incorrect variable types and function definitions so unix version hopefully compiles clean now!


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Windows (mingw64)

Post by XorA »

It no longer eats files, I forgot about windows and its bloomin CR/LF mangling in binary files!


User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: sQLux Windows (mingw64)

Post by mk79 »

Huh? How so?


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Windows (mingw64)

Post by XorA »

mk79 wrote:Huh? How so?
I forgot (because I havent used win32 API for years), that when you open a file you must use O_BINARY to get normal behaviour, otherwise its puts a LF after every CR in the file. Which doesnt do binary files much good!


User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: sQLux Windows (mingw64)

Post by mk79 »

XorA wrote:I forgot (because I havent used win32 API for years), that when you open a file you must use O_BINARY to get normal behaviour, otherwise its puts a LF after every CR in the file. Which doesnt do binary files much good!
Ah, the posix CRT API, I see. Never really used that one, Win32 itself is sane in such regards, fortunately.


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Windows (mingw64)

Post by XorA »



Derek_Stewart
Font of All Knowledge
Posts: 3929
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: sQLux Windows (mingw64)

Post by Derek_Stewart »

Hi,

I downloaded the new Windows emulator which ran okay on Linux under Wine...


Regards,

Derek
User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Windows (mingw64)

Post by XorA »

Derek_Stewart wrote: I downloaded the new Windows emulator which ran okay on Linux under Wine...
That's cheered me up :-D


User avatar
XorA
Site Admin
Posts: 1358
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: sQLux Windows (mingw64)

Post by XorA »

And networking coming to a sQLux near you soon!

Works enough now that QLirc is usable. Can't promise any of the more complex cases though as mapping BSD sockets -> WinSock2 is kind of rough.
sQLux-qlirc.png
sQLux-qlirc.png (10.39 KiB) Viewed 2243 times


Post Reply