I downloaded clarinet from here and am following the installation guide, however I get this error when installing on a raspberry pi:
failed to add native library/home/pi/clarity/clarinet/target/release/gn_out/obj/librusty_v8.a: file too small to be an archive
Does anyone know how to fix this/install clarinet on a raspberry pi?
without knowing much about your environment, to build on arm, there are few things you should be aware of:
there is no musl support, clang is probably best (https://github.com/denoland/rusty_v8/issues/49, I know it says x86_64, but probably same issues on arm)
there is no prebuilt arm binaries (https://github.com/denoland/rusty_v8/releases/)
so you'll probably need to build rusty_v8 from source
Related
I followed a blog titled Creating an Electron Application for the Raspberry Pi, regarding starting an Electron app in Raspberry Pi using the Buster OS and got it to compile.
But when it came to building the application, using the electron-builder, I keep getting the error of cannot execute... after running the command electron-builder --dir --armv7l --linux deb and can't figure what the issue is. I've attached the error
Sorry to be 6 months late to the party, but I also just tried to create an Electron app to run on the Raspberry Pi.
It turns out that while Electron runs fine on Arm processors, there are a bunch of problems with building an Electron app via electron-builder on an Arm processor.
The error that you are seeing is just the opening of the rabbit-hole.
Most of the issues appear to be due to electron-builder having apparently been implemented on an x86 machine, with no real care having been taken to make sure that it works on any other architecture - x86 is just pretty-much assumed.
So, for me, the answer was to build the Arm target on an x86 Linux machine, using exactly the same command-line that you used.
So far, I have found that I can build for OS X and Windows on OS X, for Linux x86, Linux Arm, OS X, and Windows on Linux x86. I don't have Windows machine, so I'm not sure what actually works there.
Code signing is yet another rabbit hole....
Has anyone managed to run scrapy-splash on raspberry pi? It seems that I need to build pyqt5 libraries for armv7 architecture, but I don't have experience in this field
I see that I can get a pre-built version of Swift 4.1.2 from swift-arm.com: Swift 4.1.2 Updated For RaspberryPi 2/3
However, I'm inherently distrusting of anonymously posted binaries, and would like to understand how I can build it myself.
I also want (or think I want) to keep using Raspbian, rather than switch to Ubuntu.
If you go to https://github.com/uraimo/buildSwiftOnARM you will find all the info you need to build your own Swift on Raspbian.
There is also an updated Repository for Swift installs on Arm Devices including the Raspberry Pi. - https://swift-arm.com/2019/01/07/official-swift-arm-community-releases/
The Raspbian builds on the repo are from uraimo that I have packaged myself.
I understand your "inherently distrusting" but these are not anonymously posted binaries but the work of the "swift on arm" community.
You are welcome to join the swift-arm slack and talk to the people doing the building. They are more than happy to help you achieve your own builds.
https://launchpass.com/swift-arm
Neil.
I started playing around with Adacore Gnat 2016 for Raspberry Pi. After a few trivial tests on the Raspberry Pi 2 I switched to the Raspberry Pi Zero W and everything failed. I was a bit naive and completely ignored that there is an ARMv7 on the RPi 2 while it is an ARMv6 on the RPi Zero.
Now I'm wondering whether it would be possible to rebuild Adacore Gnat for ARMv6 and the RPi Zero.
Could anyone give me a hint? Or has anyone done it before?
As you have discovered, the AdaCore GNAT GPL only works for Raspberry Pi 2 and 3. But included in Raspbian, there is a native FSF GNAT toolchain, see https://www.makewithada.org/entry/ada_linux_sensor_framework. Will that work for you?
It is possible to recompile for ARMv6. The sources can be found in the same place as the binary you already downloaded. Cross-compiling is a bit of a hassle, but is doable with patience following the instructions, see e.g. https://solarianprogrammer.com/2017/12/07/raspberry-pi-raspbian-compiling-gcc/ for ARMv6 example. Download the GNAT source and follow the instructions there, e.g add 'ada' to --enable-languages in the example above.
I have a desktop application (built with NW.js and the node-webkit-builder) that runs smoothly on Windows and OS X, however, I can't seem to open the executable on the Raspberry Pi. The NW.js builder outputs the 32- and 64-bit Linux distributions, as well, that I assume should operate on Raspbian or Ubuntu MATE. However, I keep getting the error:
cannot open the application since there isn't a readable executable.
Even after chmod +x the application, it doesn't work.
raspberry pi use arm architecture, you may checkout this: https://github.com/toxygen/armhf-node-webkit
Rasp Pis are using ARM processors and not the x32 and x64 processors the NW.js binaries support.
You will need to download a prebuilt for the ARM or build it yourself.
Here is a link to a prebuilt for 0.12.0. You will package your app just like you would on a x32/x64 machine.
Unfortunately ARM is still not an officially supported platform and if you wish to have prebuilts you will have to depend on community members/contributors.
You need the binary port of NW.js (node-webkit) for Raspberry Pi.
I have just created a repository with the node-webkit binary port that runs on Raspbian, tested and working on Raspberry Pi 1 and Raspberry Pi 3 so it is ARMv6 and ARMv7 compatible.
Here you can check it: https://github.com/jalbam/nwjs_rpi