Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any cross-platform GUI frameworks here which work out-of-the-box? #17194

Closed
SamuelMarks opened this issue Apr 10, 2021 · 5 comments
Closed
Assignees
Labels
category:question This issue is a question

Comments

@SamuelMarks
Copy link
Contributor

SamuelMarks commented Apr 10, 2021

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:

Experience with sw:

Experience with conan:

Experience with conda:


You 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?

@Neumann-A
Copy link
Contributor

Qt should work (using CMake). At least the cmake test port and paraview work on windows & linux.

@SamuelMarks
Copy link
Contributor Author

@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…

@Neumann-A
Copy link
Contributor

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.

@NicolBolas
Copy link

NicolBolas commented Apr 11, 2021

@SamuelMarks

I was rather surprised that none of the 9 vcpkg packaged UI frameworks worked out-of-the-box.

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.

@SamuelMarks
Copy link
Contributor Author

@NicolBolas I also tried wxwidgets, see #17072

Hello World didn't work. YMMV.

@PhoebeHui PhoebeHui added the category:question This issue is a question label Apr 12, 2021
@microsoft microsoft locked and limited conversation to collaborators Jul 15, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

5 participants