#8 Building on raspberry pi

Closed
opened 4 years ago by topdollar · 5 comments

Hi there, Is it possible to build d-fi for raspberry pi? i'm using a pi4 2gb version, and i tried to build from source, npm install works fine, but then i'm stuck. I tried this command but no luck

dietpi@DietPi:~/dfi/d-fi$ ./build.sh linux

  • rm -rf build

  • pkg --out-path build package.json --targets node10-linux-x86,node10-linux-x64,node10-alpine-x64,node10-win-x86,node10-win-x64,node10-macos-x86,node10-macos-x64

./build.sh: line 8: pkg: command not found

Any help ?

Edit: dietpi@DietPi:~/dfi/d-fi$ node -v

v10.15.0

dietpi@DietPi:~/dfi/d-fi$ npm -v

6.4.1

Hi there, Is it possible to build d-fi for raspberry pi? i'm using a pi4 2gb version, and i tried to build from source, npm install works fine, but then i'm stuck. I tried this command but no luck dietpi@DietPi:~/dfi/d-fi$ ./build.sh linux + rm -rf build + pkg --out-path build package.json --targets node10-linux-x86,node10-linux-x64,node10-alpine-x64,node10-win-x86,node10-win-x64,node10-macos-x86,node10-macos-x64 ./build.sh: line 8: pkg: command not found Any help ? Edit: dietpi@DietPi:~/dfi/d-fi$ node -v v10.15.0 dietpi@DietPi:~/dfi/d-fi$ npm -v 6.4.1
sayem314 commented 4 years ago
Owner

I’m not so sure about raspberry pi but you can try this way for building for armv7:

sudo npm i -g pkg
pkg --out-path build package.json --targets node10-linux-armv7
I’m not so sure about raspberry pi but you can try this way for building for armv7: ``` sudo npm i -g pkg pkg --out-path build package.json --targets node10-linux-armv7 ```
topdollar commented 4 years ago
Poster

That did not work, would be awesome if you can build a version for the pi.

That did not work, would be awesome if you can build a version for the pi.
sayem314 commented 4 years ago
Owner

What's wrong with npm i d-fi -g and then running via d-fi command?

What's wrong with `npm i d-fi -g` and then running via `d-fi` command?
topdollar commented 4 years ago
Poster

These two commands worked:

npm i d-fi -g

node d-fi

But still some visual glitches in the terminal. Thanks for your help

I think you should add support for the pi and for an android version, your app is so much better than smloadr.

Thanks again

These two commands worked: npm i d-fi -g node d-fi But still some visual glitches in the terminal. Thanks for your help I think you should add support for the pi and for an android version, your app is so much better than smloadr. Thanks again
sayem314 commented 3 years ago
Owner

v2 beta is now visually improved. Let me know if you still see glitches.

v2 beta is now visually improved. Let me know if you still see glitches.
Sign in to join this conversation.
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.