jmpews / Dobby

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

fatal error: 'core/arch/Cpu.h' file not found #237

Open xiaoxu1234 opened 1 year ago

xiaoxu1234 commented 1 year ago

-- The C compiler identification is AppleClang 15.0.0.15000029 -- The CXX compiler identification is AppleClang 15.0.0.15000029

-- * build environment check *** -- Compiler: AppleClang -- Processor: x86_64 -- System: macOS -- *** -- -- CMAKE_C_COMPILER: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- CMAKE_CXX_COMPILER: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- CMAKE_C_FLAGS: -fvisibility=hidden -fPIC -fno-stack-check -fno-stack-protector -fno-exceptions -fno-rtti -fno-common -fno-zero-initialized-in-bss -O3 -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -- CMAKE_CXX_FLAGS: -fvisibility=hidden -fPIC -fno-stack-check -fno-stack-protector -fno-exceptions -fno-rtti -fno-common -fno-zero-initialized-in-bss -O3 -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -- CMAKE_SHARED_LINKER_FLAGS: -- [Dobby] CMAKE_BUILD_TYPE: -- [Dobby] DOBBY_DEBUG: OFF -- [Dobby] NearBranch: ON -- [Dobby] FullFloatingPointRegisterPack: OFF -- [Dobby] Plugin.SymbolResolver: ON -- [Dobby] Plugin.ImportTableReplace: OFF -- [Dobby] Plugin.Android.BionicLinkerUtil: OFF -- [Dobby] DOBBY_BUILD_EXAMPLE: OFF -- [Dobby] DOBBY_BUILD_TEST: OFF -- [Dobby] DOBBY_BUILD_KERNEL_MODE: OFF -- [Dobby] Private.Obfuscation: OFF -- [Dobby] Dobby-20230630-d95b5c9

Dobby/./source/core/arch/x64/registers-x64.h:5:10: fatal error: 'core/arch/Cpu.h' file not found

include "core/arch/Cpu.h"

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

include "core/arch/Cpu.h"

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

include "core/arch/Cpu.h"

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

1 error generated. 1 error generated. 1 error generated. make[2]: make[2]: [CMakeFiles/dobby_static.dir/source/core/assembler/assembler-x64.cc.o] Error 1 [CMakeFiles/dobby.dir/source/core/assembler/assembler-x64.cc.o] Error 1 make[2]: [CMakeFiles/DobbyX.dir/source/core/assembler/assembler-x64.cc.o] Error 1 make[1]: [CMakeFiles/dobby.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/DobbyX.dir/all] Error 2 make[1]: *** [CMakeFiles/dobby_static.dir/all] Error 2 [ 7%] Linking CXX static library liblogging.a [ 7%] Built target logging

i use Dobby-dev branch, to build Dobby as follows:

cd Dobby &cmake "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" .. &make -j4

Yehh22 commented 5 months ago

Same issue

lducsm commented 4 months ago

only core/arch/CpuRegister.h

demoSSD commented 2 months ago

The latest version has a problem and cannot be compiled. It requires: git checkout 0932d69c320e786672361ab53825ba8f4245e9d3