mikejm
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.
Trending in Questions
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Hi everyone.
My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
Hello,
I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind.
However, when I launch mix phx.server, I get an error...
New
I really like the adapter patterns that ecto, nebulex, waffle, etc. use and would love find something similar for a key management servic...
New
Hello folks!
So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
I’m working on a small exercise involving update_in/3, and I came up with this solution:
data = %{
name: "Periodic Table",
category:...
New
How Can I Optimise Compile Time Dependencies
I have been building an elixir application for about 2 years now. Many modules and files ha...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #ai
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming











Showing Posts 7 to 1- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
dimitarvp
It has been a very long time since I last dealt with C/C++ and CMake so I can’t help you, I am afraid. Even if I wanted to, it would take time, time that I don’t have much of.
I’d again advise you to just go with the Rust dependency, it’s much easier and transparent to work with Rust + the Elixir<=>Rust bridge called
rustler.I and others can help you with it, but if you really want help with the C/++ and CMake problems then I am not your guy.
mikejm
Hey @dimitarvp. I tried building the erlang h3 version here by downloading it, going in the folder and running “make” but I got the same error as the Hex H3 (likely the same build then):
In terms of the problems, to break this down, it seems only #2 is a true error but to review it all:
1) Deprecation warning
This comes from the line in CMakeLists.txt:
Presumably, I can just increase this to 3.5. I did that and the deprecation warning resolved without new issues.
2) Asan.cmake Error
This file Asan.cmake contains only the following, with line 8 being the last one that is throwing the error that seems to be breaking the build:
There is obviously a problem with this
set_propertyline. Any idea what it is or how to fix it?CMakeLists.txt line 10 is the last here:
3) .git Message
I am not sure if this is meaningful? I am not sure what it is trying to say.
4) Could not get erlang-h3 tag
This derives from FindH3.cmake:
Again is there any likely significance to this?
Any thoughts or ideas on how to solve #2 in particular which is what seems to be breaking it? Thanks.
mikejm
I find it absolutely hilarious (in a good way) that this forum is the complete 100% antithesis of StackOverflow.

I am so used to just not asking programming questions of any kind and suffering in silence to figure things out because there is no point even asking anything on StackOverflow these days. GitHub discussion pages are usually dead. Rarely, if you can find a Discord server for a particular niche that can be good.
Anyway, thanks for being nice and helpful. Even small answers like, “It’s probably going to be a mess trying to fix that thing,” can save a person a lot of wasted time.
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.
dimitarvp
Hope you make the alternative work.
Looking at Bindings | H3, I’d just choose one of the Rust libraries and then use
rustlerto 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
cmakebut again, I’d put my chips on Rust if I were you.mikejm
@dimitarvp H3 is Uber’s hexagonal global spatialization library which they made open source:
https://www.uber.com/en-CA/blog/h3/
https://github.com/uber/h3
People have adapted it into many languages. There are easily available working C# versions I have tested and it was formally released with JavaScript support. At some point soon I will need a working Elixir implementation.
If you think I might have to do it myself, any pointers for someone who knows virtually nothing about coding Elixir?
Maybe I will have to pay someone to fix it? I dunno.
Edit: I just looked again and there is another version here: GitHub - helium/erlang-h3: Erlang binding for Uber's H3 spatial coordinate library · GitHub I will try to build that from the instructions there. Thanks.
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
h3do? A quick glance didn’t give me an answer. It is an option to replace it I’d reckon.