Are there any cross-platform GUI frameworks here which work out-of-the-box? #18956
Replies: 5 comments
-
Qt should work (using CMake). At least the cmake test port and paraview work on windows & linux. |
Beta Was this translation helpful? Give feedback.
-
@Neumann-A My only issue with Qt—and the reason I haven't tested it in the above list—is the licensing issue. Commercial vs noncommercial usage. Also for my purposes I don't need anything too fancy, just forms, a tree view, [stretch goal: image and video rendering], and maybe a graph or two… I even tried doing it myself (link with Windows SDK to create windows as they recommend, but linking with macOS failed to show anything on screen). I was rather surprised that none of the 9 vcpkg packaged UI frameworks worked out-of-the-box. Hopefully as those issues progress someone will contribute enough PRs that one works (there are some open PRs now; hopefully will be completed). Might need to send a few more myself… |
Beta Was this translation helpful? Give feedback.
-
Qt is the only GUI Framework with test ports if it actually works. It has cmake in scripts/test_ports and paraview. So maybe vcpkg needs some test_ports for the other gui frameworks. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what you mean by "out-of-the-box". I had no trouble installing wxWidgets through vcpkg and finding a "Hello World" tutorial that could work with it (thus proving that vcpkg installed it correctly). Vcpkg installs libraries; it doesn't install applications. Libraries can be used to build applications, but you have to bring the application code yourself. So they do work "out-of-the-box"; they just don't write the application code for you. Nor should they. So I don't think the problem is with vcpkg so much as what you expect from it. |
Beta Was this translation helpful? Give feedback.
-
@NicolBolas I also tried wxwidgets, see #17072 Hello World didn't work. YMMV. |
Beta Was this translation helpful? Give feedback.
-
I've recently been trying to get an open-source cross-platform GUI library—in C or C++—working with an open-source cross-platform C/C++ package manager.
Experience here with
vcpkg
:Experience with
hunter
:[hunter ** INTERNAL **] Project 'imgui' not found
? cpp-pm/hunter#376Experience with
sw
:Experience with
conan
:Experience with
conda
:conda install -c conda-forge wxwidgets
used conda/conda#10602You folks have been helpful and are commenting—and sometimes providing patches—for most of my issues here. But I still don't have a working 'Hello World' from any cross-platform C/C++ GUI library. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions