-
Notifications
You must be signed in to change notification settings - Fork 1
LED Performance Art Software. Multi-platform.
License
jcsalem/Lite
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Lite
A toolbox for addressable light art.
*** HOW TO RUN ***
+ Setting the LDEV environment variable +
Linux/Mac/MinGW: export LDEV='ck:172.24.22.51/1(72)'
Windows Command Prompt: set LDEV=ck:172.24.22.51/1
+ List of Commands +
Use --help for help on any command.
Ltool: The Multi-tool. Commands: set, all, rotate, rotwash, wash, bounce
Lflash: Flashes the display
Lsparkle: Sparkly lights
Lstarry: Stars
Lfirefly: Fireflies
ckinfo: Reports information on ethernet-attached ColorKinetics fixtures via Kinet protocol.
testmix: tests light mixing
* Linux and Raspberry Pi Notes *
1) Install requirements
sudo apt-get install ncurses-dev cmake
2) IF WINDOWING DESIRED:
2A) Install sfml 2.1 or later from the SFML web site.
Copy files to /usr/local
2B) Install dependencies
sudo apt-get install libglew1.5
sudo apt-get install libjpeg62
3)Build
cd builddir # A subdirectory of this one
cmake -G "Unix Makefiles" ..
make
* MacOS Notes *
0) Install homebrew
1) brew install cmake
2A) If desired, install SFML package according to instructions. If you're using Mavericks (10.9) or later, you need to download the libc++ version.
2B) In the SFML directory, run install.sh SFML files to /usr/local and to frameworks. Ignore the error about being unable to install the Xcode templates for SFML
3) cd lite; mkdir build
4) cd build
5) cmake --G "Unix Makefiles" ..
* Windows MinGW Notes *
0) Install MinGW
1) Install SFML-2.1 directory at the same level as Lite.
Pick the right version for your compiler. For CodeBlocks/Ming I picked the 32-bit version.
2) Run this inside a cmake -G "MinGW Makefiles" ..
3) Start a mingw32 shell and cd to the build directory
4) mingw32-make
*** CMAKE INSTRUCTIONS ***
** Basic cmake instructions for all platforms **
cd litedir
mkdir build
cd build
cmake -G "generator name" <options> ..
* CMAKE Command Line Options *
<options> can be
-DNO_SFML=1 Set this to disable compiling/linking with SFML libraries
-DCMAKE_BUILD_TYPE=Debug Enables Debug builds
-DCMAKE_OSX_ARCHITECTURES=x86_64 Force 64 bit compile on MacOSX
Note that options are sticky.
** cmake Options for Specific Platforms **
+ Windows: CodeBlocks +
Generator name: "CodeBlocks - MinGW Makefiles"
Within CodeBlocks, open lite.cbp and compile
+ Windows: MinGW +
[Generator name: "MinGW Makefiles"]
Start MinGW shell
cd buildir
cmake -G "MinGW Makefiles" ..
mingw32-make
+ Windows: Visual Studio +
Generator name: "Visual Studio 12" or "Visual Studio 12 Win64"
(Note that these builds don't include SFML which I found too complex to install.)
Open lite.sln and compile
+ Linux or MacOS: Unix make +
Generator name: "Unix Makefiles"
make
+ Linux or MacOS: CodeBlocks +
Generator name: "CodeBlocks - Unix Makefiles"
Within CodeBlocks, open lite.cbp and compile
-------------------------------------------------------------
* OBSOLETE: Mac Notes *
Install SFML package according to instructions. Copy files to /usr/local and to frameworks
Compiler Search paths:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1
/usr/local/lib
Library Search path:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib
I deleted this library search path as it didn't appear useful. It generated compiler warnings because those libraries weren't compiled with 64 bit x86 in mind.
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/gcc/i686-apple-darwin11/4.2.1
* OBSOLETE: Codeblocks Compilation Notes *
There are two global variables that must be set every time: extralibs and fileext. CodeBlocks will prompt at the beginning of the session. Look up the appropriate value from the table below. If an entry is blank, enter a space instead.
fileext extralibs sfmllibs
Windows .exe -lws2_32 -L../../SFML-2.1/lib -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
Mac -lncurses -framework SFML -lsfml-graphics -lsfml-window -lsfml-system
Linux -lrt -lncurses -lsfml-graphics -lsfml-window -lsfml-system
RaspPi -lrt -lncurses
About
LED Performance Art Software. Multi-platform.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published