Sorry if this ones been visited before, but I just built my first Windows app in 16r4.1 choosing to include the Windows runtime DLLs. After the build completes, the DLLs are all located next to the EXE file instead of in the Libs filder.
45046 IDE » Miscellaneous The Windows build settings include an option to copy the Windows Universal C runtime redistributable DLLs next to the built Windows exe. When you enable this a warning dialog is shown to explain why Microsoft does not recommend this distribution technique.
One packaging technique I use for a client (they insist on having the libs for their win7 users) is that I put the whole output of Xojo (.exe, libs, rsrc, winruntime) inside a subfolder, and make a relative shortcut to the .exe
This works reasonably well, and the relative shortcut (.lnk) doesn’t have any issues with being stored on my Mac and put in place with a build script.
Now - if we could just get a static compile for Linux builds with a similar “warning” … Lots and Lots of compatibility issues would be resolved without putting the users through the great linux lib scavenger hunt!
There’s only 2 real choices with the Windows C Runtime DLL’s
Neither of which is our doing
You can choose from “next to the exe” or “installed in one of the system locations”
Next to the exe is simple BUT will never get any security updates etc
Properly installed they will and no other software ever needs to install them
But - in much the same way that you go against Microsoft’s guidance and allow us to place the runtime in the “bundle”, you could do the same thing in Linux. You would then CYA by warning the user that creating a static binary may make their app incompatible with the GPL and let US choose whether we give two shakes about that. Plus, if we compile static, the issue of updating libraries is a serious non-issue since our statically compiled library elements can’t as easily be plundered (if at all). Finally, the only real documented restriction is that if a developer provides a statically compiled binary, as long as they also offer a shared compiled version of that app so that Purists can wave their victory flags, we’re ALL covered.
My line on that is if we can do it with GCC on a stock Linux system, the precedent is already set and the EFF has no standing.
As Arthur C Clark penned - TNSTAAFL - and that applies to Linux as well.
Well, one more attempt shot down in trying to make Linux a more acceptible target for Xojo users … to the others I’d spoken with off the forum - I tried.