DOVECYJ

DOVECYJ

Error in compiling torchx

My environment:

Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]

Elixir 1.18.4 (compiled with Erlang/OTP 27)

My mix deps:

{:axon, "~> 0.7.0"},
{:torchx, "~> 0.9.0"}

My os: windows 11.

My libtorch library: libtorch-2.4.0-cpu.zip

I’m learning the example in Axon docs. I want to use torchx backend in my windows computer. But I got an error when compiling torchx. It says “there is no CMakeLists.txt in _build/dev/lib/torchx/cmake directory.”

I found cmake function in deps/torchx/mix.exs file, it just create the ‘cmake’ directory:

File.mkdir_p!(cmake_build_dir)

And I add the following code after that:

File.cp!("CMakeLists.txt", Path.join(cmake_build_dir, "CMakeLists.txt"))

And then mix deps.compile torchx is going to work.

I wonder is this a bug, or, it’s my fault in using?


There is another issue. I am using VSCode, which seems to be incompatible with my ElixirLS plugin. ElixirLS compiles my dependencies on its own, causing some issues with the CMake cache. I am not sure what is going on.

First Post!

DOVECYJ

DOVECYJ

It’s my fault, I miss some environment variable.

Where Next?

Popular in Questions Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement