News for hackers. Stuff that matters.
Re:Writing GUI apps for Windows is painful by Shorel on Sunday June 30, 2024 @03:59PM (#40839838)
Isn't the issue with Qt exactly what the GPL intended?

In that case, any Qt fork would force him to also comply with the GPL, and supply the source code of his project.

Re:Writing GUI apps for Windows is painful by deutschepost on Sunday June 30, 2024 @04:02PM (#40839871)
LGPL. Which eliminates his requirement for a single executable. With LGPL you are only allowed to link dynamically.
Re:Writing GUI apps for Windows is painful by jjmarr on Sunday June 30, 2024 @04:18PM (#40840035)
The goal of this is so that end-users can modify or update Qt, the LGPL licensed component.

The LGPL is working as intended.

Re:Writing GUI apps for Windows is painful by deutschepost on Sunday June 30, 2024 @04:51PM (#40840276)
Yes. But the article states that they don’t care about that. They just want a single executable.
Re:Writing GUI apps for Windows is painful by EasyMark on Sunday June 30, 2024 @06:34PM (#40840942)
I never understood the need for a single executable on windows when folders, zip files, and 100% free installers exist if you don’t like zip files. Also nearly all of the gui kits he’s shooting down have ways to build custom components if that’s what you want to do.
Re:Writing GUI apps for Windows is painful by ranger_danger on Sunday June 30, 2024 @08:46PM (#40841643)
No need for an installer when it's just one file you can run anywhere. And folders/zips are way too hard for the average user. Ask me how I know. My partner gave up an entire game platform because it was delivered as a .7z file they could not figure out.
Re:Writing GUI apps for Windows is painful by riffraff on Monday July 01, 2024 @01:25AM (#40842770)
But a .7z requires a custom expander, .zip is natively supported by windows, isn't it?
Re:Writing GUI apps for Windows is painful by Kwpolska on Monday July 01, 2024 @02:09AM (#40843013)
.7z recently got native support.
Re:Writing GUI apps for Windows is painful by josefx on Monday July 01, 2024 @03:07AM (#40843308)
None of these help you if you are dealing with users that move executables for convenient access or think updating the sofware just involves dragging and dropping the new executable into the existing installation folder. Customer support had countless stories like that.
Re:Writing GUI apps for Windows is painful by jimbobthrowawy on Monday July 01, 2024 @08:00PM (#40852162)
Does using something like APE by jart work? It's a single executable that's also a zipfile. (I assume a replaceable .dll inside the archive is LGPL compliant) I know it's a bit of a tangent, but on platforms like macos the "apps" are all directories with the .app extension, and that doesn't seem to cause issues.
Re:Writing GUI apps for Windows is painful by TheCoelacanth on Monday July 01, 2024 @10:09AM (#40845985)
Then pay for a license or make the object files available to users who want to relink the app.
Re:Writing GUI apps for Windows is painful by singpolyma3 on Sunday June 30, 2024 @05:53PM (#40840692)
Not true at all. The LGPL does not specify anything about mode of linking or anything like that.

What the LGPL requires is that the end user be able to take the source code for the LGPL part, modify it, recompile it, and then replace the functionality in your binary provided by that part with their new part.

Obviously with dynamic linking this is almist trivial, the end user replaces the so or DLL and done.

With normal static linking, it's only a bit harder. If you ship alongside your binary a bundle of eg .o files and a script that links them together with a .a for the LGPL part for example, this is also compliant without revealing the source code to your non-lgpl part.

Re:Writing GUI apps for Windows is painful by Wowfunhappy on Monday July 01, 2024 @12:40AM (#40842576)
> If you ship alongside your binary a bundle of eg .o files and a script that links them together with a .a for the LGPL part for example, this is also compliant without revealing the source code to your non-lgpl part.

This is super clever, I love it! Does any software actually do this?

Re:Writing GUI apps for Windows is painful by jcelerier on Monday July 01, 2024 @04:07AM (#40843584)
Yes. For instance some Cisco app on iOS that uses gstreamer (LGPL) does exactly this.
Re:Writing GUI apps for Windows is painful by jimbobthrowawy on Monday July 01, 2024 @07:54PM (#40852123)
Do you mean iOS the iphone operating system, or cisco IOS the router operating system?
Re:Writing GUI apps for Windows is painful by jcelerier on Thursday July 04, 2024 @03:58PM (#40877604)
Re:Writing GUI apps for Windows is painful by bla3 on Monday July 01, 2024 @01:14AM (#40842716)
The linked post does mention that:

> or distribute object files for recompilation

Re:Writing GUI apps for Windows is painful by leni536 on Monday July 01, 2024 @06:45AM (#40844466)
> If you ship alongside your binary a bundle of eg .o files and a script that links them together with a .a for the LGPL part for example, this is also compliant without revealing the source code to your non-lgpl part.

Do you need to ship it alongside or produce it on request or link to where they can fetch it? It's not like you need to ship source code alongside either for GPL binaries.

Re:Writing GUI apps for Windows is painful by alok-g on Monday July 01, 2024 @08:53AM (#40845364)
Cool!

Does this also mean that one could put most of the closed source part into a DLL, make a shell executable that is open source and statically link LGPL code into the latter? This then would allow modifications to the LGPL code to be put in just by having the closed source DLL.

Re:Writing GUI apps for Windows is painful by singpolyma3 on Monday July 01, 2024 @08:31PM (#40852373)
I don't see why not. So long as the LGPL part can be modified and replaced, you're good.

I am not a lawyer.

Re:Writing GUI apps for Windows is painful by saagarjha on Monday July 01, 2024 @08:54PM (#40852526)
I mean, if you're willing to do that why not just dynamically link?
Re:Writing GUI apps for Windows is painful by alok-g on Tuesday July 02, 2024 @12:15PM (#40858052)
The OP article is saying that static linking leads to size reduction. That's why asking.
Re:Writing GUI apps for Windows is painful by saagarjha on Tuesday July 02, 2024 @05:47PM (#40860728)
You’re not getting a size reduction if you maintain a library boundary, though. What you’re doing is isomorphic to dynamically linking except the app code is in the library and the library code is in the main binary.
Re:Writing GUI apps for Windows is painful by alok-g on Tuesday July 02, 2024 @10:45PM (#40862304)
Ok. I understood. Thanks for explaining.
Re:Writing GUI apps for Windows is painful by cesarb on Monday July 01, 2024 @12:46PM (#40847585)
> If you ship alongside your binary a bundle of eg .o files

You might even be able to use partial linking (ld -r) to ship a single .o file instead of a bunch of them.

Re:Writing GUI apps for Windows is painful by chipdart on Sunday June 30, 2024 @04:00PM (#40839847)
CopperSpice is LGPL, not GPL.

It's not a problem.

Re:Writing GUI apps for Windows is painful by alok-g on Monday July 01, 2024 @08:54AM (#40845388)
Hmm. How could that be when it's based on Qt?
Re:Writing GUI apps for Windows is painful by Liquid_Fire on Monday July 01, 2024 @10:19AM (#40846071)
Qt is also available under the LGPL. There is no license advantage to using CopperSpice. I'm not sure what GP is referring to.
Re:Writing GUI apps for Windows is painful by alok-g on Monday July 01, 2024 @10:33AM (#40846196)
Some parts of Qt are GPL only.
Re:Writing GUI apps for Windows is painful by Liquid_Fire on Monday July 01, 2024 @11:12AM (#40846569)
True, but they are optional and are not the parts you need to create a GUI as per the requirements in the OP. I assume CopperSpice does not include these components.