Giter VIP home page Giter VIP logo

Comments (12)

boydm avatar boydm commented on July 16, 2024

I'll dig into it.

from scenic.

boydm avatar boydm commented on July 16, 2024

Which font are you loading?

from scenic.

boydm avatar boydm commented on July 16, 2024

This should be fixed in 0.8.0. Was a legit bug in the scenic_driver_glfw driver.

from scenic.

boydm avatar boydm commented on July 16, 2024

If that doesn't fix it, please let me know.

from scenic.

tcoopman avatar tcoopman commented on July 16, 2024

I wanted to take a look at it, but I see that 0.8 isn't published on hex?
I've tried using the latest masters but got this compilation error:

Erlang/OTP 21 [erts-10.0.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

==> scenic_sensor
Compiling 1 file (.ex)
Generated scenic_sensor app
==> scenic
Compiling 78 files (.ex)
Generated scenic app
==> scenic_driver_glfw
mkdir -p priv/prod
cc -O3 -std=c99 `pkg-config --static --cflags glfw3 glew` -fPIC -o priv/prod/scenic_driver_glfw c_src/main.c c_src/comms.c c_src/nanovg/nanovg.c c_src/utils.c c_src/render_script.c c_src/tx.c `pkg-config --static --libs glfw3 glew` -lGL -lm -lrt
c_src/render_script.c:102:36: error: ‘M_PI’ undeclared here (not in a function); did you mean ‘NVG_PI’?
   static const float        TAU  = M_PI * 2;
                                    ^~~~
                                    NVG_PI
make: *** [Makefile:43: priv/prod/scenic_driver_glfw] Error 1
could not compile dependency :scenic_driver_glfw, "mix compile" failed. You can recompile this dependency with "mix deps.compile scenic_driver_glfw", update it with "mix deps.update scenic_driver_glfw" or clean it with "mix deps.clean scenic_driver_glfw"
==> scenic_2048
** (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'".

from scenic.

boydm avatar boydm commented on July 16, 2024

tcoopman: what OS are you using?

from scenic.

boydm avatar boydm commented on July 16, 2024

Actually, just try it from master again please. (and tell me which OS you are using). I switched to NVG_PI, which should be defined.

from scenic.

tcoopman avatar tcoopman commented on July 16, 2024

I'm on Archlinux. Latest master fixes the compiling error and the font issue.
Thanks!

from scenic.

boydm avatar boydm commented on July 16, 2024

Yay! Thank you for letting me know.

I can already see that I'm going to have a whole pile of VMs with different builds of Linux in them...

from scenic.

tcoopman avatar tcoopman commented on July 16, 2024

I think you could get a long way with some docker images?

from scenic.

boydm avatar boydm commented on July 16, 2024

Maybe? How does docker deal with apps that need to open a windows and draw to the graphics card? I've just assumed it's for server-style command-line apps with no UI. Will admin I didn't actually try...

from scenic.

tcoopman avatar tcoopman commented on July 16, 2024

It is possible to run X within a docker container. Basically you share the X11 socket with the container and use that.
I haven't used it myself either, so not sure how easy/hard it is and not sure how travis handles it.

from scenic.

Related Issues (20)

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.