Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Change your thoughts and you change your world.


comp / comp.os.linux.misc / Building a Linux Qt App on Windows

SubjectAuthor
o Building a Linux Qt App on WindowsChris Ahlstrom

1
Subject: Building a Linux Qt App on Windows
From: Chris Ahlstrom
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Organization: None
Date: Sun, 20 Oct 2024 11:27 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
Subject: Building a Linux Qt App on Windows
Date: Sun, 20 Oct 2024 07:27:35 -0400
Organization: None
Lines: 43
Message-ID: <vf2pfm$c99h$7@dont-email.me>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Sun, 20 Oct 2024 13:27:51 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f19dd39529f01b1595ad60212e43c5ce";
logging-data="402737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oi0Jd+aeHWt8ldqnu2R+k"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:RaLOT+zeW4j0AeziE3K6AyGRfUI=
X-Face: 63n<76,LYJQ2m#'5YL#.T95xqyPiG`ffIP70tN+j"(&@6(4l\7uL)2+/-r0)/9SjZ`qw=
Njn mr93Xrerx}aQG-Ap5IHn"xe;`5:pp"$RH>Kx_ngWw%c\+6qSg!q"41n2[.N/;Pu6q8?+Poz~e
A9? $6_R7cm.l!s8]yfv7x+-FYQ|/k
View all headers

On Linux, it's fast and easy to install the Qt libraries and, if desirable, Qt
Creator. On Windows? Not really, these days. It was straightforward in the
past, but now you have to get a Qt account, and install both packages. Not too
bad, but....

I wanted version 5 of Qt, not 6, because I'm not ready to deal with any upgrade
issues in my code. In Linux, you have both versions available in both Arch and
Debian easily. In Windows its a bit of a trek.

Being lazy, I wanted to avoid that, so I installed Msys2 and used it's
Arch-based pacman to install git, qt, qtcreator, mingw etc. Had to make some
fixes to configure.ac. I finally gave up when the build gave an error in a
standard include file saying "this features needs WIN32"; the include file was
in mingw64 directory. FTS.

I decided to go back to my virtual Win 10 machine, which has been what I was
using for Windows builds. I copied the VM to the new computer, as I intend to
eventually ditch the old laptop, which is now sitting under the desk.

Then I went to install virtualbox, only to find it is not available on Testing,
just Sid. I had to google a bit, add a couple of entries to
/etc/apt/sources.list.d, and the update apt and install virtualbox.
The code built, but then segfaulted when run. FTS.

Went back to the Win 11 machine, tracked down the version 5 installers, and
installed Qt/Qt Creator. Of course I had to log into my Qt account, twice.
Whereas previously you had options to cut back on the install, there weren't
any, and the install took up 50+ Gb! Took longer to install than a full
install of Linux!

Anyway, the code builds and runs. My next step is to use the Qt maintenance app
to pare out some of the stuff I don't need, like the Android development
package.

The original version of my app used Gtkmm. For the next version, in which the
internals will be radically re-implemented, perhaps I should revisit Gtkmm.

Can I do all of this stuff while I'm still alive? :-D

--
Q: Minnesotans ask, "Why aren't there more pharmacists from Alabama?"
A: Easy. It's because they can't figure out how to get the little
bottles into the typewriter.

1

rocksolid light 0.9.8
clearnet tor