g2o: unstable-2019-04-07 -> 20200410
This commit is contained in:
parent
dd14ee840c
commit
9693911c5a
|
@ -1,15 +1,15 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, eigen, suitesparse, libGLU, qt5
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, cmake, eigen, suitesparse, libGLU
|
||||||
, libsForQt5, makeWrapper }:
|
, qtbase, libqglviewer, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "g2o";
|
pname = "g2o";
|
||||||
version = "unstable-2019-04-07";
|
version = "20200410";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RainerKuemmerle";
|
owner = "RainerKuemmerle";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "9b41a4ea5ade8e1250b9c1b279f3a9c098811b5a";
|
rev = "${version}_git";
|
||||||
sha256 = "1rgrz6zxiinrik3lgwgvsmlww1m2fnpjmvcx1mf62xi1s2ma5w2i";
|
sha256 = "11rgj2g9mmwajlr69pjkjvxjyn88afa0r4bchjyvmxswjccizlg2";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Removes a reference to gcc that is only used in a debug message
|
# Removes a reference to gcc that is only used in a debug message
|
||||||
|
@ -18,14 +18,14 @@ stdenv.mkDerivation rec {
|
||||||
separateDebugInfo = true;
|
separateDebugInfo = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake makeWrapper ];
|
nativeBuildInputs = [ cmake makeWrapper ];
|
||||||
buildInputs = [ eigen suitesparse libGLU qt5.qtbase libsForQt5.libqglviewer ];
|
buildInputs = [ eigen suitesparse libGLU qtbase libqglviewer ];
|
||||||
|
|
||||||
# Silence noisy warning
|
# Silence noisy warning
|
||||||
CXXFLAGS = "-Wno-deprecated-copy";
|
CXXFLAGS = "-Wno-deprecated-copy";
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
# Detection script is broken
|
# Detection script is broken
|
||||||
"-DQGLVIEWER_INCLUDE_DIR=${libsForQt5.libqglviewer}/include/QGLViewer"
|
"-DQGLVIEWER_INCLUDE_DIR=${libqglviewer}/include/QGLViewer"
|
||||||
"-DG2O_BUILD_EXAMPLES=OFF"
|
"-DG2O_BUILD_EXAMPLES=OFF"
|
||||||
] ++ lib.optionals stdenv.isx86_64 ([ "-DDO_SSE_AUTODETECT=OFF" ] ++ {
|
] ++ lib.optionals stdenv.isx86_64 ([ "-DDO_SSE_AUTODETECT=OFF" ] ++ {
|
||||||
default = [ "-DDISABLE_SSE3=ON" "-DDISABLE_SSE4_1=ON" "-DDISABLE_SSE4_2=ON" "-DDISABLE_SSE4_A=ON" ];
|
default = [ "-DDISABLE_SSE3=ON" "-DDISABLE_SSE4_1=ON" "-DDISABLE_SSE4_2=ON" "-DDISABLE_SSE4_A=ON" ];
|
||||||
|
@ -38,16 +38,11 @@ stdenv.mkDerivation rec {
|
||||||
skylake-avx512 = [ "-DDISABLE_SSE4_A=ON" ];
|
skylake-avx512 = [ "-DDISABLE_SSE4_A=ON" ];
|
||||||
}.${stdenv.hostPlatform.platform.gcc.arch or "default"});
|
}.${stdenv.hostPlatform.platform.gcc.arch or "default"});
|
||||||
|
|
||||||
postInstall = ''
|
meta = with lib; {
|
||||||
wrapProgram $out/bin/g2o_viewer \
|
|
||||||
--prefix QT_PLUGIN_PATH : "${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A General Framework for Graph Optimization";
|
description = "A General Framework for Graph Optimization";
|
||||||
homepage = "https://github.com/RainerKuemmerle/g2o";
|
homepage = "https://github.com/RainerKuemmerle/g2o";
|
||||||
license = with lib.licenses; [ bsd3 lgpl3 gpl3 ];
|
license = with licenses; [ bsd3 lgpl3 gpl3 ];
|
||||||
maintainers = with lib.maintainers; [ lopsided98 ];
|
maintainers = with maintainers; [ lopsided98 ];
|
||||||
platforms = lib.platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1809,7 +1809,7 @@ in
|
||||||
|
|
||||||
fzy = callPackage ../tools/misc/fzy { };
|
fzy = callPackage ../tools/misc/fzy { };
|
||||||
|
|
||||||
g2o = callPackage ../development/libraries/g2o { };
|
g2o = libsForQt5.callPackage ../development/libraries/g2o { };
|
||||||
|
|
||||||
gbsplay = callPackage ../applications/audio/gbsplay { };
|
gbsplay = callPackage ../applications/audio/gbsplay { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue