As my project consists of some mix projects using nifs, I'm trying to make a custom compiler, so that *.c files could be compiled along with these mix projects. Let's say I have a project A, which has a dependency of B, that has some native code depending on C. The problem arises, when C is also a dependency of A - then from Bs perspective location of Cs code is unknown, because it depends on the way of linking C to A (especially when it's linked by path), which makes it impossible to link *.c files of C to B. That is why I would like to have access from a dependency (in this case B) to a roots (A) other dependencies paths. To solve this, I considered putting native sources to the priv folder, that can be accessed by Application.app_dir/2, but I don't wish to include the sources in release. Is there any other way to solve it?
Getting dependencies paths of the root project in Mix
72 Views Asked by Com Piler At
0
There are 0 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in COMPILATION
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Unable to run get .exe file from assembly NASM
- Javascript to Java
- How to compile only the changed files in Verilator?
- Why does the .exe file become locked after compiling?
- Installing the C compiler for LC3
- compile syzkaller fuzzer failed without any error or warning
- Solved: Create standalone executable for MacOS with OpenCV and libmagic
- How to work around the "collect2: error: ld returned 1 exit status" error when running simple fortran files with the gfortran command?
- how to add a compiler type supported for sccache?
- Vulkan ‘VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR’ was not declared in this scope
- Rust newbie compile error (for (key: String, value: String) in | ^ expected one of `)`, `,`, `@`, or `|`)
- latest version of redshift with crazy compile times
- Problem compiling out-dated Typescript code
- What is appropriate substitution for configurations.compile in newer gradle e.g. version 8.7?
Related Questions in ELIXIR
- Phoenix in a docker dev environment - generated code can't be saved from VSCode
- Microsoft Teams, Graph API, send message to channel InsufficientPrivileges MessageWritesBlocked-Thread is not marked for import
- Can someone tell me what's wrong with mi Task.await?
- Is there a Sonar-Elixir plugin compatible with SonarQube 10.4.1?
- How to use Elixir pattern matching to check if a list's item startswith a given string(in a variable)?
- Error `unknown application: :nif_bartender` when compiling Elixir NIF
- How to use compiled erlang modules in an elixir project?
- OnVif authentication failed for Milesight camera
- Debugging Boggle Solver Implemented in Elixir with Trie Structure
- Elixir Enum.group_by converts integers to ASCII Chars
- Disambiguate "arity denotation" and "arithmetic division" in Elixir
- LiveView [LiveMotion] Motion element not found, make your target a LiveMotion.motion component
- What exactly is flushed by flush/0 in Elixir?
- Attempting to understand the difference in computed result for a Math.imul (javascript) recreation in Elixir
- Cronjob does not work for the local asdf elixir path
Related Questions in ELIXIR-MIX
- How can I run a locally installed mix task in the context of an app with a breakpoint?
- Add internal test only application when doing mix test
- Elixir compilation error: module ExUnitProperties is not loaded and could not be found
- Phoenix Persistent Builds Issue: Dependencies Recompiling Every Time
- Elixir `mix` command throws error `could not call Module.put_attribute/3 because the module Helloworld.MixProject is already compiled`
- Elixir install dependencies command `mix deps.get` is throwing error
- How to use Application and Plug.Router to listen on port with Elixir
- Pattern for generating names at command line when using mix to create an app skeleton
- (SyntaxError) mix.exs:50:7: syntax error before: '{'
- Hi, I had created Elixir project with phoenix framework. there is yaml file when i build that file i get this error
- Mix edeliver doesn't seem to recognize updates to my mix.exs file
- Map.keys method in elixir is returning \n for a particular case while computing mode
- Authenticity error when trying to install Rebar
- How to pass named arguments into a Mix Task?
- Creating an Elixir project generates: [error] beam/beam_load.c(148): Error loading module 'Elixir.Hex'
Related Questions in ERLANG-NIF
- How to deal with big integers in Elixir NIFs
- Erlang NIF not linking properly on Mac M1
- Erlang NIF crashes on unavailable resources when calling enif_thread_create without enif_thread_join
- Running Google Mock from an Erlang NIF
- :erlang.load_nif/2 finds shared library file inside original project but can't find it if the project gets imported
- How to call `ERL_NIF_TERM` when I know that it is a funciton?
- How to use binary strings in Elixir NIF
- How to do Memory-mapped IO in Erlang?
- NIFs Segmentation Fault without creating erl_crash.dump however code is working fine when ran normally without NIFs
- NIFs raise Segmentation Fault while loading function has try catch block to handle the exception
- How to use a variable as pass by reference in Erlang?
- Creating dirty threads in erlang nif
- Elixir CRC will not compile on MAC OS
- How to case switch in erlang using a function value?
- Erlang NIF weird iolist behavior
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?