Git Product home page Git Product logo

fieldkit.cpp's Introduction

                                                                           
      _____  __  _____  __     ____                                   
     / ___/ / / /____/ / /    /    \   FieldKit
    / ___/ /_/ /____/ / /__  /  /  /   (c) 2011, FIELD. All rights reserved.              
   /_/        /____/ /____/ /_____/    http://www.field.io           

   
Created by Marcus Wendt on 24/05/2010.


=== Overview ===

Building blocks for generative art and computational design projects.
Ranging from audio-visual interactive installations to generative 
graphic design applications.

For example uses see: http://www.field.io

The library itself builds heavily on top of the Cinder "open source library for 
professional-quality creative coding in C++"


=== FieldKit ===

Provides core math and animation utilities;

* Physics; An extendible verlet particle system that comes with 
  a growing library of animation behaviours.
  
* Math: Common geometry and math utilities that are not already implemented in Cinder.

- Requirements -

* MS Windows 7 + MS Visual Studio 2008 + Service Pack 1
* Apple Mac OSX 10.6.4+ + Apple XCode 3.2
* Cinder - latest version from github
  http://github.com/cinder/Cinder

  
- Optional -

* Mercurial to get latest source from bitbucket.org
  http://mercurial.selenic.com/
  hg clone https://[email protected]/field/fieldkit.cpp


- Installation -

To make sure all headers and libraries can be found by Xcode/Visual Studio place the FieldKit.cpp folder and its dependent libraries next to each other in the same folder e.g. on my OSX machine

~/Documents/Development/Libraries/fieldkit.cpp
~/Documents/Development/Libraries/Cinder (latest version from github)
~/Documents/Development/Libraries/FBXSDK (link to /Applications/Autodesk/FBXSDK2011_3)
~/Documents/Development/Libraries/v8
 

  
=== FBX Kit ===

Simplifies using geometry and animation data from 3D content creation tools 
e.g. Maya, Cinema 4D, 3D Studio Max in realtime applications.


- Requirements -

* FieldKit
* Autodesk FBX SDK 2011.3 (Windows/ Mac OSX/ Linux)
  http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=6837478


- Installation Mac OSX -

On Mac OSX the SDK installs to /Applications/Autodesk/FBXSDK$version 
To make sure Xcode can find the header and library files set either:
a) Edit the FBXSDK_PATH user-defined setting in the FBXKit target 
b) Or create a symbolic link to the current SDK next to your fieldkit.cpp folder e.g.
   Open Terminal.app
   $ cd /path/to/fieldkit.cpp
   $ ln -s /Applications/Autodesk/FBXSDK20113_1 ../FBXSDK



=== ScriptKit ===

- Requirements -

* v8 JavaScript Engine

- Installation Mac OSX -

To make sure Xcode can find the header and library files set either:
a) Edit the V8_PATH user-defined setting in the ScriptKit target (if you built v8 previously)
b) Or build v8 next to your fieldkit.cpp folder e.g.
   Open Terminal.app
   $ /path/to/fieldkit.cpp/..
   $ svn checkout http://v8.googlecode.com/svn/trunk/ v8
   $ cd v8/
   $ scons mode=release library=static arch=ia32
   $ scons mode=debug library=static arch=ia32



=== Thanks ===

* Andrew Bell & Cinder Team - http://libcinder.org
* Dean McNamee - V8 tricks and TypedArrays implementation https://github.com/deanm + http://www.deanmcnamee.com
* Karsten Schmidt - great resource & inspiration http://toxiclibs.org
* many more :)


=== License ===

Copyright (c) 2010-2011 Marcus Wendt <[email protected]>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later version.

http://creativecommons.org/licenses/LGPL/3.0/

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA

fieldkit.cpp's People

Contributors

marcuswendt avatar mazbox avatar memo avatar merf avatar num3ric avatar rockolo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fieldkit.cpp's Issues

Error compiling sample project

I am getting the following errors when I try to compile the projects bundle in the sample folder:
i686-apple-darwin10-llvm-g++-4.2: ../../../lib/libFieldKit_d.a: No such file or directory
i686-apple-darwin10-llvm-g++-4.2: ../../../lib/libScriptKit_d.a: No such file or directory
Command /Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

I follow the installation steps, I only istall FieldKit and v8 so I wonder if I am missing another step in the process

Compiling errors: "reference to 'Handle' ambiguous"

I had errors while compiling FieldKit revolving around "error: reference to 'Handle' is ambiguous" in the Camera3D.cpp class. It turns out that adding "v8::" to each "Handle" type resolved the errors. Idem for the SketchPad.cpp sample. I'd be happy to know why... Nonetheless, everything appears to run correctly for me now.

For reference, here is the beginning of the error log that was produced:

/Users/num3ric/Code/cinder/FieldKit.cpp/xcode/../src/fieldkit/script/module/../../../../../FieldKit.cpp/src/fieldkit/script/module/Camera3D.cpp:27: error: reference to 'Handle' is ambiguous
/System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h:219: error: candidates are: typedef char** Handle
../../v8/include/v8.h:101: error: template class v8::Handle
/Users/num3ric/Code/cinder/FieldKit.cpp/xcode/../src/fieldkit/script/module/../../../../../FieldKit.cpp/src/fieldkit/script/module/Camera3D.cpp:27: error: 'Handle' has not been declared
/Users/num3ric/Code/cinder/FieldKit.cpp/xcode/../src/fieldkit/script/module/../../../../../FieldKit.cpp/src/fieldkit/script/module/Camera3D.cpp:27: error: expected ',' or '...' before '<' token
[...]

