rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

undefined symbols on arm64 #371

Open benediktadams opened 5 months ago

benediktadams commented 5 months ago

Hi,

I'm trying to link to the rive-cpp library and I'm linking against the following libraries, which I could find after building through the provided build script at rive-cpp/build.sh

librive
librive_harfbuzz
librive_yoga
librive_sheenbidi

Linker on my project finds all these just fine, but then I get:

Undefined symbols for architecture arm64:
  "typeinfo for rive::ContainerComponent", referenced from:
      typeinfo for rive::WorldTransformComponentBase in libMy Project.a[36](include_my_rive_wrapper.o)
  "typeinfo for rive::Component", referenced from:
      typeinfo for rive::ContainerComponentBase in libMy Project.a[36](include_my_rive_wrapper.o)

Am I doing something wrong? Maybe it's worth mentioning I'm also linking against JUCE, which also has a Component class? But it doesn't seem like this is the issue, since I'm not getting duplicates.