Skip to content

abl_link~ external won’t compile with libpd #33

@jrdooley

Description

@jrdooley

system:
macOS Monterey 12.5.1
Apple M1 processor

Objective:
Compile macOS exectuable of libpd with the abl_link~ external.

Issue:
I’m compiling a c++ program based on the libpd c++ rtaudio example using the provided libpd makefile. The code successfully compiles on its own. When I try to compile it with the abl_link~ external, compilation fails. I’m following the C++ instructions as found here

The console spits out the following error:

g++ -o ../../build/formulsengine formulsengine/PdObject.o formulsengine/main.o formulsengine/RtAudio.o ../libs/libpd/libs/libpd.dylib ../libs/libpd/libs/libpd.dylib -framework Foundation -framework CoreAudio
Undefined symbols for architecture arm64:
  "_abl_link_tilde_setup", referenced from:
      init(int, int, int) in main.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [../../build/formulsengine] Error 1

Is this a libpd error or abl_link~ error? I am able to compile the abl_link~ external on its own and load it in regular pd. I have tried loading the compiled external in libpd, but the object doesn’t register/load/instantiate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions