Making beautiful light shows is as easy as drawing a picture with Pattern Paint! Simply plug in your BlinkyTape, run Pattern Paint, and draw away!
For instructions, see: http://blinkinlabs.com/patternpaint
PatternPaint is written in C++ with QT (5.4.1) libraries. The easiest way to get started is to download QT Creator and use it to open the project file: http://download.qt.io/archive/qt/5.4/5.4.1/
Find and install through the App Store
http://download.qt.io/archive/qt/5.4/5.4.1/qt-opensource-mac-x64-clang-5.4.1.dmg
-
Set up the QT environment:
export QTDIR=/Users/matt/Qt/5.4/clang_64/
-
Build PatternPaint:
cd PatternPaint rm -R build/ ${QTDIR}/bin/qmake MOC_DIR=build OBJECTS_DIR=build RCC_DIR=build UI_DIR=build DESTDIR=bin VERSION=0.3.0 make cd ..
-
Use the bundler tool to make a .dmg file:
${QTDIR}/bin/macdeployqt PatternPaint/bin/PatternPaint.app -dmg
-
Change the dmg name to include the version, for example PatternPaint_0.1.0.dmg
mv PatternPaint/bin/PatternPaint.dmg ./PatternPaint_0.3.0.dmg
-
Distribute!
Windows deployment requires the following tools:
Note: be sure to check 'Run Git from the Windows Command Prompt' and 'Checkout Windows-style'.
http://nsis.sourceforge.net/Download
http://www.dependencywalker.com/
http://www.microsoft.com/click/services/Redirect2.ashx?CR_EAC=300135395
http://go.microsoft.com/fwlink/p/?LinkID=324284
NOTE: Obtain the GlobalSign file and install the Blinkinlabs Cert before continuing.
Run BuildPatternPaint_Windows.sh (do this using Git Bash, start->run->git bash)
-
Clone the PatternPaint repo:
-
Clone 32u4 support repo (for the blinkytape driver):
git clone https://github.com/Blinkinlabs/Blinkinlabs32u4_boards.git
-
Build PatternPaint:
cd PatternPaint qmake -config release MOC_DIR=build OBJECTS_DIR=build RCC_DIR=build UI_DIR=build DESTDIR=bin VERSION=0.1.0 mingw32-make
-
Copy over the dlls and driver files
NOTE: These files were determined by using the dependency walker tool. NOTE: qwindows.dll wasn't detected by dependency walker for some reason.
:: Location of the MINGW libraries (Installed as part of Qt)
set QT_MINGW="c:\Qt\Qt5.1.1\5.1.1\mingw48_32\"
:: Location of the BlinkyTape driver (installed as our repository)
set DRIVER="..\..\..\Blinkinlabs32u4_boards\driver\"
:: Location of the Windows SDK and WDK
set WIN_KIT="c:\Program Files (x86)\Windows Kits\8.1\"
cd bin
copy %QT_MINGW%bin\Qt5Core.dll
copy %QT_MINGW%bin\Qt5Core.dll
copy %QT_MINGW%bin\Qt5Gui.dll
copy %QT_MINGW%bin\Qt5SerialPort.dll
copy %QT_MINGW%bin\Qt5Widgets.dll
copy %QT_MINGW%bin\Qt5Guilibgcc_s_dw2-1.dll
copy %QT_MINGW%bin\libstdc++-6.dll
copy %QT_MINGW%bin\icuin51.dll
copy %QT_MINGW%bin\icuuc51.dll
copy %QT_MINGW%bin\icudt51.dll
copy %QT_MINGW%bin\libgcc_s_dw2-1.dll
copy %QT_MINGW%bin\libwinpthread-1.dll
mkdir platforms
copy %QT_MINGW%\plugins\platforms\qwindows.dll platforms\
mkdir driver
copy %DRIVER%blinkinlabs.inf driver\
copy %DRIVER%blinkinlabs.cat driver\
copy %WIN_KIT%"redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" driver\dpinst32.exe
copy %WIN_KIT%"redist\DIFx\dpinst\MultiLin\x64\dpinst.exe" driver\dpinst64.exe
cd ..
- Run the NSIS installer to generate a .exe file
NOTE: The initial .nsi file was created using "NSIS Quick Setup Script Generator". The output of this file was modified to incorporate the driver installer
-
Sign the .exe file
"C:\Program Files (x86)\Windows Kits\8.1\bin\x86\signtool" sign /v /ac "GlobalSign Root CA.crt" /n "Blinkinlabs, LLC" /tr http://tsa.starfieldtech.com *.cat
-
Enjoy! Or, enjoy testing the build on the myriad flavors of Windows!