Problems with compiling an app using third-party externals

mattyo's icon

I'm trying to compile an app that uses a couple of objects from the MuBu library and the new ultraleap external, but I'm having a bit of a time...

Although in theory, any objects used in the patch should be included in the external, compiling with a build script that only includes 'open thispatcher' gives me an external that throws these errors on launch:

pipo: cannot find external module pipo.median
pipo: syntax error: can't create pipo chain 'median:scale'
...
ultraleap: unable to load object bundle executable

Digging into the package shows the externals are present in /Applications/testapp-noscript.app/Contents/Resources/C74/externals, but it doesn't seem to find them when it loads.

OK, so let's explicitly include the folders containing the missing objects, so the build script looks like this:

open thispatcher
folder "disk:/Users/mattyo/Documents/Max 8/Packages/MuBu For Max"
folder "disk:/Users/mattyo/Documents/Max 8/Packages/UltraLeap"

On compile, the pipo (mubu)object loads, but not the ultraleap. Very sad.

However, if I change the build script to:

open thispatcher
folder "disk:/Users/mattyo/Documents/Max 8/Packages/UltraLeap"
folder "disk:/Users/mattyo/Documents/Max 8/Packages/MuBu For Max"

the ultraleap object loads and the pipo does not, so whatever appears first in the build script loads.

Let me emphasize that the objects in question are in the Resources folder of all of these apps!

There are a couple of other subtleties as well having to do with loading individual files instead of folders, etc(none of which solved the problem, at any rate), but a bit arcane for the forum at the moment. the only thing the standalone object has unselected is CEF support, but I found that adding the various search path options made no difference one way or another. (I'm on a Mac M3, running Sonoma).

Oddly enough, this is almost identical to an app I used on my intel machine with Big Sur, which compiled with no complaints, so it may be an OS issue. I've got the apps & build scripts around if anyone wants to have a look -- just let me know...

Thanks,

\M

{
    "version" : "Version 8.5.6 (13186257284) (arm64 mac)",
    "platform" : "mac",
    "arch" : "arm64",
    "osversion" : "Mac OS X Version 14.1.1 (Build 23B2082) arm64",
    "samplerate" : 44100,
    "iovs" : 512,
    "sigvs" : 64,
    "scheduler_in_audio_interrupt" : "off",
    "audio_drivername" : "Core Audio",
    "audio_driver_subname" : "",
    "license" : "permanent full",
    "machine_id" : "c751ae30bfe1400f9989db2d1b661110",
    "addons" :     {
        "rnbo_v1" : "full license"
    }
,
    "eventinterval" : 2,
    "schedinterval" : 1.0,
    "overdrive" : "on",
    "pollthrottle" : 40,
    "queuethrottle" : 100,
    "sysqelemthrottle" : 1000,
    "refreshrate" : 30.0,
    "schedslop" : 25.0,
    "eventprobing" : 1,
    "mixerparallel" : "off",
    "mixercrossfade" : 0,
    "mixerlatency" : 30.0,
    "mixerramptime" : 10.0,
    "videoengine" : "viddll",
    "gfxengine" : "glcore",
    "packages" :     {
        "@C74_PACKAGE_NAME@" : "1.0.0",
        "ACToolkit" : "0.9.8",
        "Auzzie" : "2.0.1",
        "bach" : "0.8.3",
        "BEAP" : "1.0.4",
        "cage" : "0.7.0",
        "CNMAT Externals" : "1.0.5",
        "cv.jit" : "2.0.1",
        "Delicious Tutorials" : "1.0.2",
        "Dicy2 For Max" : "",
        "Djster" : "2.1.8",
        "ease" : "1.2.3",
        "ejies" : "3.2.5",
        "filter" : "0.2.6",
        "FluidAudibleEdge" : "1.0.0",
        "FluidCorpusManipulation" : "1.0.6",
        "ForumMaxApps-All" : "",
        "FTM" : "2.7.6.BETA",
        "Gen CV Tools" : "1.0.1",
        "Gestural-Sound-Toolkit-master" : "",
        "Gesture&Sound" : "1.4",
        "Gesture&Sound-2014-11-Max-6-7" : "",
        "gl3" : "0.3.3",
        "go" : "1.0.0",
        "Grainflow" : "1.2.0",
        "hap" : "1.0.6",
        "HISSTools Impulse Response Toolbox (HIRT)" : "2.1.1",
        "ICST Ambisonics" : "3.0.2",
        "ircam-antescofo" : "",
        "ircam-omax_y-Max6.1" : "",
        "ISF" : "1.0.3",
        "jasch objects" : "0.8.3",
        "jg.spectdelay 64-bit beta" : "",
        "jit.mo" : "1.1.6",
        "Jitter Tools" : "1.0.10",
        "Max for the Visual Arts" : "2.55.3",
        "Max ToolBox" : "15",
        "max-mxj" : "8.2.0",
        "maxforlive-elements" : "1.0.9",
        "MaxSoundBox" : "06-2023",
        "MC Movement Studies" : "1.0.2",
        "MIAP_for_Max" : "",
        "Mira" : "1.2.1",
        "Miraweb" : "1.2.7",
        "ml.lib" : "1.1.5",
        "ml.star" : "1.3.0",
        "mo_package" : "",
        "Modalys" : "3.8.1",
        "MuBu For Max" : "1.10.8",
        "Node for Max" : "2.0.4",
        "odot" : "1.3.4",
        "PaletteGrab-master" : "",
        "petra" : "1.2.0",
        "qn-client-server" : "2.0.0.13",
        "RNBO" : "1.2.1",
        "RTC-lib" : "8.3.0",
        "sc-max" : "0.1.",
        "smFilterPack" : "0.0.3",
        "Sound Design Toolkit" : "3.0.0",
        "spat5" : "5.3.1",
        "SuperVPMaxMSP" : "",
        "Syphon" : "1.0.9",
        "UltraLeap" : "",
        "uPattr" : "",
        "VIDDLL" : "1.2.8",
        "Virtual Sound Macros" : "",
        "Vizzie" : "2.2.2",
        "XRAY" : "1.0.2",
        "z.abstractions" : "",
        "zero" : "1.0.4",
        "zsa.descriptors" : "1.3.0"
    }

}