Coder Social home page Coder Social logo

Running in Raspberry Pi about packer HOT 4 CLOSED

nodegui avatar nodegui commented on July 17, 2024
Running in Raspberry Pi

from packer.

Comments (4)

elviosak avatar elviosak commented on July 17, 2024

I dont think it has support for arm, u would need to at least compile qode for arm since it is node runtime with some qt stuff, probably other things too, not sure if addon api works on pi either

from packer.

a7ul avatar a7ul commented on July 17, 2024

Yes, two things.

  1. Qode https://github.com/nodegui/qode (which is a lightly modified nodejs runtime) used to run nodegui apps instead of nodejs. This needs to be compiled for raspberry pi. You can find the instructions there.

  2. You need to make sure you are running NodeGui apps against the Qt compiled for raspberry pi.
    To do this you need to set env variable QT_INSTALL_DIR or change the cmake file that comes with nodegui to point to the custom Qt installation.

Although not tested this should be enough to make it work.

PS: We are currently not planning on supporting Raspberry Pi. So I will close this issue.

from packer.

kkcy avatar kkcy commented on July 17, 2024

After followed the first step, we not able to proceed and stuck at this step as we do not able to find the directory structure shown below:
Building Qode. Run QT_INSTALL_DIR=<path_to_qt_install_dir>/5.12.4/gcc_64 node build.js

Please guide us.
List of make install output we have:

parallels@parallels-Parallels-Virtual-Platform:~/raspi$ ls qt5*
qt5:
bin  lib  mkspecs

qt5pi:
bin  doc  include  lib  plugins  qml  translations

from packer.

a7ul avatar a7ul commented on July 17, 2024

Hi @kkcy You might need to set TARGET_ARCH= and HOST_ARCH= accordingly
for raspi i think the target arch would be arm but you should double check with nodejs build guide.

For starters, try building nodejs from source on the target machine. If nodejs can build successfully then qode can aswell. Qode is just nodejs + dynamically linked Qt.

Also check the build.js file for more details.

from packer.

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.