dirkleas / rackcli

CLI for VCV Rack for managing your local rack installation and installed plugins
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

dlopen() fails on macos in src/cpp/rackenum.cpp #4

Closed dirkleas closed 6 years ago

dirkleas commented 6 years ago

trying to spike minimal plugin introspection with latest macos toolchain after importing/staging absolute minimal bits from Rack/plugin.cpp

Failed to load library /Users/XXX/Documents/Rack/plugins/cf/plugin.dylib
dlopen(/Users/XXX/Documents/Rack/plugins/cf/plugin.dylib, 2): Symbol not found: __ZN4rack11LightWidget4drawEP10NVGcontext
  Referenced from: /Users/XXX/Documents/Rack/plugins/cf/plugin.dylib
  Expected in: flat namespace
 in /Users/XXX/Documents/Rack/plugins/cf/plugin.dylib

same basic error message when hitting a different plugin (e.g. switched from cv to VCV-Console) -- perhaps I'm simply missing the family tree for the oo mechanics -- hoping to minimize includes

the objective is a minimal introspection cli with json output to be instrumented with other project tooling

dirkleas commented 6 years ago

here's a rack fork that gets the job done less some housekeeping, but I definitely don't want to have rackcli directly dependent on a rack (though a File.Introspect or File.Inspect option might be pretty delightful). still interested in resolving the above build error as the preferred approach

dirkleas commented 6 years ago

see closing comming, same here