Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
927 stars 209 forks source link

Building latest api with old bn release triggers large amount of `undefined reference to` #4231

Closed Learner0x5a closed 1 year ago

Learner0x5a commented 1 year ago

Version and Platform (required):

Bug Description: I'm building the latest binaryninja-api with an old bn (bn-release-3.1.3469-linux) in headless mode. When I specify cmake -S . -B build -DHEADLESS=ON, everything is fine. But there are a lot of undefined reference to when -DBN_API_BUILD_EXAMPLES=ON added.

Steps To Reproduce:

git clone https://github.com/Vector35/binaryninja-api.git
cd binaryninja-api
git submodule update --init --recursive
cmake -S . -B build -DHEADLESS=ON -DBN_API_BUILD_EXAMPLES=ON
cmake --build build -j24

Expected Behavior: Expected to build with no error.

Screenshots: image

negasora commented 1 year ago

Building the API with a mismatched version of the core is unsupported. Check api_REVISION.txt (in the base directory of your binja install) for the proper API version to use.

Learner0x5a commented 1 year ago

Building the API with a mismatched version of the core is unsupported. Check api_REVISION.txt (in the base directory of your binja install) for the proper API version to use.

OK. Thank you!