Forums > Jitter

standalone / jitter / javascript issue . max 6.1.x

December 1, 2013 | 9:51 am

Hello

I’m trying to build without any success a standalone starting from a patch using some jit.gl objects that are instantiated using a JavaScript mini-object, very similar to jsglsurface.js, that is used by the jsglsurface-example. In the past, I’ve build standalones with it in max 6.0.x and 5.x.x without any problems. The 6.0.x release of Max doesn’t seem require any file to be included by hand in the applications package.

Now, with 6.1.3 and 6.1.5, when the standalone app starts, the status window always says :

js: jsglsuperficie2.js: Javascript ReferenceError: JitterMatrix is not defined, line 2

After that, other errors happen concerning the functions defined in the script. For instance, very frequently I get :

js: jsglsuperficie2.js: Javascript TypeError: expr is undefined, line 80

And other errors concerning interpretation of symbols such as :

cos(tpu/2) * sin(tpv) / 2.: bad number

I had never seen such errors in the past. All was working fine.

As I experienced this issue, I visited the jitter built-in reference to learn more about building standalone apps. The Appendix D* is already speaking about directories that doesn’t exist in the new architecture of application packages. In particular, the "support" folder is no more in the the "MaxOS" folder… Also, it is said that Lybrary/CFMSupport/JSRefThreadsafe.shlb is required, but this file doesn’t exist any more. It seems that this are the rules for building applications in max.4.6… Perhaps it would be a good idea to actualize the rules to build standalone apps. Perhaps more information is given in other parts of the help application. I have not been able to find them. Max Help has grown a lot. This is a very good thing, but some times some info could not be easy to be found!

My system : Apple Power Book 2.4 GHz Intel Core i7 4GB 1333 MHz DDR3. MacOS X 10.7.5

Many thanks for any idea you could suggest.

All the best

José Manuel

* Appendix D says :

To include Jitter shader components in your standalone application:
Copy the file /Applications/Max6/Cycling ’74/jitter-externals/Cg.framework to {Package}/Contents/MacOS/support/Cg.framework
Copy the file /Applications/Max6/Cycling ’74/jitter-shaders to {Package}/Contents/MacOS/support/jitter-shaders
To include Java components in your standalone application:
Copy the file /Applications/Max6/Cycling ’74/java/lib/max.jar to {Package}/Contents/MacOS/support/java/lib/max.jar
Copy any other necessary jar files (e.g. jitter.jar) to {Package}/Contents/MacOS/support/java/lib/
Copy /Applications/Max6/Cycling ’74/java/classes/*.class to {Package}/Contents/MacOS/support/java/classes/*.class (all your necessary class files)
To include Javascript components in your standalone application:
Copy the file /Library/CFMSupport/JSRefThreadsafe.shlb to {Package}/Contents/MacOS/JSRefThreadsafe.shlb


Viewing 1 post (of 1 total)