Skip to content
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

Add VisualizationLibrary #17943

Closed
6 tasks done
asmwarrior opened this issue Aug 4, 2023 · 10 comments · Fixed by #17965
Closed
6 tasks done

Add VisualizationLibrary #17943

asmwarrior opened this issue Aug 4, 2023 · 10 comments · Fixed by #17965

Comments

@asmwarrior
Copy link

Package name

VisualizationLibrary

Brief description of package

This is a OpenGL based library, and support many GUI framework, such as wxWidgets and QT.
This is the github site: VisualizationLibrary, it also has its own official site here: https://www.visualizationlibrary.org/, you can see there are many screen shots here: Visualization Library: Visualization Library Gallery

This library supporting building by CMake, see here: https://visualizationlibrary.org/docs/2.1/html/pag_install.html

URL for package's homepage

https://www.visualizationlibrary.org/

Provide a basic test case to validate the package's functionality.

No response

MINGW environments where you need the package

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

No response

@Biswa96
Copy link
Member

Biswa96 commented Aug 4, 2023

Is that project in development? The last commit was a year ago.

@asmwarrior
Copy link
Author

asmwarrior commented Aug 4, 2023

I first used this library in year 2019. I think this library is quite mature, I see it published a new release in year 2021.
If it has arrived in the msys2's package, it will certainly has more users.

I think using OpenGL in GUI framework, especially in wxWidgets is a very common need.

This library's code base is much smaller than Package: mingw-w64-x86_64-magnum - MSYS2 Packages (which is version 2020 in msys2's package), and Package: mingw-w64-x86_64-ogre3d - MSYS2 Packages.

@asmwarrior
Copy link
Author

The build step is simple if you need link to the wxWidgets library under msys2, I have another post mention this steps: Screen shots when running visualization library under Windows' msys2 · Issue #212 · MicBosi/VisualizationLibrary

@Biswa96
Copy link
Member

Biswa96 commented Aug 5, 2023

I have added a pull request to add the package. Would you like to test the packages from GitHub Actions artifacts of that pull request?

Do you need the package for all MSYSTEMs and 32 bit also?

@asmwarrior
Copy link
Author

Hi, thanks. I will test it as soon as possible. In fact, I am currently only use mingw64 targets.

By the way, how can I download the build package from you pull request.

Another question is that did you enable some gui support?

@Biswa96
Copy link
Member

Biswa96 commented Aug 6, 2023

how can I download the build package from you pull request.

Please follow these steps for testing package in CI artifacts.

  1. Go to this page https://github.com/msys2/MINGW-packages/actions/runs/5771231258 > scroll down > download the XYZ-packages.zip file. The XYZ should match with the value of $MSYSTEM variable.
  2. Extract the .tar.zst file from that ZIP.
  3. Install the .tar.zst file with pacman -U <full path of .tar.zst file> command.

Another question is that did you enable some gui support?

I am not sure about that. Please suggest any required changes for that PKGBUILD file.

@asmwarrior
Copy link
Author

Thanks, I will try your CI artifacts if I got time, I will go traveling next week, not sure I will got test time vary soon. But this project do works on Msys2 ( I can build it with wxWidgets gui support on msys2 mingw64 shell), running the test is vary simple, see here: Screen shots when running visualization library under Windows' msys2 · Issue #212 · MicBosi/VisualizationLibrary

Another question is that did you enable some gui support?

I am not sure about that. Please suggest any required changes for that PKGBUILD file.

You can see this post: when building this library wxWidgets support under msys2, I got build error, here is a patch to fix the error · Issue #210 · MicBosi/VisualizationLibrary

I have enabled the wxWidgets gui option in the cmake command option, and it works fine. (a small file change is needed, I also have patch in that issue)

I'm not familiar with QT, so I don't have any idea about how to enable QT or whether it works OK when QT gui is enabled.

@Biswa96
Copy link
Member

Biswa96 commented Aug 7, 2023

I have enabled wxWidgets support in the package. Please test the newer one. You can get the artifacts from that PR link > Checks > main.

@asmwarrior
Copy link
Author

asmwarrior commented Aug 7, 2023

I have enabled wxWidgets support in the package. Please test the newer one. You can get the artifacts from that PR link > Checks > main.

Hi, many thanks!

I have just download the file MINGW64-packages.zip and extract to the file mingw-w64-x86_64-visualizationlibrary-2.1.0.r4.gd2a0e32-1-any.pkg.tar.zst, and finally I just install this zst file by the command

# pacman -U ./mingw-w64-x86_64-visualizationlibrary-2.1.0.r4.gd2a0e32-1-any.pkg.tar.zst
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-x86_64-visualizationlibrary-2.1.0.r4.gd2a0e32-1

Total Installed Size:  13.26 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                               [###############################] 100%
(1/1) checking package integrity                             [###############################] 100%
(1/1) loading package files                                  [###############################] 100%
(1/1) checking for file conflicts                            [###############################] 100%
(1/1) checking available disk space                          [###############################] 100%
:: Processing package changes...
(1/1) installing mingw-w64-x86_64-visualizationlibrary       [###############################] 100%

And finally, I did a very simple test. Suppose I'm currently on my PC A, I just copy a file named vlWX_example.exe from another PC B. I mean in PC B, I have build the vlWX_example.exe from a local clone of the visualizationlibrary git. And I just run vlWX_example.exe in the PC A, and it works fine.

This means that in PC A, all the dll files are supplied from the mingw-w64-x86_64-visualizationlibrary-2.1.0.r4.gd2a0e32-1-any.pkg.tar.zst.

This looks so good! Thanks.

@asmwarrior
Copy link
Author

Oh, I just see that you have merged your branch to the master, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants