Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld-elf.so.1: /usr/local/lib/libblend2d.so: Undefined symbol "_ZN6asmjit12ErrorHandlerD2Ev" #57

Closed
yurivict opened this issue Jan 10, 2020 · 3 comments

Comments

@yurivict
Copy link

It looks like you forgot -lasmjit when you linked the library.

asmjit is installed from the FreeBSD package (that I just created).
It should be able to link to the library from there properly.

Yuri

@kobalicek
Copy link
Member

kobalicek commented Jan 12, 2020

I would strongly advise to not link asmjit dynamically in this case - asmjit doesn't guarantee ABI stability so it's like asking for trouble. This is the main reason asmjit is bundled in Blend2D source packages and embedded in Blend2D.

Another reason is that these two projects are developed very closely, so when there is a new thing added to asmjit it can be immediately used by Blend2D.

@kobalicek
Copy link
Member

kobalicek commented Jan 27, 2020

In retrospective, I will add an option to link asmjit dynamically, but it won't be the default. I still think that statically linking asmjit is the right thing to do at the moment.

@kobalicek
Copy link
Member

This should be fixed in master and 0.11.1 version. There is a new CMake option BLEND2D_EXTERNAL_ASMJIT, which would instrument cmake to use non-bundled (possibly system) AsmJit.

I still don't recommend this, but it's now possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants