libqglviewer: fix on darwin + add to qt6Packages#348549
libqglviewer: fix on darwin + add to qt6Packages#348549GaetanLepage merged 3 commits intoNixOS:masterfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
19fd3cb to
8e906b3
Compare
|
Tested GUI on https://github.com/sofa-framework/sofa/, linux & darwin: snake simulation runs fine. |
This require fixes in upstream nixpkgs: NixOS/nixpkgs#348549 So we can use the source of that PR for now
This require fixes in upstream nixpkgs: NixOS/nixpkgs#348549 So we can use the source of that PR for now
|
Hi @NixOS/darwin-core, Edit: should I mention darwin-maintainers instead ? the group has no description, so I'm unsure |
|
Specifying individual Darwin frameworks is no longer necessary as of 24.11. By default, Darwin provides an SDK with all that you should need. If your package needs a newer version, you can add that SDK as a package. See https://nixos.org/manual/nixpkgs/stable/#sec-darwin for details. |
* [Nix] initial packaging & flake * [Nix] setup CI * [CMake] FindQGLViewer: fix include dir computation we use `#include <QGLViewer/qglviewer.h>`, so `QGLViewer_INCLUDE_DIR` must not include `QGLViewer` component. Also, on darwin, headers are installed in Headers dir, not include, ref: https://github.com/GillesDebunne/libQGLViewer/blob/ba9a875784afbb7ee73088fe0e8701c31bc7277d/QGLViewer/QGLViewer.pro#L138 * [Nix] fix build on macos This require fixes in upstream nixpkgs: NixOS/nixpkgs#348549 So we can use the source of that PR for now * [CMake] FindQGLViewer: fix for Qt6 ref. https://github.com/GillesDebunne/libQGLViewer/blob/ba9a875784afbb7ee73088fe0e8701c31bc7277d/QGLViewer/QGLViewer.pro#L176 * [Nix] Qt5 -> Qt6 * [CMake] fix typo for Qt6 * [CMake] fix SOFA_GUI_QT_HAVE_QT6 definition without this, `lib/cmake/Sofa.GUI.Qt/Sofa.GUI.QtConfig.cmake` has: > `set(SOFA_GUI_QT_HAVE_QT6 0)` and therefore, in SofaPython3, `find_package(QGLViewer QUIET REQUIRED)` is not called, and build ends up with: > [ 98%] Linking CXX shared library ../../lib/python3/site-packages/Sofa/Gui.cpython-312-x86_64-linux-gnu.so > […]/ld: cannot find -lQGLViewer: No such file or directory * [Nix] fixup lib path on Darwin TODO: This should be fixed in CMake instead, but I have no clue. error was: > dyld[61665]: Library not loaded: /nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib > Referenced from: <8B75C775-7FE5-3755-A190-B11A3F4F6666> /nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/bin/.runSofa-24.12.99-wrapped > Reason: tried: '/nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib' (no such file), '/nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib' (no such file), '/usr/local/lib/libSceneChecking.24.12.99.dylib' (no such file), '/usr/lib/libSceneChecking.24.12.99.dylib' (no such file, not in dyld cache) > zsh: abort ./result/bin/runSofa * [Nix] CI on macos too * nix: add nixGL * [Nix] fix package description Co-authored-by: Hugo <[email protected]> * Apply suggestions from code review --------- Co-authored-by: Hugo <[email protected]>
8e906b3 to
744ce49
Compare
744ce49 to
7855bad
Compare
This comment was marked as outdated.
This comment was marked as outdated.
* [Nix] initial packaging & flake * [Nix] setup CI * [CMake] FindQGLViewer: fix include dir computation we use `#include <QGLViewer/qglviewer.h>`, so `QGLViewer_INCLUDE_DIR` must not include `QGLViewer` component. Also, on darwin, headers are installed in Headers dir, not include, ref: https://github.com/GillesDebunne/libQGLViewer/blob/ba9a875784afbb7ee73088fe0e8701c31bc7277d/QGLViewer/QGLViewer.pro#L138 * [Nix] fix build on macos This require fixes in upstream nixpkgs: NixOS/nixpkgs#348549 So we can use the source of that PR for now * [CMake] FindQGLViewer: fix for Qt6 ref. https://github.com/GillesDebunne/libQGLViewer/blob/ba9a875784afbb7ee73088fe0e8701c31bc7277d/QGLViewer/QGLViewer.pro#L176 * [Nix] Qt5 -> Qt6 * [CMake] fix typo for Qt6 * [CMake] fix SOFA_GUI_QT_HAVE_QT6 definition without this, `lib/cmake/Sofa.GUI.Qt/Sofa.GUI.QtConfig.cmake` has: > `set(SOFA_GUI_QT_HAVE_QT6 0)` and therefore, in SofaPython3, `find_package(QGLViewer QUIET REQUIRED)` is not called, and build ends up with: > [ 98%] Linking CXX shared library ../../lib/python3/site-packages/Sofa/Gui.cpython-312-x86_64-linux-gnu.so > […]/ld: cannot find -lQGLViewer: No such file or directory * [Nix] fixup lib path on Darwin TODO: This should be fixed in CMake instead, but I have no clue. error was: > dyld[61665]: Library not loaded: /nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib > Referenced from: <8B75C775-7FE5-3755-A190-B11A3F4F6666> /nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/bin/.runSofa-24.12.99-wrapped > Reason: tried: '/nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib' (no such file), '/nix/store/aalbn4pznxwy18ydjmb15c3y4izj8isi-sofa-24.06.00/lib/libSceneChecking.24.12.99.dylib' (no such file), '/usr/local/lib/libSceneChecking.24.12.99.dylib' (no such file), '/usr/lib/libSceneChecking.24.12.99.dylib' (no such file, not in dyld cache) > zsh: abort ./result/bin/runSofa * [Nix] CI on macos too * nix: add nixGL * [Nix] fix package description Co-authored-by: Hugo <[email protected]> * Apply suggestions from code review --------- Co-authored-by: Hugo <[email protected]>
This comment was marked as resolved.
This comment was marked as resolved.
336b1f5 to
ac8f4e8
Compare
|
|
Can you squash your commits please? Maybe keep one or two if necessary, but 8 feels a bit too granular for this diff. |
Co-authored-by: Niklas Korz <[email protected]>
ac8f4e8 to
0e1704e
Compare
|
done |
remove use of absolute path on darwin
0e1704e to
280c2bf
Compare
|
|
|
Anyway, @SuperSandro2000 's review is blocking the merge, so I'll let him press the button. |
|
Feedback has been addressed.
Fix #348484, clean things a bit, and provide Qt6 version
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.