QB64 Phoenix Edition
Make windows .exe using Linux version? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: Make windows .exe using Linux version? (/showthread.php?tid=4325)



Make windows .exe using Linux version? - Circlotron - 01-12-2026

I'm wondering if QB64 could be given the option of creating a Windows executable using a Linux version of the program? Or vice versa even. It might be totally impracticable. I have no idea.


RE: Make windows .exe using Linux version? - ahenry3068 - 01-12-2026

This has come up before.    

        Since the Linux version use's whatever installed Linux C Compiler is default (which is not always the same) Implementing cross-compilation is impractical at best !


HOWEVER.    The Windows version of QB64PE can be run under Wine !    You could also install a Windows VM to run it under to create Windows EXE's


RE: Make windows .exe using Linux version? - grymmjack - 01-13-2026

@ahenry3068 great advice.

Also, https://www.winboat.app/ might help.


RE: Make windows .exe using Linux version? - Circlotron - 01-13-2026

Oh yeah, Wine.  Rolleyes
Brain fade is strong with this one...


RE: Make windows .exe using Linux version? - Circlotron - 01-14-2026

Righto then... I was coming back here to report that QB64 doesn't work on Wine 11 RC5, but after looking at bit closer I realised that I had installed the ARM version.  Tongue Oops.

So, ignoring the fact that in looking for a problem you should only change one thing at a time, I updated from Mint Mate 22.2 to 22.3, updated to Wine 11 (yay!) and installed both 64 bit and 32 bit Windows QB64Phoenix.

At a glance, 64 bit opens and looks okay (didn't actually try anything). 32 bit though opens and immediately terminates. Running wine from the terminal provides the following error message. Don't know if it's an issue for here or for the wine forum. 

EDIT -> Now that I've actually *read* the error message and see that it is a missing library and actually done something about it, of course it works. :facepalm:

Code: (Select All)
my_name@satellite:~/.wine/drive_c/Program Files (x86)/qb64pe$ wine qb64pe.exe
008c:fixme:ntoskrnl:KeSetPriorityThread (003598E8 24)
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"Crypkey License" failed to start: 2
0024:err:gdi:CreateDCW no driver found for L":0"
0024:err:wgl:egl_init Failed to load libEGL.so.1: libEGL.so.1: cannot open shared object file: No such file or directory
0024:err:wgl:X11DRV_OpenGLInit Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0024:err:wgl:X11DRV_OpenGLInit OpenGL support is disabled.
my_name@satellite:~/.wine/drive_c/Program Files (x86)/qb64pe$



RE: Make windows .exe using Linux version? - SpriggsySpriggs - 01-15-2026

Yeah, I've never had any issues running QB64 in Wine. It works quite well, from my experience.


RE: Make windows .exe using Linux version? - bplus - 01-15-2026

(01-15-2026, 07:18 PM)SpriggsySpriggs Wrote: Yeah, I've never had any issues running QB64 in Wine. It works quite well, from my experience.

Agreed specially if one is new to Linux and old to QB64 and wants to get up and running.

I tell ya every time Windows does an update I think more and more about Linux! I even broke the ice and have an too old machine dedicated to Linux Mint.


RE: Make windows .exe using Linux version? - ahenry3068 - 01-15-2026

(01-15-2026, 07:29 PM)bplus Wrote:
(01-15-2026, 07:18 PM)SpriggsySpriggs Wrote: Yeah, I've never had any issues running QB64 in Wine. It works quite well, from my experience.

Agreed specially if one is new to Linux and old to QB64 and wants to get up and running.

I tell ya every time Windows does an update I think more and more about Linux! I even broke the ice and have an too old machine dedicated to Linux Mint.
    I made my piece Years ago.   Still have to use Windows at work and I have a WFWG 3.11 machine & Windows XP Machine in my Retro collection.   But my Daily driver at home is Linux Mint.