Git Product home page Git Product logo

Comments (7)

bollu avatar bollu commented on May 12, 2024

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.

cobbpg avatar cobbpg commented on May 12, 2024

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.

bollu avatar bollu commented on May 12, 2024

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.

csabahruska avatar csabahruska commented on May 12, 2024

if you use it from github then try to install it with -fexample

cabal install -fexample

from lambdacube-edsl.

bollu avatar bollu commented on May 12, 2024

Nope, I'm installing it using Cabal (hackage). Same error, unfortunately. Any idea where it might be going wrong?

from lambdacube-edsl.

csabahruska avatar csabahruska commented on May 12, 2024

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.

bollu avatar bollu commented on May 12, 2024

Thanks a ton for the detailed instructions! I got it up and running :) Really appreciate it.

from lambdacube-edsl.

Related Issues (8)

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.