GithubHelp home page GithubHelp logo

Comments (9)

ChristianFrisson avatar ChristianFrisson commented on August 29, 2024 2

@ankevanoosterhout @Maxw3llGM I have proposed pull request #3 to fix some installation errors (destination branch: https://github.com/ankevanoosterhout/Feelix2.0/tree/GSoC_Dev_Branch).

Two more comments:

  1. I think that installing angular-cli globally npm install -g @angular/cli is not needed if we run npm run build with angular-cli installed locally for Feelix instead of running ng build as recommended in the README.md.
  2. With the changes from PR #3, plus an updated version of the serialport package, maybe these instructions from README.md

Run npm install

Remove from node-modules folder the serialport and @serialport folders

Remove the file package-lock.json

Run npm run i to install non-installed modules

could be simplified directly into:

Run npm run i

?

from feelix2.0.

Maxw3llGM avatar Maxw3llGM commented on August 29, 2024 1

I got it finally, I had to add the most recent version of serialport in the package (10.4.0) as it add support for m1

from feelix2.0.

ankevanoosterhout avatar ankevanoosterhout commented on August 29, 2024

Did you start the application with 'npm run electron'?

npm run package-mac is used to package the app after building it to create an installer

Furthermore there might be issues with 'closed-chain-ik' which I installed locally and I haven't updated it on github, I wanted to remove this part for you in a clean branch, but if you want to try to run it you can download it here: https://github.com/gkjohnson/closed-chain-ik-js

from feelix2.0.

Maxw3llGM avatar Maxw3llGM commented on August 29, 2024

I did try to start locally with nom run electron but it gave me an error. Hold on I'll post it, it's another architecture compatibility warning.

from feelix2.0.

Maxw3llGM avatar Maxw3llGM commented on August 29, 2024

npm run electron

[email protected] electron
ng build --base-href ./ && electron .

chunk {main} main.js, main.js.map (main) 1.05 MB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 275 kB [initial] [rendered]
chunk {polyfills-es5} polyfills-es5.js, polyfills-es5.js.map (polyfills-es5) 610 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 213 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 8.43 MB [initial] [rendered]
Date: 2023-05-30T11:54:30.549Z - Hash: c7c27e339b1628fcf79b - Time: 6127ms
App threw an error during load
Error: dlopen(/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node, 0x0001): tried: '/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (no such file), '/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1812)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at bindings (/Users/miu/Feelix_Proj/Feelix2.0/node_modules/bindings/bindings.js:112:48)
at Object. (/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/lib/darwin.js:2:36)

from feelix2.0.

ankevanoosterhout avatar ankevanoosterhout commented on August 29, 2024

What version of electron do you have installed?
It looks like there are still some issues with the serialport module.
Can you try this (again):

  • Remove from node-modules folder the serialport and @serialport folders
  • Remove the file package-lock.json
  • Run npm i to install non-installed modules
  • Run ./node_modules/.bin/electron-rebuild (directly after npm i)

from feelix2.0.

Maxw3llGM avatar Maxw3llGM commented on August 29, 2024

Following the directives it does the same,

Error: dlopen(/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node, 0x0001): tried: '/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (no such file), '/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1812)
at Module.load (internal/modules/cjs/loader.js:992:32)
at Module._load (internal/modules/cjs/loader.js:885:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12633)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at bindings (/Users/miu/Feelix_Proj/Feelix2.0/node_modules/bindings/bindings.js:112:48)
at Object. (/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/lib/darwin.js:2:36)
(node:44947) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See electron/electron#23506 for more information

from feelix2.0.

ankevanoosterhout avatar ankevanoosterhout commented on August 29, 2024

Awesome, this looks great, thanks @ChristianFrisson! I never thought about optimizing this part of the code.., but this would make it a lot more user friendly :)
The local installation of angular-cli is enough I believe indeed,

from feelix2.0.

ChristianFrisson avatar ChristianFrisson commented on August 29, 2024

@ankevanoosterhout @Maxw3llGM Following up over there ankevanoosterhout/Feelix2Dev#1 !

from feelix2.0.

Related Issues (2)

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.