Comments (3)
3dbb8de should address the issue in the short term. In the long term we will switch to using the zig package manager and it will work everywhere the same way without needing to install stuff with vcpkg.
from tetris.
I'm also having build problems on windows with VS2019 while running zig build --verbose -Dwindows=true
.\src\c.zig:1:20: error: C import failed
pub usingnamespace @cImport({
^
.\zig-cache\o\620577f480eb749eeb9c47b56536cb46\cimport.h:1:10: note: 'epoxy/gl.h' file not found
#include <epoxy/gl.h>
^
.\src\main.zig:49:10: error: container 'c' has no member called 'glfwSetErrorCallback'
_ = c.glfwSetErrorCallback(errorCallback);
I'm pretty sure its because one of the dependencies referenced in the readme are missing, but nor sure how to install them...
from tetris.
Right, I get the same on Windows:
C:\Users\hp\src\tetris>zig build play
.\src\c.zig:1:20: error: C import failed
pub usingnamespace @cImport({
^
.\zig-cache\o\64bbc14e489401bc62663a6d367cbacd\cimport.h:1:10: note: 'epoxy/gl.h' file not found
#include <epoxy/gl.h>
^
.\src\main.zig:49:10: error: container 'c' has no member called 'glfwSetErrorCallback'
_ = c.glfwSetErrorCallback(errorCallback);
^
tetris...The following command exited with error code 1:
C:\Users\hp\scoop\apps\ziglang\current\zig.exe build-exe C:\Users\hp\src\tetris\src\main.zig -cflags -std=c99 -- C:\Users\hp\src\tetris\stb_image-2.22\stb_image_impl.c -lc -lglfw -lepoxy --cache-dir C:\Users\hp\src\tetris\zig-cache --global-cache-dir C:\Users\hp\AppData\Local\zig --name tetris -I C:\Users\hp\src\tetris\stb_image-2.22 --enable-cache
error: the following build command failed with exit code 1:
C:\Users\hp\src\tetris\zig-cache\o\67f783fcabcc4fb41ea05de75520fe1f\build.exe C:\Users\hp\scoop\apps\ziglang\current\zig.exe C:\Users\hp\src\tetris C:\Users\hp\src\tetris\zig-cache C:\Users\hp\AppData\Local\zig play
@gregorybleiker, I think you're right about dependencies being absent:
Dependencies
- Zig compiler - use the debug build.
- libepoxy
- GLFW
@andrewrk, how does one install libepoxy
and GLFW
for the project on Windows?
EDIT: Maybe comments from @gregorybleiker and me are different problem from the originally reported one.
from tetris.
Related Issues (13)
- error: no member named 'rand' in '/usr/lib/zig/std/index.zig' HOT 4
- LLVM error when building the game HOT 2
- `error: use of undeclared identifier '_'` with zig 0.4.0 HOT 2
- error: container 'builtin' has no member called 'Environ' HOT 4
- MIT or CC0 license? HOT 1
- Status of this project? HOT 1
- Refactoring discussion HOT 2
- Fails building with zig 0.10 HOT 4
- Broken Youtube link in README and repo description HOT 4
- A warning against using trademarked names
- Can you help provide the dependent versions required to successfully compile tetris? HOT 1
- Unifying similar code for particles and falling blocks HOT 2
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 tetris.