Giter Site home page Giter Site logo

build problem about tetris HOT 3 CLOSED

donbright avatar donbright commented on May 12, 2024
build problem

from tetris.

Comments (3)

andrewrk avatar andrewrk commented on May 12, 2024 1

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.

gregorybleiker avatar gregorybleiker commented on May 12, 2024

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.

sskras avatar sskras commented on May 12, 2024

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

@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)

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.