Skip to content

How to build latest version

Martin Prout edited this page Jul 25, 2014 · 33 revisions

Requirements

Installed vanilla processing-2.2.1

Installed jruby (preferably 1.7.13)

jdk-1.7+

ruby-compiler gem

ideally wget

Steps

  1. Clone this repo. Unless already configured, set processing root in .rp5rc (easy set using

    configRP5.pde, which is included in the samples directory). Required to enable auto-copy of core.jar to lib (for compiling), and for testing (assumes installed jruby, required for compiling).

  2. cd ruby-processing

  3. rake builds extension, builds the gem and runs tests

  4. gem install ruby-processing-2.5.0.gem

  5. rp5 setup check pre-install (run again after)

  6. rp5 setup install to download and install jruby-complete-1.7.13

    also creates ~/.rp5rc (if it doesn't exist, and sets PROCESSING_ROOT to best guess)

  7. From home directory rp5 setup unpack_samples

  8. cd rp_samples

  9. rake runs the contributed samples in a random order

  10. rake shader to run shader samples

  11. rake vecmath runs vecmath/vec2d examples

  12. Should you wish to run the spec tests, they need to be run using jruby so

    jruby -S rspec deglut_spec.rb for example

Clone this wiki locally