nextron icon indicating copy to clipboard operation
nextron copied to clipboard

How can I use nextron to cross compile to Raspberry Pi and yocto?

Open remendes opened this issue 1 year ago • 1 comments

Have anyone crosscompiled to ARM64 to be used in Raspberry PI?

I need to take my already developed NextJs app, cross compile to ARM64 for Raspberry PI and then add to my yocto toolchain so that I can build an installed image to my SBC. Raspiberry is a development platatform, as my goal is to use a custom ARM board.

I appreciate steps on how to do it....

remendes avatar Sep 13 '23 21:09 remendes

@remendes

I only used Qt/QML and C++ for a Yocto project, I never tried cross-compiling of JS app for ARM arch.

Maybe the same way we do for a Qt project, could work for node.js app.

  • tweaking you .bb recipe as usual. A hint
  • maybe node.js should be supported by your ARM arch or you find a prebuilt image for it. ref -> https://nodejs.org/dist/v18.18.0/node-v18.18.0-linux-arm64.tar.xz
  • and build your yocto image (bb or devTool)
  • and deploy your built

I hope the analogy of Qt will help you in your approach.

bm777 avatar Sep 28 '23 08:09 bm777