Code Monkey home page Code Monkey logo

scenic_math's People

Contributors

boydm avatar chgeuer avatar connorrigby avatar crertel avatar harlantwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scenic_math's Issues

Extra files in hex causes weird error

Hey, I just wanted to try scenic, but I have a few problems with it.

Steps to reproduce

  1. mix scenic.new app_name command (normal output, so there is no sense to paste it her)
    Of course now deps directory is empty which is totally normal.

  2. Before I do any smallest change I simply run mix deps.get (as in instructions)
    For now the found problem is visible. Just enter generated app directory and run command ls deps/scenic_math/c_src/

  3. Follow tutorial by running mix scenic.run

Expected behaviour

2nd point (for this version) we should see only line.c and matrix.c files

3rd point should not fail (assuming that all requirements are met)

Current behaviour

Even in 2nd point we can see problem. Except files described in Expected behaviour we have 2 more i.e. line.o and matrix.o.

In 3rd point there is really weird error (for somebody who do not use C/C++ language)

# skipped debug from other dependencies

==> scenic_math
mkdir -p priv
cc c_src/line.o -L/home/$USER/.asdf/installs/erlang/21.0.8/usr/lib -fPIC -shared  -dynamiclib -o priv/line.so
c_src/line.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:42: polecenia dla obiektu 'priv/line.so' nie powiodły się
make: *** [priv/line.so] Błąd 1 # here is Makefile error translated to Polish locale
could not compile dependency :scenic_math, "mix compile" failed. You can recompile this dependency with "mix deps.compile scenic_math", update it with "mix deps.update scenic_math" or clean it with "mix deps.clean scenic_math"
==> scenic_example
** (Mix) Could not compile with "make" (exit status: 2).
You need to have gcc and make installed. If you are using
Ubuntu or any other Debian-based system, install the packages
"build-essential". Also install "erlang-dev" package if not
included in your Erlang/OTP version. If you're on Fedora, run
"dnf group install 'Development Tools'".

Found problem

I have checked twice to be sure, but from what I can see I think that you have simply forgot to clean project after publish its hex release. Here are files which I think should not be included:

  1. deps/scenic_math/c_src/line.o
  2. deps/scenic_math/c_src/matrix.o

Current workaround

If you can confirm that in point 2 you are seeing o files you can simply remove them by running: rm deps/scenic_math/c_src/*.o (assuming that scenic_math is your project hex dependency). After it you can go to step 3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.