GithubHelp home page GithubHelp logo

nullartist / lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jcsalem/lite

0.0 0.0 0.0 5.61 MB

LED Performance Art Software. Multi-platform.

License: GNU General Public License v2.0

Shell 2.78% Batchfile 0.21% CMake 4.21% C++ 91.46% C 1.35%

lite's Introduction

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

lite's People

Contributors

jcsalem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.