Vector35 / binaryninja-api

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

Fail to compile the API due to missing functions #3673

Closed Dwijj22 closed 1 year ago

Dwijj22 commented 1 year ago

Hello Team,

I tried building the API's and used the command

cmake -S . -B build -DBN_API_BUILD_EXAMPLES=ON -DHEADLESS=ON

The output is in output.1 attached.

Next, I did

cmake --build build -j8

The output is in output.2 attached. I got a bunch of errors here. I tried both dev and master branches. I'd appreciate it if you could let me know what I'm doing wrong.

Output.1.pdf Output.2.pdf

xusheng6 commented 1 year ago

It looks like it cannot find the binary ninja core. So lots of functions are missing.

Did you supply DBN_INSTALL_DIR in your CMake command? It appears not from the above command line your provided, but in the Output.1.pdf, it shows it finds the binaryninjacore at /home/dj/binaryninja/libbinaryninjacore.so.1. If you did not supply DBN_INSTALL_DIR it should not be able to find out this path. Which confuses me.

fuzyll commented 1 year ago

This issue has been open for 3 weeks and isn't really something we can take further action on without more data. So, I'm going to close it for now. If this is still not working for you, please feel free to reopen it and we can assist you further.