Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions packages/g/g2o/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ package("g2o")
end})
add_urls("https://github.com/RainerKuemmerle/g2o.git")
add_versions("2020.12.23", "20af80edf8fd237e29bd21859b8fc734e615680e8838824e8b3f120c5f4c1672")
add_versions("2024.12.28", "d691ead69184ebbb8256c9cd9f4121d1a880b169370efc0554dd31a64802a452")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The version string "2024.12.28" does not correspond to a valid tag or commit in the g2o repository (https://github.com/RainerKuemmerle/g2o/tags). This will cause the package to fail during source fetching. Please use a valid tag. For example, the latest tag is 2023.08.07. You will also need to update the SHA256 hash accordingly if you change the version.


add_deps("cmake", "eigen")
add_deps("cmake", "eigen <5.0")

add_links("g2o_solver_slam2d_linear", "g2o_solver_structure_only", "g2o_solver_dense", "g2o_solver_eigen", "g2o_solver_pcg", "g2o_types_data", "g2o_types_icp", "g2o_types_sim3", "g2o_types_sba", "g2o_types_sclam2d", "g2o_types_slam2d_addons", "g2o_types_slam2d", "g2o_types_slam3d_addons", "g2o_types_slam3d", "g2o_core", "g2o_stuff", "g2o_opengl_helper", "g2o_ext_freeglut_minimal")

on_install("linux", "windows", "macosx", function (package)
local configs = {"-DG2O_BUILD_APPS=OFF", "-DG2O_BUILD_EXAMPLES=OFF"}
Expand All @@ -28,5 +31,5 @@ package("g2o")
g2o::SparseOptimizer optimizer;
optimizer.setVerbose(false);
}
]]}, {configs = {languages = "c++14"}}))
]]}, {configs = {languages = package:version():ge("2023.08.06") and "c++17" or "c++14"}}))
end)
Loading