Closed leviathan747 closed 6 years ago
You don't have the compilers installed.
sudo apt-get install build-essential
However, I advise you to use Docker to build it on your PC instead of trying to do it on the Raspberry Pi. Edited: Oops, I didn't see that you're using the Raspberry Pi 1, there are no specific Docker images for your configuration, so you'll have to depend on the native tool option.
Also take a look at the writeups in the docs folder here. There is no TOC so you'll have to searh around.
yeah that is the first thing I thought as well, but I did already do that. gcc works, but arm-linux-gnueabi-gcc cannot be found. I don't know if it needs to be aliased or if it's not installed or just not in my PATH. I modified the makefile to change the C compiler to just "gcc" which got me a little bit further but I got the same python failure.
Hmm. I'm not sure why you'd run into the python error. In the README.md, it says:
You have to take into account that, by default, the preprocessing stage is skipping when compilation is performed on the brick or using Docker. Please set SKIP_PP = 0 in the makefile to allow preprocessing anywhere.
Try setting SKIP_PP=0
, it will avoid triggering yupp, bypassing the source file generation step.
Edit: I've not tried building on the RPi before, are you using the ev3dev RPi image? https://github.com/ev3dev/ev3dev/releases/download/ev3dev-jessie-2017-09-14/ev3dev-jessie-rpi-generic-2017-09-14.zip
It is possible that GCC has the default name of `gcc' instead of the longer name, which is typically used in the Docker image for the cross compiler.
Edit2+: I'm not sure if yupp is dependent on python 3 or not. I'm using the Docker image which installs the default python-dev and swig3.0 packages for Debian on ARM.
I missed that part. I tried setting SKIP_PP to 1 which let me skip the yupp step. It at least let me get through initial build and run the example. Thanks!
Edit: Yes, I'm using that image. Yeah, I had to modify the makefile to use gcc
and ar
for compiling and linking instead of the longer names.
I think yupp requires python 2... there are syntax errors if I try to use python3
I'm having a little trouble getting started. I'm running ev3dev jessie on Raspberry Pi B+ V1.2
After initial setup, when I run
make
in thesource/ev3
directory, this is my output:python version is 2.7.9
Any guidance would be great.