Jan Ekholm

@chakie@toot.community
400 Followers
2K Following
1.8K Posts

If I’m somewhat fed up with the complexities of CMake, what are the current hot alternatives? Assume a not huge C++ code base that needs to be buildable on Linux, Mac and Windows. A fair deal of external dependencies but otherwise pretty simple.

#cpp #c++ #cmake #buildsystems

Like, why the hell doesn't this do anything at all:

link_directories(/usr/lib64)

Doesn't matter if it's defined before or after the target. And why the fuck isn't that a default link path? Something is really broken here. Could be this god awful RHEL system too that does something fubar.

Like now, I'm trying to add an extra directory where CMake should look for libraries. Seems almost impossible to find a suitable incantation that works cross platform.

It's a weird that after 50+ years of C (and C++) development, the best system for building is CMake. It kind of does work, but it has so many rough edges, it's so hard to hold correctly and it's mostly totally crap.

Sure, there are some other systems that work better for happy cases but nothing that's common.

Maybe the C++ standard folks should fix this instead of all kinds of template wanking all the time? This is undoubtedly the biggest hurdle for C/C++ users.

#c++ #cpp #cmake #rubbish

Note to self. When your UptimeRobot SSL cert checker says that a server cert will expire in one day it does not mean that next week is fine to fix it. Of course the cert itself was renewed automatically as it should, but uvicorn or FastAPI needs to be restarted for them to pick up the new cert from disk. Fixing it was a simple service restart.

At least I have a dozen active users that let me know that things were not working. :)

Hm, does CLion on Windows come wia compiler, or does it require Visual Studio? I wonder if my license covers running it on two OS:es? Something to check tomorrow, I guess.

Ugh. A fresh Windows 11 is so barren.

There are no useful tools installed and no easy package manager to get basics installed. Everything is "find app web page, find download link, download installer, install stuff, wonder what got installed and where, fiddle with PATH". It gets boring really quickly.

Not even a good Bash terminal... How can people develop like this?

I have a need to port an app to Windows. I have been fortunate to not have to use Windows since the Windows 7 days. I wonder if there's a nice way to get a basic Windows version up and running in a virtual machine on a Mac. I don't need much more than Visual Studio (for the C+ compiler, or is there a better alternative?) and a sane shell (Linux subsystem?).

Is Parallels the way to go still or are there better/cheaper alternatives? I'd like to avoid VMWare.

#windows #vm #on #a #mac

Well, that was underwhelming. The iPad windowing could be cool assuming a keyboard and mouse, but I have neither. I do expect it to be pretty buggy and never get fixed properly.

#wwdc

Redoing an old Python monitoring tool with PyQt. It was originally done with Curses and it's hanky at best nowadays. Back when I made it in 2017 or so it was meant to be a quick hack to view logs, stats and data about some custom hardware I was developing for. It survived a bit longer than planned. :) I enjoy making these kinds of tools with Python in general and PyQt in particular. So easy to get going and get something working. Nothing beats them on speed to market.

#qt #pyqt