Giter Site home page Giter Site logo

Comments (8)

nitnelave avatar nitnelave commented on May 14, 2024

Did you follow the compilation instructions on the readme? In particular, you need to compile the app, otherwise you have nothing to serve for the frontend.
I think you're just a ./app/build.sh away from happiness.

from lldap.

nitnelave avatar nitnelave commented on May 14, 2024

If that fixes your problem, then I'll have a look at why the files are not in the release tar.

from lldap.

Cyrix126 avatar Cyrix126 commented on May 14, 2024

Did you follow the compilation instructions on the readme? In particular, you need to compile the app, otherwise you have nothing to serve for the frontend. I think you're just a ./app/build.sh away from happiness.

I did that for the build for aarch64. But doing it again I found that I did not saw an error:

[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 1.31s
[WARN]: :-) origin crate has no README
[INFO]: Installing wasm-bindgen...
Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target!
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.

./main.js → ./pkg/bundle.js...
created ./pkg/bundle.js in 948ms

Maybe related to rustwasm/wasm-pack#1102

cargo install wasm-pack

    Updating crates.io index
     Ignored package `wasm-pack v0.10.2` is already installed, use --force to override

from lldap.

Cyrix126 avatar Cyrix126 commented on May 14, 2024

I re-installed wasm-pack with
cargo install wasm-pack --git https://github.com/Nasafato/wasm-pack --rev 3122e7760051904394da3f6f79903b3036403377

But got another error:

./app/build.sh                                                                                                                                                          <main>
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
    Finished release [optimized] target(s) in 0.83s
[WARN]: :-) origin crate has no README
[INFO]: Installing wasm-bindgen...
Tool: wasm-bindgen, Version: "0.2.76"
Tool: wasm-opt, Version: "version_78"
[INFO]: Optimizing wasm binaries with `wasm-opt`...
Error: Exec format error (os error 8)
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.

./main.js → ./pkg/bundle.js...

from lldap.

Cyrix126 avatar Cyrix126 commented on May 14, 2024

Just tried the x86_64 release and got the same error (on distrib kde neon).

from lldap.

Cyrix126 avatar Cyrix126 commented on May 14, 2024

ok never mind, I'm don't know how to read, the folder app wasn't next to the binary.

You can then get the compiled server binary in target/armv7-unknown-linux-musleabihf/release/lldap and the various needed files (index.html, main.js, pkg folder) in the app folder. Copy them to the Raspberry Pi (or other target), with the folder structure maintained (app files in an app folder next to the binary).

from lldap.

nitnelave avatar nitnelave commented on May 14, 2024

I'm glad you got it working! Any idea on how to improve the docs to make it clearer for the next person?

from lldap.

Cyrix126 avatar Cyrix126 commented on May 14, 2024

I'm glad you got it working! Any idea on how to improve the docs to make it clearer for the next person?

I think I did not saw those instructions the first time because they are in the "cross compilation" section and not in the "from source". Because what I did wasn't a cross compilation.

from lldap.

Related Issues (20)

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.