cross OS platform mxo

gadbaruch's icon

Hi! thanks for reading this,,

were in a bit of a pickle, we want build an amxd that has a custom external object in it, so all the platform specific versions of the external need to be the single amxd

we compiled the externals for mac and for windows,
but i cant figure out how to put it in to one patch that can be then used by both pc and mac users, without them having to install the externals.

i understood that this can be done but no idea how... pleease any direction would help!

many thanks.
Gad Hinkis

Lee's icon

i'm pretty sure that you just put both of then as dependencies when you build the collective

gadbaruch's icon

thanks guys!

but the build collective /application form the file menu is grey unclickable..
is this maybe because i only have a max4live license? i have the mxo and mxe and even mxe64 files i just dont know where to put them, or why my build app option isnt working.

twhiston's icon

When you build a collective/app it wont let you save as a .amxd so I think that method is out anyway. You also cant open an amxd to show contents so you cant dump the mxo/mxe/mxe64 into their either. Are there any m4l plugins that do this and that dont install as a live pack?

stkr's icon

It is very simple.
1. Build your amxd as normal. In the file dependencies make sure to add your external(s) - only add them for the platform you are building on.
2. Freeze and save device. So long as externals for all platforms are present in your max search path, they will all be magically included in the build.
3. You can check this by looking at the max window when you save - it will list everything included.

Do not try and add opposite platform externals manually.

In max alone you do exactly the same but via the .maxproj format, which is almost identical to .amxd.

gadbaruch's icon

thank you !!!!

so just to make sure i get it straight...

all i need is to include the .mxe and .mxe64 in the externals folder of max, just like i did with the mxo,
then freeze the MFL patch and it will magically use the apropriate object when u open this on a PC.

is this the way it goes?
so amazing to have this community here thank you so much :D
G