You are here

Vesc-Tool Raspbian compatible build

4 posts / 0 new
Last post
mjc60
Offline
Last seen: 4 years 10 months ago
Joined: 2017-09-06 18:27
Posts: 2
Vesc-Tool Raspbian compatible build

As anyone successfully compiled the VESC-Tool for Raspbian (using the Raspberry Pi 3)?  I tried following the instructions provided in the source code, but i'm running into issues when running the ./configure command for qt:

 

../configure -prefix /opt/Qt/5.7-static/ -release -opensource -confirm-license -static -no-largefile -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -no-openssl -qt-pcre -qt-xcb -no-xinput2 -no-glib -no-egl -no-xcursor -no-xfixes -no-xrandr -qt-xkbcommon-x11 -no-pulseaudio -no-alsa -no-compile-examples -no-cups -no-iconv -no-tslib -fontconfig -dbus-linked -qt-xcb -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -no-opengl -no-gstreamer -nomake examples -nomake tests -skip qtwebkit -skip qtwebsockets -skip qtwebkit-examples -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip qtcanvas3d -skip qtconnectivity -skip declarative -skip multimedia -skip quick1 -no-audio-backend -no-xkbcommon-evdev -no-evdev -no-libproxy -no-icu -no-accessibility -skip imageformats -no-dbus

Sourcehttps://github.com/vedderb/vesc_tool/blob/master/build_lin

 

I'm a total linux noob, so any help would be appreciated.  My objective is to create a mobile programmer with touchscreen interface.  

Thanks in advance.

 

 

 

benjamin
Offline
Last seen: 6 days 16 hours ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

I thing you can just use something like

sudo apt-get install qt-sdk

and then from the vesc tool source run

qmake -qt=5
make -j4

mjc60
Offline
Last seen: 4 years 10 months ago
Joined: 2017-09-06 18:27
Posts: 2

Thanks for the response!  Unfortunately, i already tried this...  I'm getting the following error when executing "make -j4" (just a snippet of the output):

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DHAS_SERIALPORT -DVER_NEUTRAL -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SERIALPORT_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -I. -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtPrintSupport -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -o configparam.o configparam.cpp
In file included from mainwindow.cpp:31:0:
widgets/helpdialog.h:38:37: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
     void showEvent(QShowEvent *event) override;
                                     ^
configparams.cpp: In member function ‘QStringList ConfigParams::checkDifference(ConfigParams*)’:
configparams.cpp:1090:20: error: range-based ‘for’ loops are not allowed in C++98 mode
     for(QString p: mParamList) {
                    ^
Makefile:1656: recipe for target 'configparams.o' failed
make: *** [configparams.o] Error 1
make: *** Waiting for unfinished jobs....

Not sure what to make of this error though.

RSR
Offline
Last seen: 5 months 3 weeks ago
VESC Original
Joined: 2017-05-24 12:46
Posts: 38

Try adding a line

CONFIG += C++11   

to vesc_tool.pro,

then make clean; qmake