• Software
  • Include file math_neon.h missing

Thanks all. Sorry for the late reply, I've been in transit. Anyhow, the latest suggestion helped, but there are still library problems. And I'm unclear on what @AndyCap means by "all the includes". I think I'm better off waiting until @AndyCap gets back and can take a look at this. I'll happily test drive the new transfer script and Eclipse project file.

In the meantime, I can easily keep myself busy looking into BLE libraries/drivers and see if I can get a basic BLE example working on the Bela image on the Beagleboard. I've done some quick research and it looks somewhat encouraging. If I can get this working and the Eclipse issue gets resolved, it won't be long before I can be contributing rather than taking up the time of the experts here.

I have one of my Bela updated so will start looking at this, probably be Saturday. Work is a bit mad as I have been away for a while so a bit hard to fit in before then!

Not a problem. I'm temporarily sidetracked by instrument construction and vacation myself. But my enthusiasm for what I can potentially do on Bela is undiminished.

@giuliomoro

We seem to be missing:

pru_rtaudio_irq_bin.h
pru_rtaudio_bin.h

These used to be at:

/root/Bela/build/pru/

I am guessing these includes can't be created on the Eclipse side?

They require pasm, the PRU assembler. You could in principle compile that for Mac, however I think it's easier if you jut take the generated .h files from /root/Bela/build/pru

I agree, but there are not there.

Do you have to build from the web interface at least once for them to be generated?

They will be built the first time you build a project. The rationale here is that they are generated from the pru (.p) files so it's pointless to have them pre-compiled in the repo: that'd be duplicated code that could potentially get out of sync

OK thanks for the info, I will add some text into the Eclipse Wiki to say that you need to build at least once from the Web Interface before running the script.

p.s. Is it safe now to update a Salt to the recent Dev branch?

    @jandyman

    Ok, can you delete your BelaSysroot and run this script:

    BELA_IP=192.168.7.2
    
    mkdir -p /usr/local/linaro/BelaSysroot/usr/xenomai/include
    mkdir -p /usr/local/linaro/BelaSysroot/root/Bela/include
    mkdir -p /usr/local/linaro/BelaSysroot/usr/include/alsa
    mkdir -p /usr/local/linaro/BelaSysroot/usr/local/include
    
    mkdir -p /usr/local/linaro/BelaSysroot/root/Bela/lib
    mkdir -p /usr/local/linaro/BelaSysroot/usr/xenomai/lib
    mkdir -p /usr/local/linaro/BelaSysroot/usr/local/lib
    mkdir -p /usr/local/linaro/BelaSysroot/usr/lib/arm-linux-gnueabihf/
    
    rsync -avz root@$BELA_IP:/usr/xenomai/include /usr/local/linaro/BelaSysroot/usr/xenomai
    rsync -avz root@$BELA_IP:/usr/include/alsa /usr/local/linaro/BelaSysroot/usr/include
    rsync -avz root@$BELA_IP:/root/Bela/include /usr/local/linaro/BelaSysroot/root/Bela
    rsync -avz root@$BELA_IP:/root/Bela/build/pru/pru_rtaudio_irq_bin.h /usr/local/linaro/BelaSysroot/root/Bela/include
    rsync -avz root@$BELA_IP:/root/Bela/build/pru/pru_rtaudio_bin.h /usr/local/linaro/BelaSysroot/root/Bela/include
    rsync -avz root@$BELA_IP:/usr/local/include/prussdrv.h /usr/local/linaro/BelaSysroot/usr/local/include
    rsync -avz root@$BELA_IP:/usr/local/include/seasocks /usr/local/linaro/BelaSysroot/usr/local/include
    
     
    rsync -avz root@$BELA_IP:/root/Bela/lib /usr/local/linaro/BelaSysroot/root/Bela
    rsync -avz root@$BELA_IP:/usr/xenomai/lib /usr/local/linaro/BelaSysroot/usr/xenomai
    
    rsync -avz root@$BELA_IP:/usr/local/lib/libpd.* /usr/local/linaro/BelaSysroot/usr/local/lib
    rsync -avz root@$BELA_IP:/usr/local/lib/libseasocks.* /usr/local/linaro/BelaSysroot/usr/local/lib
    rsync -avz root@$BELA_IP:/usr/local/lib/libprussdrv.* /usr/local/linaro/BelaSysroot/usr/local/lib
    
    rsync -avz root@$BELA_IP:/usr/lib/arm-linux-gnueabihf/libsndfile.* /usr/local/linaro/BelaSysroot/usr/lib/arm-linux-gnueabihf/
    rsync -avz root@$BELA_IP:/usr/lib/arm-linux-gnueabihf/libasound.* /usr/local/linaro/BelaSysroot/usr/lib/arm-linux-gnueabihf/
    
    rsync -avz root@$BELA_IP:/usr/include/ne10 /usr/local/linaro/BelaSysroot/usr/include
    rsync -avz root@$BELA_IP:/usr/include/math_neon.h /usr/local/linaro/BelaSysroot/usr/include
    
    rsync -avz root@$BELA_IP:/usr/lib/libNE10.* /usr/local/linaro/BelaSysroot/usr/lib
    rsync -avz root@$BELA_IP:/usr/lib/libmathneon.* /usr/local/linaro/BelaSysroot/usr/lib

    Then make sure that the cobalt include is at the top of the include path list for both C and CPP:

    "${SYSROOT}/usr/xenomai/include/cobalt/"

    Then is should all work?

    @giuliomoro

    I have added a merge pull request for the eclipse project changes and also updated the script in my github.

    I ran through the wiki instructions and it all works with these changes.

    7 days later

    I've been on vacation, back this morning. The new shell script along with the modification to the include paths worked! I can now build and after I get caught up I will move on to debugging.

    I did have to change one line in the script file to "BELA_IP=bela.local", since I'm following other instructions to get the BBB talking ethernet over the USB to my mac while using internet sharing for apt-get, etc. In case anyone else has problems and finds themselves reading this thread ...

    AndyCap p.s. Is it safe now to update a Salt to the recent Dev branch?

    go for master, I Just updated some stuff there and it's fairly stable now.