Comments (12)
I'll dig into it.
from scenic.
Which font are you loading?
from scenic.
This should be fixed in 0.8.0. Was a legit bug in the scenic_driver_glfw driver.
from scenic.
If that doesn't fix it, please let me know.
from scenic.
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.
tcoopman: what OS are you using?
from scenic.
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.
I'm on Archlinux. Latest master fixes the compiling error and the font issue.
Thanks!
from scenic.
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.
I think you could get a long way with some docker images?
from scenic.
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.
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)
- cursor_exit is continually sent when cursor is outside rect HOT 5
- v0.11 - no function clause matching in `Scenic.start_link/1` HOT 22
- Lootie Files HOT 2
- Handle a non-configured assets module HOT 2
- Migrate Math module to Elixir's Math module HOT 2
- Video streaming
- Deeply nested groups do not get scissored by the upper most group.
- {r, g, b} in theme throws color error when used in fill with opacity.
- primitives outside of scissor region are not removed from the input list HOT 6
- Starting the app in full screen HOT 2
- `Scene.release_input/2` may not be working HOT 2
- Mouse events for buttons beyond normal 3 do not report uniquely.
- Proposal: embed graph within scene struct HOT 6
- How to use custom fonts HOT 1
- rapid redraws of the graph have tearing HOT 24
- Text paths HOT 1
- ECS Pattern HOT 4
- Further theme work HOT 2
- Window on Linux does not get repainted HOT 1
- Not receiving input HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scenic.