Note that my v8 javascript engine has been freshly downloaded today.

Problem installing v8, scons command not found

Hi,

I am following the instruction in the readme file but when I try to run the line

scons mode=release library=static arch=ia32

I get this error scons: command not found

Any ideas?

boost type error in Sketchpad Example

I managed to compile FieldKit and ScriptKit.

With boost 1.44 and the latest Cinder checkout, I'm getting a template type error in boost::filesystem3::path, which seems to stem from Cinder.h. I'm not sure what dependencies I haven't met, or if I have non matching static libs, but here is the full error message from Xcode:

CompileC build/SketchPad.build/Debug/SketchPad.build/Objects-normal/i386/SketchPad.o ../src/SketchPad.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode
setenv LANG en_US.US-ASCII
/Developer/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wc++0x-extensions -isysroot /Developer/SDKs/MacOSX10.6.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion -iquote /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-generated-files.hmap -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-own-target-headers.hmap -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-all-target-headers.hmap -iquote /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-project-headers.hmap -iquote../../../../cinder/include -iquote../../../include -iquote../include -iquote../src -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/Debug/include -I../../../../v8/include -I../../../../cinder/boost -I../../../../../boost_1_44_0 -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/DerivedSources/i386 -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/DerivedSources -F/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/Debug -include /var/folders/l1/243crs0x32zgbllfh0ckbnmh0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/prefix-gmgtjocculkorhfniuzzbhwpsudm/prefix.pch -MMD -MT dependencies -MF /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/Objects-normal/i386/SketchPad.d -c /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/../src/SketchPad.cpp -o /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/Objects-normal/i386/SketchPad.o

In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/../memory:52:
In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/memory:38:
In file included from ../../../../cinder/include/cinder/Cinder.h:65:
In file included from ../../../../cinder/include/cinder/app/App.h:25:
In file included from ../../../../cinder/include/cinder/app/AppBasic.h:25:
In file included from ../src/SketchPad.h:12:
In file included from /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/../src/SketchPad.cpp:10:
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:268:16:{268:18-268:26}: error: assigning to 'char' from incompatible type 'const boost::filesystem3::path' [3]
*__result = *__first;
^ ~~~~~~~~
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:315:14: note: in instantiation of function template specialization 'std::__copy<false, std::bidirectional_iterator_tag>::copy<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]
return std::__copy<__simple, _Category>::copy(__first, __last, __result);
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:340:18: note: in instantiation of function template specialization 'std::__copy_aux<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]
{ return std::__copy_aux(__first, __last, __result); }
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:400:15: note: in instantiation of function template specialization 'std::__copy_normal<false, false>::__copy_n<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]
return std::__copy_normal<__in, __out>::__copy_n(__first, __last,
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_uninitialized.h:75:14: note: in instantiation of function template specialization 'std::copy<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]
{ return std::copy(__first, __last, __result); }
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_uninitialized.h:113:14: note: in instantiation of function template specialization 'std::__uninitialized_copy_aux<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]
return std::__uninitialized_copy_aux(__first, __last, __result,
^
/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_uninitialized.h:254:14: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) [3]
{ return std::uninitialized_copy(__first, __last, __result); }
^
../../../../cinder/boost/boost/algorithm/string/detail/find_format_all.hpp:222:21: note: in instantiation of function template specialization 'boost::algorithm::detail::copy_to_storage<std::deque<char, std::allocator >, boost::iterator_rangeboost::filesystem3::path::iterator >' requested here [3]
::boost::algorithm::detail::copy_to_storage( Storage, M.format_result() );
^
../../../../cinder/boost/boost/algorithm/string/detail/find_format_all.hpp:260:17: note: in instantiation of function template specialization 'boost::algorithm::detail::find_format_all_impl2std::basic_string<char, boost::algorithm::detail::first_finderF<const char *, boost::algorithm::is_equal>, boost::algorithm::detail::const_formatFboost::iterator_range<boost::filesystem3::path::iterator >, boost::iterator_range<__gnu_cxx::__normal_iterator<char *, std::basic_string > >, boost::iterator_rangeboost::filesystem3::path::iterator >' requested here [3]
::boost::algorithm::detail::find_format_all_impl2(
^
../../../../cinder/boost/boost/algorithm/string/find_format.hpp:268:13: note: in instantiation of function template specialization 'boost::algorithm::detail::find_format_all_implstd::basic_string<char, boost::algorithm::detail::first_finderF<const char *, boost::algorithm::is_equal>, boost::algorithm::detail::const_formatFboost::iterator_range<boost::filesystem3::path::iterator >, boost::iterator_range<__gnu_cxx::__normal_iterator<char *, std::basic_string > > >' requested here [3]
detail::find_format_all_impl(
^
../../../../cinder/boost/boost/algorithm/string/replace.hpp:654:13: note: in instantiation of function template specialization 'boost::algorithm::find_format_allstd::basic_string<char, boost::algorithm::detail::first_finderF<const char *, boost::algorithm::is_equal>, boost::algorithm::detail::const_formatFboost::iterator_range<boost::filesystem3::path::iterator > >' requested here [3]
::boost::algorithm::find_format_all(
^
/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/../src/SketchPad.cpp:89:5: note: in instantiation of function template specialization 'boost::algorithm::replace_allstd::basic_string<char, char [5], boost::filesystem3::path>' requested here [3]
boost::algorithm::replace_all(script, "$APP", cinder::app::getAppPath());
^
1 error generated.

xmltree class?

getting a not declared error in ConfigDict.cpp, is this file in one of the libraries?

cheers

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.