masterq32 / zero-graphics Goto Github PK
View Code? Open in Web Editor NEWApplication framework based on OpenGL ES 2.0. Runs on desktop machines, Android phones and the web
License: MIT License
Application framework based on OpenGL ES 2.0. Runs on desktop machines, Android phones and the web
License: MIT License
I am attempting to build zero-graphics on NixOS, but I'm getting an error from llvm about fixed point multiplication. This is probably an issue with zig or clang.
0.10.0-dev.4474+b41b35f57
LLVM Emit Object... LLVM ERROR: Unable to expand fixed point multiplication.
error: demo_application...
error: The following command terminated unexpectedly:
/nix/store/nfhlbgdsi2d5abl22pgllcfl12mq7hb8-zig-0.10.0-dev.4474+b41b35f57/bin/zig build-lib /home/desttinghim/Code/random/zero-graphics/src/main/wasm.zig -cflags -std=c99 -- /home/desttinghim/Code/random/zero-graphics/src/rendering/stb_truetype.c --cache-dir /home/desttinghim/Code/random/zero-graphics/zig-cache --global-cache-dir /home/desttinghim/.cache/zig --name demo_application -dynamic -fsingle-threaded -target wasm32-freestanding-musl -mcpu generic --pkg-begin application /home/desttinghim/Code/random/zero-graphics/examples/demo-application.zig --pkg-begin zero-graphics /home/desttinghim/Code/random/zero-graphics/src/zero-graphics.zig --pkg-begin zigimg /home/desttinghim/Code/random/zero-graphics/vendor/zigimg/zigimg.zig --pkg-end --pkg-begin ziglyph /home/desttinghim/Code/random/zero-graphics/vendor/ziglyph/src/ziglyph.zig --pkg-end --pkg-begin zigstr /home/desttinghim/Code/random/zero-graphics/vendor/zigstr/src/Zigstr.zig --pkg-begin ziglyph /home/desttinghim/Code/random/zero-graphics/vendor/ziglyph/src/ziglyph.zig --pkg-end --pkg-end --pkg-begin TextEditor /home/desttinghim/Code/random/zero-graphics/vendor/text-editor/src/TextEditor.zig --pkg-begin ziglyph /home/desttinghim/Code/random/zero-graphics/vendor/ziglyph/src/ziglyph.zig --pkg-end --pkg-end --pkg-end --pkg-begin zlm /home/desttinghim/Code/random/zero-graphics/vendor/zlm/zlm.zig --pkg-end --pkg-end --pkg-begin application-meta /home/desttinghim/Code/random/zero-graphics/zig-cache/zero-graphics/o/37a97a273e465a12dc388ba9b37251725c277b2e/app-meta.zig --pkg-end --pkg-begin zigimg /home/desttinghim/Code/random/zero-graphics/vendor/zigimg/zigimg.zig --pkg-end --pkg-begin ziglyph /home/desttinghim/Code/random/zero-graphics/vendor/ziglyph/src/ziglyph.zig --pkg-end --pkg-begin zigstr /home/desttinghim/Code/random/zero-graphics/vendor/zigstr/src/Zigstr.zig --pkg-begin ziglyph /home/desttinghim/Code/random/zero-graphics/vendor/ziglyph/src/ziglyph.zig --pkg-end --pkg-end --pkg-begin TextEditor /home/desttinghim/Code/random/zero-graphics/vendor/text-editor/src/TextEditor.zig --pkg-begin ziglyph /home/desttinghim/Code/random/zero-graphics/vendor/ziglyph/src/ziglyph.zig --pkg-end --pkg-end -I /home/desttinghim/Code/random/zero-graphics/vendor/stb -I /home/desttinghim/Code/random/zero-graphics/src/scintilla --main-pkg-path /home/desttinghim/Code/random/zero-graphics/src --enable-cache
error: the following build command failed with exit code 6:
/home/desttinghim/Code/random/zero-graphics/zig-cache/o/115dffe9a2cc3ef97671e9e0d4dd066b/build /nix/store/nfhlbgdsi2d5abl22pgllcfl12mq7hb8-zig-0.10.0-dev.4474+b41b35f57/bin/zig /home/desttinghim/Code/random/zero-graphics /home/desttinghim/Code/random/zero-graphics/zig-cache /home/desttinghim/.cache/zig
Instructions for wasm do not seem to work.
zig build install run-wasm
Now visit http://127.0.0.1:8000/index.htm to see the demo.
This creates a web server that serves files from top-level www
directory, but the build process puts files to zig-out/www
directory. Also the file the html file in zig-out/www
is demo_application.htm
, not index.html
.
I guess after cloning the repo you'll need also to run these?
cd zero-graphics
git submodule init
git submodule update
cd vendor/zig-assimp
git submodule init
git submodule update
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.