asivitz / hickory Goto Github PK
View Code? Open in Web Editor NEWTools for building 3D interactive programs in Haskell
Tools for building 3D interactive programs in Haskell
I don't know why this isn't being found as it seems like something builtin. Anyways here is the error message in full. Hope you can give me advice on how to resolve this. The system I use is arch linux with ghc 9.0.2. I'm compiling from the clone I made of your repository.
Hickory > [54 of 57] Compiling Hickory.Vulkan.Text
Hickory >
Hickory > /home/cmo/code/Hickory/core/Hickory/Vulkan/Text.hs:35:16: error:
Hickory > * Exception when trying to run compile-time code:
Hickory > glslangValidator: startProcess: posix_spawnp: does not exist (No such file or directory)
Hickory > Code: template-haskell-2.16.0.0:Language.Haskell.TH.Quote.quoteExp
Hickory > vert
Hickory > "\n
Hickory > \ #version 450\n
Hickory > \ #extension GL_EXT_scalar_block_layout : require\n
Hickory > \n
Hickory > \ layout(location = 0) in vec3 inPosition;\n
Hickory > \ layout(location = 3) in vec2 inTexCoord;\n
Hickory > \n
Hickory > \ layout(location = 1) out vec2 texCoord;\n
Hickory > \n
Hickory > \ struct Uniforms\n
Hickory > \ {\n
Hickory > \ mat4 modelViewProjMatrix;\n
Hickory > \ vec4 color;\n
Hickory > \ vec4 outlineColor;\n
Hickory > \ float outlineSize;\n
Hickory > \ float sdfPixelRange;\n
Hickory > \ vec2 tiling;\n
Hickory > \ };\n
Hickory > \n
Hickory > \ layout (push_constant) uniform constants { uint uniformIdx; } PushConstants;\n
Hickory > \ layout (row_major, scalar, set = 0, binding = 0) uniform UniformBlock { Uniforms uniforms [128]; } uniformBlock;\n
Hickory > \n
Hickory > \ void main() {\n
Hickory > \ Uniforms uniforms = uniformBlock.uniforms[PushConstants.uniformIdx];\n
Hickory > \ gl_Position = uniforms.modelViewProjMatrix * vec4(inPosition, 1.0);\n
Hickory > \ texCoord = uniforms.tiling * inTexCoord;\n
Hickory > \ }\n
Hickory > \n"
Hickory > * In the quasi-quotation:
Hickory > [vert|
Hickory > #version 450
Hickory > #extension GL_EXT_scalar_block_layout : require
Hickory >
Hickory > layout(location = 0) in vec3 inPosition;
Hickory > layout(location = 3) in vec2 inTexCoord;
Hickory >
Hickory > layout(location = 1) out vec2 texCoord;
Hickory >
Hickory > struct Uniforms
Hickory > {
Hickory > mat4 modelViewProjMatrix;
Hickory > vec4 color;
Hickory > vec4 outlineColor;
Hickory > float outlineSize;
Hickory > float sdfPixelRange;
Hickory > vec2 tiling;
Hickory > };
Hickory >
Hickory > layout (push_constant) uniform constants { uint uniformIdx; } PushConstants;
Hickory > layout (row_major, scalar, set = 0, binding = 0) uniform UniformBlock { Uniforms uniforms [128]; } uniformBlock;
Hickory >
Hickory > void main() {
Hickory > Uniforms uniforms = uniformBlock.uniforms[PushConstants.uniformIdx];
Hickory > gl_Position = uniforms.modelViewProjMatrix * vec4(inPosition, 1.0);
Hickory > texCoord = uniforms.tiling * inTexCoord;
Hickory > }
Hickory >
Hickory > |]
Hickory > |
Hickory > 35 | vertShader = [vert|
Hickory > | ^^^^^^...
Hickory >
Progress 3/7
-- While building package Hickory-0.1.0.0 (scroll up to its section to see the error) using:
/home/cmo/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.2.1.0_ghc-8.10.7 --verbose=1 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.2.1.0 build lib:Hickory exe:pack-model --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Hickory looks very cool and innovative; I'd very much love to play around with it! Unfortunately, it seems like the shooter example uses some functions and APIs that are no longer part of the current Hickory, and it fails to build after I pulled the latest master branch.
Specifically, things like withAttrVal
and GlobalSettings
are causing build failures.
Would you mind updating the example when you have the time?
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.