larrykite / flash-opencv

OpenCV2.2.0 implementation for use with flash via alchemy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build command for sources of camera interaction (will be a makefile later, also uses -DOSX hack for MacOSX compilation and may require additional raindancing to compile under other platforms):
C++ sources (opencv)
alc-on; rm -rdf log ; rm -f *.o; mkdir log ; for src in *.cpp ; do g++ -I$repo_root/include -DOSX -c -Wall -O3 -o ${PWD##*/}_`basename $src .cpp`.o $src 2> `basename $src .cpp`.log ; done ; mv -v *.log ./log ; alc-off; for f in ./log/*.log ; do grep 'error' $f ; done | cat | sort -u > ./log/errors.log ; less ./log/errors.log

C sources (zlib, lapack)
alc-on; rm -rdf log ; rm -f *.o; mkdir log ; for src in *.c ; do gcc -I$repo_root/include -DOSX -c -Wall -O3 -o ${PWD##*/}_`basename $src .c`.o $src 2> `basename $src .c`.log ; done ; mv -v *.log ./log ; alc-off; for f in ./log/*.log ; do grep 'error' $f ; done | cat | sort -u > ./log/errors.log ; less ./log/errors.log

Build-run workflow:
1. Build all sources
2. Copy all .o's into $repo_root/flash (to be linked against main wrapper)
2.1. Currently you have to REMOVE core_system.o as it uses some assembly that would not translate into bytecode.
3. Build wrapper swc library:
rm *achacks* *.swc ; alc-on; g++ -swc -Wall -O3 -DOSX -I../include -o camlib.swc *.o camlib.cpp ; alc-off;
4. Build swf: 
rm *.swf ; alc-on; mxmlc -target-player=10.0.0 -library-path+=camlib.swc WebCam.as; alc-off;

About

OpenCV2.2.0 implementation for use with flash via alchemy


Languages

Language:C++ 63.7%Language:C 36.3%Language:ActionScript 0.1%Language:Shell 0.0%