googleprojectzero / functionsimsearch

Some C++ example code to demonstrate how to perform code similarity searches using SimHashing.
Apache License 2.0
559 stars 97 forks source link

Problems while building functionsimsearch #20

Closed whj0401 closed 2 years ago

whj0401 commented 3 years ago

While building functionsimsearch, I met the following error.

disassembly/pecodesource.cpp:15:10: fatal error: third_party/pe-parse/pe-parser-library/include/parser-library/parse.h: No such file or directory
 #include "third_party/pe-parse/pe-parser-library/include/parser-library/parse.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [build/pecodesource.o] Error 1
make: *** Waiting for unfinished jobs....

I guess the dependency of pe-parse is outdated. Could you provide the correct version? Thanks.

In-the-sky commented 2 years ago

I encountered the same problem, do you have a solution?

whj0401 commented 2 years ago

I encountered the same problem, do you have a solution?

It is caused by the change of pe-parser. The latest version does not have the head file. I remembered I solved it with an older version. see https://github.com/trailofbits/pe-parse/releases/tag/v1.1.0.rc.2

Hope it can help you.

In-the-sky commented 2 years ago

Thank you very much, I will try it now.