zyantific / zydis

Fast and lightweight x86/x86-64 disassembler and code generation library
https://zydis.re
MIT License
3.36k stars 431 forks source link

make error.呆瓜开发者,md有毒吧 #519

Open 0xbbbbbbbb opened 1 month ago

0xbbbbbbbb commented 1 month ago

root@ubuntu:/home/niuma/Desktop/zydis# cmake -B build CMake Error: The source directory "/home/niuma/Desktop/zydis/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. root@ubuntu:/home/niuma/Desktop/zydis# cmake --build build -j4 Unknown argument -j4 Usage: cmake --build

[options] [-- [native-options]] Options:

= Project binary directory to be built. --target = Build instead of default targets. May only be specified once. --config = For multi-configuration tools, choose . --clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.) --use-stderr = Ignored. Behavior is default in CMake >= 3.0. -- = Pass remaining options to the native tool. root@ubuntu:/home/niuma/Desktop/zydis# wdf,什么东西?
ZehMatt commented 1 month ago

Try cmake . -B build

0xbbbbbbbb commented 1 month ago

Try cmake . -B build

root@ubuntu:/home/niuma/Desktop/zydis# cmake . -B build CMake Error: The source directory "/home/niuma/Desktop/zydis/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. root@ubuntu:/home/niuma/Desktop/zydis#

no ok

0xbbbbbbbb commented 1 month ago

so?

mappzor commented 1 month ago

root@ubuntu:/home/niuma/Desktop/zydis# cmake -B build CMake Error: The source directory "/home/niuma/Desktop/zydis/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. root@ubuntu:/home/niuma/Desktop/zydis# cmake --build build -j4 Unknown argument -j4

Highlighted errors suggest that cmake version might be an issue. What's your cmake --version?

0xbbbbbbbb commented 1 month ago

newest

mappzor @.***> 于 2024年8月2日周五 22:35写道:

@.:/home/niuma/Desktop/zydis# cmake -B build CMake Error: The source directory "/home/niuma/Desktop/zydis/build" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. @.:/home/niuma/Desktop/zydis# cmake --build build -j4 Unknown argument -j4

Highlighted errors suggest that cmake version might be an issue. What's your cmake --version?

— Reply to this email directly, view it on GitHub https://github.com/zyantific/zydis/issues/519#issuecomment-2265538825, or unsubscribe https://github.com/notifications/unsubscribe-auth/A57NDXF73ANV52C6WLKAI5TZPOKJTAVCNFSM6AAAAABL4QU4ZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRVGUZTQOBSGU . You are receiving this because you authored the thread.Message ID: @.***>

mappzor commented 1 month ago

Can you provide full version number? It looks really suspicious that -j4 isn't recognized. Also cmake -B build should be treated as current working directory is my source directory and build directory is "build". In your case that doesn't happen for some reason. Syntax problems usually indicate version issues.

Anyway I'd use syntax that should always work:

git clone --recursive 'https://github.com/zyantific/zydis.git'
cd zydis
mkdir build
cd build
cmake ..
cmake --build .

It's more verbose but it should be bulletproof.

0xbbbbbbbb commented 1 month ago

Tomorrow I try

mappzor @.***> 于 2024年8月2日周五 23:19写道:

Can you provide full version number? It looks really suspicious that -j4 isn't recognized. Also cmake -B build should be treated as current working directory is my source directory and build directory is "build". In your case that doesn't happen for some reason. Syntax problems usually indicate version issues.

Anyway I'd use syntax that should always work:

git clone --recursive 'https://github.com/zyantific/zydis.git' cd zydis mkdir build cd build cmake .. cmake --build .

It's more verbose but it should be bulletproof.

— Reply to this email directly, view it on GitHub https://github.com/zyantific/zydis/issues/519#issuecomment-2265630776, or unsubscribe https://github.com/notifications/unsubscribe-auth/A57NDXC3O5RGXLZA436XLRLZPOPPDAVCNFSM6AAAAABL4QU4ZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRVGYZTANZXGY . You are receiving this because you authored the thread.Message ID: @.***>