forked from vedderb/vesc_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0 parents
commit d28c88b
Showing
349 changed files
with
69,250 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This is a GUI written using the Qt toolkit to configure the VESC motor controller. Read more and download precompiled versions at | ||
|
||
vesc-project.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
./build_cp_fw | ||
./build_lin | ||
./build_win | ||
|
||
rm /storage/mnt_webserver/web/ubercart_downloads/vesc_tool_* | ||
mv build/lin/vesc_tool_* /storage/mnt_webserver/web/ubercart_downloads/ | ||
mv build/win/vesc_tool_* /storage/mnt_webserver/web/ubercart_downloads/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
FWPATH="../../ARM/STM_Eclipse/BLDC_4_ChibiOS/build_all" | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
cd $FWPATH | ||
./rebuild_all | ||
cd $DIR | ||
rm -r res/firmwares/* | ||
cp -r $FWPATH/* res/firmwares/ | ||
find res/firmwares -maxdepth 1 -type f -exec rm {} \; | ||
cp $FWPATH/../CHANGELOG res/firmwares | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/bash | ||
|
||
# https://github.com/LairdCP/UwTerminalX/wiki/Compiling-Qt-Statically | ||
# https://wiki.qt.io/Building_Qt_5_from_Git | ||
|
||
# sudo apt-get build-dep qt5-default | ||
# sudo apt-get install libxcb-xinerama0-dev build-essential perl python git "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev flex bison gperf libicu-dev libxslt-dev ruby libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev libcap-dev libxtst-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libxss-dev libegl1-mesa-dev gperf bison libbz2-dev libgcrypt11-dev libdrm-dev libcups2-dev libatkmm-1.6-dev libasound2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev | ||
# cd /opt | ||
# sudo mkdir qt5 | ||
# sudo chown $USER qt5 | ||
# git clone https://code.qt.io/qt/qt5.git | ||
# cd qt5 | ||
# git checkout 5.7 | ||
# perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine | ||
# mkdir build | ||
# cd build | ||
# ../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 | ||
# make -j4 | ||
# sudo make install | ||
|
||
# Note: remove -no-dbus to get titlebar menus in ubuntu | ||
|
||
export PATH=/opt/Qt/5.7-static/bin:$PATH | ||
rm -rf build/lin/* | ||
|
||
# Original | ||
qmake -config release "CONFIG += release_lin build_original" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
cd build/lin | ||
zip vesc_tool_original_linux.zip vesc_tool | ||
rm vesc_tool | ||
cd ../.. | ||
|
||
# Platinum | ||
qmake -config release "CONFIG += release_lin build_platinum" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
cd build/lin | ||
zip vesc_tool_platinum_linux.zip vesc_tool | ||
rm vesc_tool | ||
cd ../.. | ||
|
||
# Gold | ||
qmake -config release "CONFIG += release_lin build_gold" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
cd build/lin | ||
zip vesc_tool_gold_linux.zip vesc_tool | ||
rm vesc_tool | ||
cd ../.. | ||
|
||
# Silver | ||
qmake -config release "CONFIG += release_lin build_silver" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
cd build/lin | ||
zip vesc_tool_silver_linux.zip vesc_tool | ||
rm vesc_tool | ||
cd ../.. | ||
|
||
# Bronze | ||
qmake -config release "CONFIG += release_lin build_bronze" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
cd build/lin | ||
zip vesc_tool_bronze_linux.zip vesc_tool | ||
rm vesc_tool | ||
cd ../.. | ||
|
||
# Free of charge | ||
qmake -config release "CONFIG += release_lin build_free" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
cd build/lin | ||
zip vesc_tool_free_linux.zip vesc_tool | ||
rm vesc_tool | ||
cd ../.. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
export PATH=/opt/Qt/5.7-static/bin:$PATH | ||
rm -rf build/lin/* | ||
|
||
# Original | ||
qmake -config release "CONFIG += release_lin build_original" | ||
make clean | ||
make -j4 | ||
rm -rf build/lin/obj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/bin/bash | ||
|
||
# http://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows | ||
|
||
# cd /opt | ||
# sudo mkdir mxe | ||
# sudo chown $USER mxe | ||
# git clone https://github.com/mxe/mxe.git | ||
# sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 | ||
# cd mxe | ||
# make qtbase | ||
# make qtserialport | ||
|
||
export PATH=/opt/mxe/usr/bin/:$PATH | ||
rm -rf build/win/* | ||
|
||
# Original | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_original" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
cd build/win | ||
zip vesc_tool_original_windows.zip vesc_tool.exe | ||
rm vesc_tool.exe | ||
cd ../.. | ||
|
||
# Platinum | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_platinum" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
cd build/win | ||
zip vesc_tool_platinum_windows.zip vesc_tool.exe | ||
rm vesc_tool.exe | ||
cd ../.. | ||
|
||
# Gold | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_gold" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
cd build/win | ||
zip vesc_tool_gold_windows.zip vesc_tool.exe | ||
rm vesc_tool.exe | ||
cd ../.. | ||
|
||
# Silver | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_silver" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
cd build/win | ||
zip vesc_tool_silver_windows.zip vesc_tool.exe | ||
rm vesc_tool.exe | ||
cd ../.. | ||
|
||
# Bronze | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_bronze" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
cd build/win | ||
zip vesc_tool_bronze_windows.zip vesc_tool.exe | ||
rm vesc_tool.exe | ||
cd ../.. | ||
|
||
# Free of charge | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_free" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
cd build/win | ||
zip vesc_tool_free_windows.zip vesc_tool.exe | ||
rm vesc_tool.exe | ||
cd ../.. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
export PATH=/opt/mxe/usr/bin/:$PATH | ||
rm -rf build/win/* | ||
|
||
# Original | ||
/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG += release_win build_original" | ||
make clean | ||
make -j4 | ||
rm -rf build/win/obj | ||
|
Oops, something went wrong.