How do I compile my Mac app for Windows?

Hi. Finally completed my first real desktop application in Xojo on the Mac!

Now, I need to deploy it on Windows.

Does the Mac application cross-compile? Or do I install the Xojo IDE on a Windows machine and select Build Application from there to generate a Windows executable? (obviously then I will still want to use an installer builder as recommended but first need my executable)

Thanks!

macOS is the only platform who can build for all platformsā€¦

I use it my Mac all the time to build Linux Desktop Apps for x86_64 and Raspberry Piā€¦

If you have Pro on the Mac, you can compile for Windows.

If you only have Xojo Lite on the Mac, you will need to buy/install Xojo Lite for Windows and compile there.

Thatā€™s new to me that a Pro license is neededā€¦but if someone has only a macOS lite license, then adding a Windows lite license is the way to goā€¦much cheaper than the Desktop license, which can crosscompile for all desktop platformsā€¦

I bought the Desktop version, which is supposed to support all three desktop platforms. Guess Iā€™ll reach out to Xojo on this one. I imagine I should have options under ā€œBuild Applicationā€ instead of it just going straight to building the Mac app?

That version should allow you to compile to Windows. Did you check Windows on the Build settings section? Do you get an error?

quite obvious to me
just check the wanted platforms in the project left pane and build and voilĆ  !

Capture dā€™eĢcran 2024-09-10 aĢ€ 21.27.12

2 Likes

In the bottom left corner you can choose which platforms you want to build forā€¦

SO you can check those you wantā€¦and furthermore select what processor types you want to support.

Bildschirmfoto 2024-09-10 um 21.26.29

By default, ā€œThis Computerā€ is selected here, but you can check the specific platforms.

Screenshot 2024-09-10 at 2.27.35 PM

I donā€™t see those setting options anywhere.

Close that dialog and you should see it:
image

OMG!!! Idiot Alert! Me! :rofl:
Canā€™t believe I didnā€™t notice that on the left side of the actual workspace!
image

THANKS ALL! :grinning:

4 Likes

Thatā€™s what I love about this forumā€¦even the simplest questions are answered :slight_smile:

2 Likes

Yeah, my bad.
I meant ā€˜Not Liteā€™