Modified version which includes various improvements for Windows, esp. a Desktop Duplication API Grabber
Table of content:
[Short description] (#lightpack-project-with-prismatik-flavour)
[Useful URLs] (#useful-urls)
[Build Prismatik with Windows] (#prismatik-build-instructions-for-windows)
[Build with Linux] (#build-instructions-for-linux)
[Build with OS X] (#build-instructions-for-os-x)
[Build firmware] (#firmware-build-instructions)
Lightpack is an fully open-source and simple hardware implementation of the backlight for any computer. It's USB content-driving ambient lighting system.
Prismatik is an open-source software we buid to control Lightpack device. It grabs screen, analize picture, calculate resulting colors and provide soft and gentle lighting with Lightpack device. Moreother, you can handle another devices with Prismatik such as Adalight, Ardulight or even Alienware LightFX system.
#####Main features:
- Fully open-source under GPLv3 (hardware, software, firmware)
- Cross-platform GUI (Qt)
- USB HID (no need to install any drivers)
- The device is simple to build (just Do-It-Yourself)
#####Useful URLs:
- [Project mothership] (https://github.com/psieg/Lightpack/)
- [Original project mothership] (https://github.com/woodenshark/Lightpack/)
- [Binary downloads] (https://github.com/psieg/Lightpack/releases)
- Wiki with DIY and documentation [ENG] (http://code.google.com/p/light-pack/w/list) / [RUS] (http://code.google.com/p/lightpack/w/list)
- [Post new issue] (https://github.com/psieg/Lightpack/issues)
- [Team] (https://github.com/psieg/Lightpack/graphs/contributors)
###Prismatik build instructions for Windows ####Prerequisites:
- Qt SDK, you may need to set
%QTDIR%
- Windows SDK or Microsoft DirectX SDK
- POSIX shell utilities MSYS for example. It may help to have the
PATH
environment variable set for the utilities (Run → sysdm.cpl → Advanced → Environment Variable → EditPATH
system variable (C:\MinGW\msys\1.0\bin;
for example) - optional any OpenSSL binaries to include them in the build. You can skip them if you modify
src.pro
- optional BASS and BASSWASAPI for the Sound Visualizer. You can skip them in
build-vars.prf
####Build process:
- go to
<repo>/Software
- copy and edit
build-vars.prf
accoring to your machine - optional, if locales changed: run
update_locales.bat
or./update_locales.sh
(slow on Windows) - run
scripts/win32/generate_sln.sh
- build
Lightpack.sln
with MSBuild / VisualStudio
####Building an installer:
- run
scripts/win32/prepare_installer.sh
- build
dist_windows/script.iss
(64bit) orscript32.iss
(32bit) with ISCC (the InnoSetup compiler)
###Build instructions for Linux ####Prerequisites: You will need the following packages, usually all of them are in distro's repository:
- qt5-default
- libqt5serialport5-dev
- build-essential
- libgtk2.0-dev
- libusb-1.0-0-dev
- libnotify-dev
- libudev-dev
- qttools5-dev-tools
- if you are using Ubuntu: libappindicator-dev
- not required, but the update checker uses SSL sockets: openssl
####Build process:
- go to
<repo>/Software
- optional, if locales changed: run
./update_locales.sh
- run
qmake -r
- run
make
####Building a deb package:
- run
scripts/linux/prepare_installer.sh
cd dist_linux
and runbuild-deb.sh
####Manual deployment: Instead of building a deb package, you can:
- Add a rule for UDEV. See comments from
<repo>/Software/dist_linux/deb/etc/udev/rules.d/93-lightpack.rules
for how to do it. - Make sure
<repo>/Software/qtserialport/libQt5SerialPort.so.5
is available for loading by Prismatik (place it in appropriate dir or use LD_LIBRARY_PATH variable)
###Build instructions for OS X ####Prerequisites:
- Qt SDK (5.0+)
- MacOSX 10.9.sdk
- QtCore.framework
- QtGui.framework
- QtNetwork.framework
- QtOpenGL.framework
####Build process:
- Download and unpack 5.0+ Qt SDK from www.qt-project.org
- Build Prismatik project
to run Prismatik please make sure PythonQt libs are available for load at runtime
###Firmware build instructions
Updating firmware on Windows: If you don't want to build the firmware yourself, you can follow the documentation for flashing the latest firmware on Windows.
Please note that these instructions are for Debian based systems.
Compiling firmware only:
- Install AVR GCC Toolchain:
sudo apt-get install gcc-avr binutils-avr avr-libc
- Compile the firmware:
cd Firmware
make LIGHTPACK_HW=7
(or any other hardware version 4-7)- Alternatively, you can do
./build_batch.sh
to build the firmware for all hardware versions
- The firmware can be found in the same directory (individual build) or Firmware/hex (batch build).
Compiling and uploading firmware to device:
- Install AVR GCC Toolchain and dfu-programmer:
sudo apt-get install gcc-avr binutils-avr avr-libc avrdude dfu-programmer
- Reboot device to bootloader (via the secret button on the device)
- Compile and upload the firmware:
cd Firmware
make LIGHTPACK_HW=7 && make dfu LIGHTPACK_HW=7
(or any other hardware version 4-7)
Please let us know if you find mistakes, bugs or errors. Contributions are welcome.
Post new issue : https://github.com/psieg/Lightpack/issues