jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.88k stars 794 forks source link

编译Mac库时报错 #252

Open tikejc opened 5 months ago

tikejc commented 5 months ago

运行命令:python3 scripts/platform_builder.py --platform=macos --arch=all 报错:source/core/assembler/assembler-x64.h:8:10: fatal error: 'MemoryAllocator/CodeBuffer/code_buffer_x64.h' file not found 、pac_kit.h:11:1: error: unknown type name 'template', 编译不通过

cmake version 3.28.1

DeHby commented 5 months ago

+1

qiushuitian commented 5 months ago

+1

/Users/dengjian/project/xxxx/poc/Dobby/./source/core/assembler/assembler-x64.h:8:10: fatal error: 'MemoryAllocator/CodeBuffer/code_buffer_x64.h' file not found

include "MemoryAllocator/CodeBuffer/code_buffer_x64.h"

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: [CMakeFiles/dobby.dir/build.make:202: CMakeFiles/dobby.dir/source/InstructionRelocation/x86/InstructionRelocationX86Shared.cc.o] Error 1 2 errors generated. make[3]: [CMakeFiles/dobby.dir/build.make:216: CMakeFiles/dobby.dir/source/InstructionRelocation/x64/InstructionRelocationX64.cc.o] Error 1 14 errors generated. make[3]: [CMakeFiles/dobby.dir/build.make:230: CMakeFiles/dobby.dir/source/InstructionRelocation/x86/x86_insn_decode/x86_insn_decode.c.o] Error 1 make[2]: [CMakeFiles/Makefile2:144: CMakeFiles/dobby.dir/all] Error 2 make[1]: [CMakeFiles/Makefile2:151: CMakeFiles/dobby.dir/rule] Error 2 make: [Makefile:124: dobby] Error 2 Traceback (most recent call last): File "/Volumes/devSSD/project/xxxx/poc/Dobby/scripts/platform_builder.py", line 243, in builder.build() File "/Volumes/devSSD/project/xxxx/poc/Dobby/scripts/platform_builder.py", line 75, in build subprocess.run("cmake --build . --clean-first --target dobby --target dobby_static -- -j8", cwd=self.cmake_build_dir, shell=True, check=True) File "/opt/anaconda3/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cmake --build . --clean-first --target dobby --target dobby_static -- -j8' returned non-zero exit status 2.

and I use this commit instand:

commit 52cc0286d9709ede91ac84d7260de21d2273b0af (HEAD) Author: jmpews jmpews@gmail.com Date: Fri Mar 3 12:54:12 2023 +0800

Cleanup code, and fix build script
tcc0lin commented 4 months ago

+1