Comments (7)
Actually, ignore this. I was trying to set it up from scratch, but I'm not able to get the "getting started" examples to work at all, so this comes later.
after a successful
cabal install lambdacube-gl
cabal install GLFW-b
Compiling Hello.hs
leads to
Hello.hs:14:8:
Could not find module ‘Paths_lambdacube_samples’
Use -v to see a list of the files searched for.
I'm not sure where the module is being defined. Can I have some help?
from lambdacube-edsl.
Oh, you're looking at the samples for the old EDSL system, which are not compatible with the new GL backend. Check the examples directory within lambdacube-gl
(as the getting started guide suggests just above the screenshot), which should work as advertised.
from lambdacube-edsl.
Okay, new error now. I'm following the getting started guide, at the point where i'm supposed to build Hello.hs
[1 of 1] Compiling Main ( Hello.hs, Hello.o )
Hello.hs:20:26:
No instance for (FromJSON LambdaCube.IR.Pipeline)
arising from a use of ‘decodeStrict’
In the first argument of ‘(<$>)’, namely ‘decodeStrict’
In a stmt of a 'do' block:
Just pipelineDesc <- decodeStrict <$> SB.readFile "hello.json"
In the expression:
do { Just pipelineDesc <- decodeStrict
<$> SB.readFile "hello.json";
win <- initWindow "LambdaCube 3D DSL Hello World" 640 640;
let inputSchema = makeSchema $ ...;
storage <- allocStorage inputSchema;
.... }
It looks like de-serialization isn't happening?
from lambdacube-edsl.
if you use it from github then try to install it with -fexample
cabal install -fexample
from lambdacube-edsl.
Nope, I'm installing it using Cabal (hackage). Same error, unfortunately. Any idea where it might be going wrong?
from lambdacube-edsl.
The -fexample flag will be included in the next release, it's not yet on the hackage version of lambdacube-gl. You have to work from gtihub for now.
install
git clone https://github.com/lambdacube3d/lambdacube-ir.git
cd lambdacube-ir; cabal install; cd ..
git clone https://github.com/lambdacube3d/lambdacube-gl.git
cd lambdacube-gl; cabal install -fexample
run
cd examples; ../dist/build/lambdacube-gl-hello/lambdacube-gl-hello
from lambdacube-edsl.
Thanks a ton for the detailed instructions! I got it up and running :) Really appreciate it.
from lambdacube-edsl.
Related Issues (8)
- Can provide a simple tutorial for build this project HOT 2
- GFLW-b version may need specifying in cabal file. HOT 1
- Conflict: ghc-mod vs. lambdacube-core vs. OpenGLRaw HOT 1
- hStunts vs. Bullet -- link failure HOT 7
- GHC-7.6 broken by GHC-7.8 enablement HOT 3
- Cabal issue installing vect HOT 7
- base==4.6 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 lambdacube-edsl.