Questions for - Run in Windows, Run in Linux

Can I assume that if an app compiles for Linux without error that it will indeed run on a Linux box?
Also, how do you get the files from a Windows machine to a Linux box and where do they get installed?
Thank you for help with these questions.

  1. Target Linux machine needs correct libraries installed:
    Linux Library requirements

  2. Move files to Linux machine, many possibilities: SSH - SCP, FTP

1 Like

Nope, there’s a whole category of problems called “Runtime Errors” :slight_smile:

As mentioned by brian, Web, USB drive, SSH - your favorite way to transfer files will do. The usual install places are /opt/, /usr/bin/, and /usr/local/bin/. It’s mostly up to the user though.

2 Likes

Thank you Tim and Brian.
I guess the best way to develop for Linux is on the Linux machine.
I am still trying to drum up the courage and brain cells to go there.

You can open and edit the program on your Windows or Mac machine and use the Remote Debugger to run the code on a Linux machine or VM. Debug information will appear on your Windows or Mac.

  • You run the Remote Debugger on Linux
  • Open Xojo as normal and configure a connection to the remote machine
  • Run on the remote machine and debug as if you where on your normal machine, except that the code is running on your remote Linux machine.
  • Interaction with the app takes place on the Linux machine, debugging on your normal machine.

Obviously once you think things are all working well you need to perform more testing on the Linux machine with the built application.

Even more, Thank you.

@Frank_Bicknell
everything new takes research and practice :grin:

@Tim_Parnell and @Ian_Kennedy have given great suggestions.

I understand and I really appreciate all of the help. Sadly, for me my practice time is declining².

The user interface will often require tweaking. Make sure you click on the Linux tab on the project, turn on “Normalize Control Sizes”, it helps fix some of the issues.

Sadly, even if it runs error-free on Windows, and has folder paths etc adjusted to account for Linux, I have a few complex Windows apps that simply will not run on Linux.
(Screens go gray and controls do not paint properly for example)
It’s very frustrating to me after all these years.
So yes, best run on a Linux box and totally test on a Linux box before considering handing over to anyone else.

Thank you for that, Fortunately for me, I am only writing my own apps for our family use. That does relieve a lot of pressure.