VESC BLDC-tool and BLDC firmware compilation on Mac

erwincoumans

100 W
Joined
Apr 2, 2015
Messages
141
With the update of VESC BLDC-tool to use qt serial port, the build broke on Mac.
Previously it build fine on my Mac, when it was using Benjamin's own serial port implementation, instead of QT's one.

On Ubuntu/Linux, you can use
Code:
sudo apt-get install build-essential qt-sdk openocd git libudev-dev libqt5serialport5-dev
How do we install qt serial port for Mac? Is there a Homebrew/brew command just to install qt serial port?

Thanks,
Erwin
 
Never mind, re-install qt5 and linking it worked:

Code:
git clone https://github.com/vedderb/bldc-tool
brew install qt5
brew link qt5 --force
cd bldc-tool
qmake
make

To compile the firmware on Mac OSX, I used:
Code:
brew tap PX4/homebrew-px4
brew install gcc-arm-none-eabi-49
sudo brew link gcc-arm-none-eabi-49
cd bldc-firmware
make

Then to upload the firmware, openocd needs to be installed
Code:
brew install libftdi
sudo brew link libftdi
brew install libusb
sudo brew link libusb-compat
brew install openocd
sudo brew link openocd
cd bldc-firmware
make upload
 
Back
Top