boydm / scenic_math Goto Github PK
View Code? Open in Web Editor NEWMath library supporting Scenic
License: Apache License 2.0
Math library supporting Scenic
License: Apache License 2.0
Hey, I just wanted to try scenic
, but I have a few problems with it.
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.
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/
Follow tutorial by running mix scenic.run
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)
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'".
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:
deps/scenic_math/c_src/line.o
deps/scenic_math/c_src/matrix.o
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.