Thanks for all the info :slight_smile: .

I will very likely want to add some operators so I guess I’ll have to install everything.
I’ll update this thread if/when I run into any issue.

1 Like

Hi,

I have tried getting the development environment working on OS X (I’m on 10.11.6). I have fixed a few errors but still can’t get it to fully build and install. I followed the instructions in the readme:

To install on OSX in ~/avr32-tools:

brew install mpfr gmp libmpc texinfo dfu-programmer
git clone https://github.com/monome/avr32-toolchain.git
cd avr32-toolchain
PREFIX=$HOME/avr32-tools make install-cross

I think it would be helpful if there were a pre-built OS X version.

What were the errors? Let’s see if we can get them sorted.

And do you have have the Xcode command line tools installed?

If you encounter an error make sure you have the Xcode command line tools installed. They can be installed by typing xcode-select --install (if they are already installed it will print an error message).

Mostly path errors. It couldn’t find gmp and mpfr after using brew to install, so I added things like --with-gmp="/usr/local" and that got me a bit farther.

I have tried the xcode-select command line install, but I keep getting an error that says

Can't install the software because it is not currently available from the Software Update server.

(??). I have xcode installed though, so I’m not sure if I’m missing stuff.

Have you got the latest Xcode installed via the Mac App Store? If not, do that before trying xcode-select --install again.

Also, running brew doctor might get you some info.

I think we need the command line tools installed as the install script uses pkg-config to locate libraries. So we should solve that issue first.

Ok. So brew doctor says I don’t have the CLTs installed. Still cannot install them though, not sure why.

There’s a new version of Xcode available now, so maybe you need to update that first?

I don’t think it’s letting me because I’m still on el capitan? I downloaded the command line tools for Xcode 8.2 via developer.apple.com and they are installing now.

Yes it is working now. Sorry to bother folks :wink:

2 Likes

Glad you’ve got it working!

After digging through the github repo and doing some docs while looking through source, I would now like to start building the firmware and maybe noodling around with some code. Has anyone written a ā€œBuilding Ansible from scratchā€ post? I can’t seem to find one. If none exists, i’ll take notes while i’m fumbling my way through it and try to get a post up if I am successful.

I started with the instructions on github here:

But, after following the instructions in the readme, it is failing to compile in a debian environment on my windows 10 machine. So, many possible points of failure :slight_smile: Is anyone else doing development on a windows machine? Any hints to bootstrapping stuff?

If someone can point me in the right direction I would be more than happy updating some documentation for future noobs.

1 Like

Thanks to whomever moved my question into the correct thread! @scanner_darkly apparently I should have talked to you about windows 10 dev at the synth meet on sunday :slight_smile:

Running this command:

PREFIX=$HOME/avr32-tools make install-cross

Here is where the makefile dies:

Makefile:3891: recipe for target 'doc/gcc.info' failed
make[3]: *** [doc/gcc.info] Error 1
make[3]: *** Waiting for unfinished jobs....
/bin/bash ../../../gcc-4.4.7/gcc/../move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
rm cpp.pod gcc.pod
make[3]: Leaving directory '/home/matthew/avr32-toolchain/build/gcc/gcc'
Makefile:4857: recipe for target 'all-gcc' failed
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory '/home/matthew/avr32-toolchain/build/gcc'
Makefile:734: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/matthew/avr32-toolchain/build/gcc'
Makefile:472: recipe for target 'stamps/build-gcc' failed
make: *** [stamps/build-gcc] Error 2

This is following the Windows steps right?

cd
git clone https://github.com/scanner-darkly/avr32-toolchain
cd avr32-toolchain
PREFIX=$HOME/avr32-tools make install-cross

Yeah did the full thing up to that point, in a clean home directory.

i was hoping @sam would comment - i have a very limited knowledge of bash so won’t be much help unfortunately. one question - are you trying to build the firmware or the docs?

Firmware.

The goal is to start creating grid apps for Ansible. It looks like the first step to doing Anisble development is to get the avr tool chain up and running? That is what I am trying. If there is a different path to writing and then pushing a custom firmware in to ansible I am all ears :slight_smile:

yep, you just need to follow the steps outlined here: https://github.com/monome/libavr32
i followed those steps exactly when setting up my laptop and i’m able to build teletype/ansible/trilogy firmwares on it.

are you running make from src folder or from ansible root folder?

Yeah thats exactly what I am following. Basically doing those exact steps and failing on

PREFIX=$HOME/avr32-tools make install-cross

with the spew posted above.

I’m running a debian bash shell on windows 10.

yeah, not really sure what to try next, hopefully @sam will have some ideas.

the only thing i can think of - maybe double check that this git clone executed successfully:
git clone https://github.com/scanner-darkly/avr32-toolchain