mikejm
CMake error on adding package? Any way to fix?
I have been able to add a number of packages to my testserver project with no issues. I would like to also add the H3 package here:
However, when I add that to my dependencies and run iex -S mix phx.server or mix deps.compile h3 I get:
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19044.
CMake Error at cmake/ASan.cmake:8 (set_property):
set_property could not find CACHE variable CMAKE_BUILD_TYPE. Perhaps it
has not yet been created.
Call Stack (most recent call first):
CMakeLists.txt:10 (include)
-- Configuring incomplete, errors occurred!
===> Hook for compile failed!
** (Mix) Could not compile dependency :h3, "escript.exe "c:/Users/Mike/.mix/elixir/1-14/rebar3" bare compile --paths h:/filePath/testserver/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile h3", update it with "mix deps.update h3" or clean it with "mix deps.clean h3"
I have confirmed c:/Users/Mike/.mix/elixir/1-14/rebar3 does in fact exist.
Is there any obvious way to fix this? Or to figure out more precisely the issue? The package is from 2020, so maybe there is just something inside it I might need to update?
Thanks for any help.
Most Liked
dimitarvp
If the library hasn’t been updated in a while and it has native dependencies + even deprecation warnings then your chances are not good I am afraid.
What does h3 do? A quick glance didn’t give me an answer. It is an option to replace it I’d reckon.
dimitarvp
Hope you make the alternative work.
Looking at Bindings | H3, I’d just choose one of the Rust libraries and then use rustler to bind to it. Should be a much smoother ride with less surprises.
As for paying people, sure. Maybe there will be takers for a C/C++ project managed by cmake but again, I’d put my chips on Rust if I were you.
dimitarvp
Oh, only one of them is actually a direct translation without the underlying C/C++ dependency: GitHub - HydroniumLabs/h3o: Rust implementation of the H3 geospatial indexing system. · GitHub
Then I’d start there.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








