Error running cross-compiled Windows app in VMWare Fusion lazarus / 21-General ---------------------------------------------------------------------- carl_caulkett · 2024-10-10 22:45 * Mac Mini M1 * macOS 14.6.1 * Lazarus 3.99 * FPC 3.3.1 * VMWare Fusion Pro * Windows 11 Pro I have installed VMWare Fusion Pro on my Mac Mini M1, and created a Windows 11 Pro virtual machine on it. I'm hoping to use this to test the cross-platform aspects of my main project. I first created a simple test console app, but it seemed to be giving run-time errors related to the WriteLn commands. I then create a moderately simple app which is displayed, in all its glory below... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program helloworld;begin  WriteLn('Hello world!');end.  It is being compiled using the options shown in the attached images 1 and 2. When I try to run the app in the Windows 11 Pro VM, I get this error message, image 3... Is this a problem with FPC or (more likely), something I'm doing wrong? ---------------------------------------------------------------------- TRon · 2024-10-10 22:55 Doesn't look very much like a win32 GUI application, or is it ? (e.g. remove the -WG option from your project options) PS: In case you run into more of these kind of things, remember that windows does things differently then you are probably used to. See also apptype ---------------------------------------------------------------------- carl_caulkett · 2024-10-10 23:37 Quote from: TRon on October 11, 2024, 12:55:14 amDoesn't look very much like a win32 GUI application, or is it ? (e.g. remove the -WG option from your project options) PS: In case you run into more of these kind of things, remember that windows does things differently then you are probably used to. See also apptype No, you're right, it doesn't 😉  I'm stuck doing a `fpcupdeluxe` install of 3.3.1+3.99 on my Windows VM, so I cannot copy the new executable over yet - I'm having to use a USB drive for transferring from one OS to the other, and. I cannot have both Windows active at the same time as macOS 😮 I was solidly a Windows man until 2016, when I discovered Macs. How I put up with such an abomination of an OS, I'll never know 😉 ---------------------------------------------------------------------- carl_caulkett · 2024-10-10 23:45 Quote from: TRon on October 11, 2024, 12:55:14 amDoesn't look very much like a win32 GUI application, or is it ? (e.g. remove the -WG option from your project options) You, sir, are a genius 🙏🏽 ---------------------------------------------------------------------- TRon · 2024-10-10 23:53 Quote from: carl_caulkett on October 11, 2024, 01:37:52 amI'm having to use a USB drive for transferring from one OS to the other, and. I cannot have both Windows active at the same time as macOS 😮 huh ? Pardon me but isn't the whole point of using vmware that you can 'use' both OS' at the same time (well you would have to switch between them if wanting to use the GUI). You should be able to access the host by setting up shared folders, see also this SU post (sorry could not find it in the manual at short notice here in the VMware fusion 13 manual). If all else fails, and in case networking does work, you could opt for running a small ftp server on the windows VM and use the host to 'upload' your exe (or use sshfs/smb). ---------------------------------------------------------------------- carl_caulkett · 2024-10-11 08:43 Quote from: TRon on October 11, 2024, 01:53:11 amPardon me but isn't the whole point of using vmware that you can 'use' both OS' at the same time (well you would have to switch between them if wanting to use the GUI). You should be able to access the host by setting up shared folders, see also this SU post (sorry could not find it in the manual at short notice here in the VMware fusion 13 manual). Apparently Shared Folders are not supported on ARM machines... ---------------------------------------------------------------------- TRon · 2024-10-11 09:01 Quote from: carl_caulkett on October 11, 2024, 10:43:26 amApparently Shared Folders are not supported on ARM machines... :facepalm: Then afaik the only other option is to use networking as mentioned earlier. I personally prefer ssh and sshfs because it is adhoc and easy to setup, though I am afraid to suggest anything now because I am not familiar with windows on arm. I would guess to be prepared to have to compile a lot of things manually.