Replying to nobody

It is usable under the GPL. You will have to dynamically link the library if you don’t plan on open sourcing the library.

I’d recommend Qt 6.5, as it’s the current LTS release.

https://qt.io

You’ll have to dig a little to get the download page. Look for the “online installer” My internet is really flaky right now due to snow.

If you are on Linux I can point you to the packages you need.

I'm on Windows but building my project on WSL. Currently trying to figure out how to add the relevant Qt packages to my project. I guess I could just download the sources and build them. Is that the best way?

Reply to this note

Please Login to reply.

Discussion

Are you using cmake?

Yep!

sudo apt install qt6-base-dev

That installs the core package?

Yes. Should support most basic functionality, and CMake will be able to find it since it is installed in the OS's standard library paths.

Are you wanting to use Qt Creator?

I believe the pkg name is just qtcreator all together like that.

Might use Qt Creator later, but I don't need it right now.

Ok. If you have any more issues let me know. I can throw a working CMakeLists.txt into a GitHub gist or something.

Thank you!

I ended up deciding to download and build a specific version of Qt. There was no Ubuntu package for the WebSocket library for the current Ubuntu LTS distro.

Let me tell you, Qt is a *fat* download/unzip. I think I'll be able to build it once and call it a day, though.

Ah. I keep forgetting how behind LTS Ubuntu is.

If you haven’t already, you might check out vcpkg when you have tinker time. Since switching to windows, I do all my Qt work on it natively, and I compile everything (deps) with vcpkg and use the toolchain file to allow cmake to find everything. Nlohmann, SQLite, and Qt 6.5 are all building natively that way on my machine.

It looks like:

vcpkg install qt:x64-windows

And it will compile it natively. Of course, on windows natively you could just use the installer, in which case vcpkg is still great for sekp256, nlohmann, and even boost.

The installer will work well in most cases, but using vcpkg (especially if you make a manifest file) makes it easy to do CI/CD later as well, since it works on all three platforms.

I'll keep that in the back pocket.

This is my first time trying to do a serious project in C++, and compared to Python or Node or .NET, C++ project management feels like the Wild West.

I'm learning on the fly.

That is awesome. You work in my two best languages. Maybe we can collaborate some time. I’m a C++/C# nerd. 🫂

I do C# in my day job, and wanted to learn C++ on the side.

DM me sometime, I'm working with a few folks on a fairly hefty project (that's what all this is about). We'd love to have another contributor, if you're interested.