necromorph23

necromorph23

Kaffe Dependency keeps on giving the same error "Could not compile dependency :brod"

I am trying to install kaffe in my project. But i keep on getting this error when i do mix deps.compile

Generated nimble_options app
===> Analyzing applications...
===> Compiling brod
===> Compiling src/brod_group_member.erl failed
include/brod.hrl:{21,14}: can't find include lib "kafka_protocol/include/kpro_public.hrl"; Make sure kafka_protocol is in your app file's 'applications' list

include/brod_int.hrl:{21,14}: can't find include lib "kafka_protocol/include/kpro.hrl"; Make sure kafka_protocol is in your app file's 'applications' list

==> vortex_pub_sub
** (Mix) Could not compile dependency :brod, "/home/monarch/.mix/elixir/1-14/rebar3 bare compile --paths /home/monarch/proj/vortex-pub-sub/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile brod", update it with "mix deps.update brod" or clean it with "mix deps.clean brod"

This is my mix.exs file

defmodule VortexPubSub.MixProject do
  use Mix.Project

  def project do
    [
      app: :vortex_pub_sub,
      version: "0.1.0",
      elixir: "~> 1.12",
      start_permanent: Mix.env() == :prod,
      deps: deps()
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      mod: {VortexPubSub, []},
      extra_applications: [:logger, :ecto, :kaffe]
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
      {:plug_cowboy, "~> 2.7"},
      {:phoenix_pubsub, "~> 2.1"},
      {:phoenix_live_view, "~> 0.20.17"},
      {:ecto_sql, "~> 3.11"},
      {:ecto_enum, "~> 1.4"},
      {:jason, "~> 1.4"},
      {:elixir_uuid, "~> 1.2"},
      {:finch, "~> 0.18.0"},
      {:postgrex, "~> 0.18.0"},
      {:credo, "~> 1.7"},
      {:timex, "~> 3.7"},
      {:kafka_ex, "~> 0.13.0"},
      {:mongodb_driver, "~> 1.4"},
      {:guardian, "~> 2.3"},
      {:httpoison, "~> 2.2"},
      {:joken, "~> 2.6"},
      {:kaffe, "~> 1.26"}
    ]
  end

  defp elixirc_paths(:test), do: ["lib", "test/_support"]
  defp elixirc_paths(_), do: ["lib"]

  defp aliases do
    [
      "ecto.setup": ["ecto.create", "ecto.migrate"],
      "ecto.reset": ["ecto.drop", "ecto.setup"],
      test: ["ecto.create --quiet", "ecto.migrate", "test"]
    ]
  end
end

I have downgraded kaffe version and deleted deps and _build again and compiled the entire project but i still keep on getting same issue

First Post!

dimitarvp

dimitarvp

I had problems with Kaffe just a few months ago on Erlang 27. Are you using that? Have you tried with 26?

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
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 30877 112
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
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
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New

We're in Beta

About us Mission Statement