Instructions: Compiling VESC's BLDC Tool on openSUSE

Lightweight / Folding / Portable EVs - seats optional
Post Reply
RideTheIon   10 mW

10 mW
Posts: 24
Joined: May 05 2015 6:29am
Location: Finland

Instructions: Compiling VESC's BLDC Tool on openSUSE

Post by RideTheIon » Nov 03 2015 2:15pm

If you're an openSUSE user and itching to configure your VESC, you'll find this post useful.

Compiling bldc-tool on openSUSE 13.X / enterprise SUSE 12 is fairly straight forward, once you get the Qt5 environment setup.
The biggest trip-up is that openSUSE's qmake only produces Qt4 makefiles.
Adding the option flag will only get you the error “Unknown option -qt=qt5”.
OpenSUSE has a separate qmake for Qt5 that is named qmake-qt5.
If you only install the Qt5 development packages below, your system won't even have the wrong qmake-program installed.

Code: Select all

## Compile BLDC-tool

# Add yourself to the dialout group to access the USB port of the ESC without being root
sudo usermod -G dialout $USER

# Do the rest as root
su -

# Uninstall modemmanager 
zypper remove ModemManager

# Install dependencies
zypper install patterns-openSUSE-devel_qt5 libqt5-creator libqt5-qtserialport-devel libudev-dev

# Install git
zypper install git-core

# Get source and compile
cd /usr/src/
mkdir BLDC
cd BLDC
git clone https://github.com/vedderb/bldc-tool.git bldc-tool
cd bldc-tool
qmake-qt5
make

# Check binary and dependencies
readelf -h BLDC_Tool
ldd -d BLDC_Tool

# Install
cp -p ./BLDC_Tool /usr/bin/

# Leave su root
exit
To run the tool, open a terminal as the non-privileged user and run the command “BLDC_Tool”.

vedder   100 W

100 W
Posts: 249
Joined: Nov 05 2011 9:37pm

Re: Instructions: Compiling VESC's BLDC Tool on openSUSE

Post by vedder » Nov 05 2015 7:15am

Thanks for posting! I didn't knot that suse had a different version of qmake, good to know.

I should really make a forum dedicated to the VESC some time. The community is growing all the time and I think when the FOC implementation starts to mature even more people will be interested.
Some of my projects: http://vedder.se
Support my open source ESC development with a small donation

torqueboards   100 MW

100 MW
Posts: 2940
Joined: May 27 2013 10:02pm
Location: San Francisco, CA
Contact:

Re: Instructions: Compiling VESC's BLDC Tool on openSUSE

Post by torqueboards » Nov 05 2015 10:06am

VESC forum would be awesome :) You should make it on your site.
DIYElectricSkateboard.com Electric Skateboard Kits

rmrf   10 W

10 W
Posts: 77
Joined: Jul 06 2015 2:39pm

Re: Instructions: Compiling VESC's BLDC Tool on openSUSE

Post by rmrf » Nov 06 2015 4:11am

No need to make a forum, all infrastructure is already there on GitHub. You can write nice Wiki documentation there (and other can also contribute). For problem solving there is "Issues" section. Discussions are good here on endless-sphere. Or do you mean create endless-sphere specific section called "VESC"? That would be nice, I guess.

RideTheIon   10 mW

10 mW
Posts: 24
Joined: May 05 2015 6:29am
Location: Finland

Re: Instructions: Compiling VESC's BLDC Tool on openSUSE

Post by RideTheIon » Nov 06 2015 5:38am

Seeing as VESC can be used in E-skate/mountainboard, E-bikes, rc-cars, ect, it would be best if VESC had its own forum or section.
Most of the information about hooking up and configuring VESC is generic for all uses.

In a perfect world, people would write their answers to the new forum in a wiki compatible way.
Adding a little bit of general info and background. That way it would be easy for someone to copy-paste the answer directly to the github wiki or FAQ without rewriting the answer :idea:

Post Reply