Forums > MaxMSP

How to create a standalone application

June 14, 2011 | 5:08 pm

I wanna create a standalone application from my patch. I saw there are similar discussions here, and i read the official guide too, but i’m a beginner and i didn’t understand.. i wanna that my patch will open without the presence of Max on the PC, on other computers too. How can i do? Please explain step by step if you can, ‘cos i wanna learn well this fact. Thanks.


June 14, 2011 | 9:58 pm

Open your patch.

File> Build Collective/Application

Click Build

enter the name you’d like to save it as.

In the drop down menu you need to select Application.

Once the screen says Finished, it’s built.

NOW: the hard part is when your application complains it’s missing files. If you search the forum you’ll find solutions on how to bundle:
Java (if you are using MXJ)
Javascript
Jitter-shaders

Any other files, such as videos need to be included in the support folder.

Hope this is a start.


June 15, 2011 | 10:59 am

Thanks for your reply, but i already knew how to save a patch as an exe. application. When i open collective editor what i have to do (after i choose to save patch as application)? Include files? Include folder?


June 15, 2011 | 11:36 am

And I was supposed to know that how?

I’m not trying to be vague but what you do next depends on what objects you have running in your patch. If you don’t have open GL objects in your patch, you probably don’t have to include jitter-shaders, so why would I say to include it? Yes, hypothetically your next step is to include folders and files, give yourself a nice little application icon with appicon "path/to/file", and then save your script as a text file so you can reuse it later with open script.

Also there are unique rules as to what you include in your support folder (I’m on a Mac I realize there are some differences on a PC) if you have say pattrstorage objects you may want to still write from, theres a post that’ll tell you what to do.

I’m old fashioned and still tend to manuall include all the supporting materials I need just because once upon a time I was having trouble making the collective editor do that all for me, I’m sure it’s in a better state now but old habits die hard.

Just search the forum for "Standalone include" and you’ll get 100s of posts about how to include missing files, which libraries don’t work.

That way you aren’t just having people guess about what you may or may not need to include…


June 15, 2011 | 4:12 pm

Maybe i inderstood in a little part.. you said any other files like videos (images in my case) need to be included in support folder, so i have to put in support folder my images folder and include it from collective editor? And all the rest? In my patch i have various objects, like makenote, noteout.. how can i include them? Hwo can i know from how files group (for example cg, cgGL) belongs an object? Thanks for patience.


June 18, 2011 | 11:15 am

I just need to know which files group an object belongs to. Does exist a guide list? Please, it’s important.


June 18, 2011 | 12:27 pm

1) I don’t usually include things in the collective editor if I’m putting them in the support folder. That just keeps them in the standalones search path.

2) while I’m not sure specifically what you are asking, but I think to include midi and MSP you need to include the "standalone" object in your patch, open the property inspector and ensure "include audio support" is checked.

I don’t know of a specific list that says what the included components do. Maybe someone from Cycling can better answer your question.


June 18, 2011 | 2:31 pm

Ok, thanks for reply.


June 18, 2011 | 10:10 pm

Anyway, i think i understood that standalone application consists in a folder containing your patch and all other files necessary to run the patch without max msp on PC. If so, standalone object can’t help me in what i wanna do, that is to create a single file exe. containing the patch (without the folder with support files). It can be done?


Viewing 9 posts - 1 through 9 (of 9 total)