Page 1 of 3

sQLux Windows (mingw64)

Posted: Mon Apr 12, 2021 1:08 pm
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/

Re: sQLux Windows (mingw64)

Posted: Mon Apr 12, 2021 1:09 pm
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!

Re: sQLux Windows (mingw64)

Posted: Wed Apr 14, 2021 6:31 pm
by XorA
It no longer eats files, I forgot about windows and its bloomin CR/LF mangling in binary files!

Re: sQLux Windows (mingw64)

Posted: Wed Apr 14, 2021 7:18 pm
by mk79
Huh? How so?

Re: sQLux Windows (mingw64)

Posted: Wed Apr 14, 2021 10:06 pm
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!

Re: sQLux Windows (mingw64)

Posted: Wed Apr 14, 2021 10:51 pm
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.

Re: sQLux Windows (mingw64)

Posted: Wed Apr 14, 2021 11:41 pm
by XorA

Re: sQLux Windows (mingw64)

Posted: Thu Apr 15, 2021 2:52 pm
by Derek_Stewart
Hi,

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

Re: sQLux Windows (mingw64)

Posted: Thu Apr 15, 2021 3:19 pm
by XorA
Derek_Stewart wrote: I downloaded the new Windows emulator which ran okay on Linux under Wine...
That's cheered me up :-D

Re: sQLux Windows (mingw64)

Posted: Thu Apr 15, 2021 6:03 pm
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 3124 times