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

g2o: build g2o_viewer, libqglviewer: 2.6.3 -> 2.7.1 #61655

Merged
merged 3 commits into from Aug 18, 2019

Conversation

lopsided98
Copy link
Contributor

Motivation for this change

I recently added a basic derivation for g2o in #61344, but this package was missing support for the graph viewer application (g2o_viewer). It also performed impure CPU feature (SSE) detection.

g2o_viewer requires libqglviewer, but the version currently in nixpkgs is too old, so this package was updated. This moved it from using Qt4 to using Qt5.

Things done

Updated libqglviewer to the latest version. It now uses Qt5 so it was moved to libsForQt5. There were no users of this package within nixpkgs. I did not add an alias because this change would almost certainly break any out of tree usage anyway due to the Qt upgrade.

I am not able to test the Darwin build, so it would be helpful if someone could ask ofborg to build it.

I added the libqglviewer dependency to g2o in order to build g2o_viewer. I also added a patch that removes an unnecessary reference to the compiler that was just used in a debug message. Lastly, I added CPU feature tables as done in #59148. This prevents the build from impurely detecting SSE support on the build machine and potentially generating code that cannot run on all supported machines.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@c0bw3b
Copy link
Contributor

c0bw3b commented May 18, 2019

@GrahamcOfBorg build libqglviewer

@lopsided98
Copy link
Contributor Author

@c0bw3b the package is now libsForQt5.libqglviewer

It turns out that I actually need the Qt4 version of libqglviewer as well, so I am considering adding the older version again.

@c0bw3b
Copy link
Contributor

c0bw3b commented May 18, 2019

@GrahamcOfBorg build libsForQt5.libqglviewer

@lopsided98
Copy link
Contributor Author

I enabled separateDebugInfo for g2o because I needed it for debugging and I don't see any reason not to.

It turns out that I don't really need the Qt4 version of libqglviewer, so I think this PR is ready to be merged if it looks good to others.

@lopsided98
Copy link
Contributor Author

Can this be merged?

@samueldr samueldr merged commit c274229 into NixOS:master Aug 18, 2019
@lopsided98 lopsided98 deleted the g2o-fixes branch August 18, 2019 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants