Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

macOS编译报错 #8

Open
jkhuangfu opened this issue Sep 8, 2020 · 8 comments
Open

macOS编译报错 #8

jkhuangfu opened this issue Sep 8, 2020 · 8 comments

Comments

@jkhuangfu
Copy link

jkhuangfu commented Sep 8, 2020

下载的 https://codeload.github.com/HeQuanX/navicat-keygen-tools/zip/recommended

g++ -std=c++17 -O2
-I./common/
-I/usr/local/opt/[email protected]/include -L/usr/local/opt/[email protected]/lib


./navicat-patcher/CapstoneDisassembler.cpp ./navicat-patcher/KeystoneAssembler.cpp ./navicat-patcher/Elf64Interpreter.cpp ./navicat-patcher/Misc.cpp ./navicat-patcher/PatchSolution.cpp ./navicat-patcher/PatchSolution0.cpp ./navicat-patcher/main.cpp -o ./bin/navicat-patcher -lcrypto -lcapstone -lkeystone
In file included from ./navicat-patcher/Elf64Interpreter.cpp:1:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/PatchSolution.cpp:1:
In file included from ./navicat-patcher/PatchSolutions.hpp:3:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/PatchSolution0.cpp:1:
In file included from ./navicat-patcher/PatchSolutions.hpp:3:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/main.cpp:11:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [patcher] Error 1

@crabapples-h
Copy link
Owner

下载的 https://codeload.github.com/HeQuanX/navicat-keygen-tools/zip/recommended

g++ -std=c++17 -O2
-I./common/
-I/usr/local/opt/[email protected]/include -L/usr/local/opt/[email protected]/lib

./navicat-patcher/CapstoneDisassembler.cpp ./navicat-patcher/KeystoneAssembler.cpp ./navicat-patcher/Elf64Interpreter.cpp ./navicat-patcher/Misc.cpp ./navicat-patcher/PatchSolution.cpp ./navicat-patcher/PatchSolution0.cpp ./navicat-patcher/main.cpp -o ./bin/navicat-patcher -lcrypto -lcapstone -lkeystone
In file included from ./navicat-patcher/Elf64Interpreter.cpp:1:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/PatchSolution.cpp:1:
In file included from ./navicat-patcher/PatchSolutions.hpp:3:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/PatchSolution0.cpp:1:
In file included from ./navicat-patcher/PatchSolutions.hpp:3:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/main.cpp:11:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [patcher] Error 1

额,那个是linux版的

@jkhuangfu
Copy link
Author

下载的 https://codeload.github.com/HeQuanX/navicat-keygen-tools/zip/recommended
g++ -std=c++17 -O2
-I./common/
-I/usr/local/opt/[email protected]/include -L/usr/local/opt/[email protected]/lib
./navicat-patcher/CapstoneDisassembler.cpp ./navicat-patcher/KeystoneAssembler.cpp ./navicat-patcher/Elf64Interpreter.cpp ./navicat-patcher/Misc.cpp ./navicat-patcher/PatchSolution.cpp ./navicat-patcher/PatchSolution0.cpp ./navicat-patcher/main.cpp -o ./bin/navicat-patcher -lcrypto -lcapstone -lkeystone
In file included from ./navicat-patcher/Elf64Interpreter.cpp:1:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/PatchSolution.cpp:1:
In file included from ./navicat-patcher/PatchSolutions.hpp:3:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/PatchSolution0.cpp:1:
In file included from ./navicat-patcher/PatchSolutions.hpp:3:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
In file included from ./navicat-patcher/main.cpp:11:
./navicat-patcher/Elf64Interpreter.hpp:5:14: fatal error: 'libelf/libelf.h' file
not found
#include <libelf/libelf.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make: *** [patcher] Error 1

额,那个是linux版的

大佬有mac版没

@ddquk
Copy link

ddquk commented Sep 26, 2020

我编译也报错
lilei@LiLeis-MBP ~ % cd navicat-keygen-tools
lilei@LiLeis-MBP navicat-keygen-tools % make all
g++ -std=c++17 -O2
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib



-lcrypto -lcapstone -lkeystone -lplist++ ./navicat-patcher/CapstoneDisassembler.cpp ./navicat-patcher/KeystoneAssembler.cpp ./navicat-patcher/X64ImageInterpreter.cpp ./navicat-patcher/HelperIsResolvedTo.cpp ./navicat-patcher/HelperPrintMemory.cpp ./navicat-patcher/PatchSolution0.cpp ./navicat-patcher/PatchSolution1.cpp ./navicat-patcher/PatchSolution2.cpp ./navicat-patcher/main.cpp -o ./bin/navicat-patcher
ld: library not found for -lplist++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [patcher] Error 1

@Creator1024
Copy link

要切到mac分支安装相应的依赖后再编译(默认是linux分支)

git checkout mac

@Spute
Copy link

Spute commented Oct 28, 2020

./navicat-patcher /Applications/Navicat\ Premium.app/

  •   Navicat Patcher by @DoubleLabyrinth       *
    
  •              Version: 4.0                   *
    

Press Enter to continue or Ctrl + C to abort.

[*] Your Navicat version: 15.0.22

[-] PatchSolution0 ...... Omitted.
[-] PatchSolution1 ...... Omitted.
[-] PatchSolution2 ...... Omitted.
[-] Patch abort. None of PatchSolutions will be applied.
Are you sure your Navicat has not been patched before?

Mac碰到这个问题,这是因为不支持15.0.22版本的navicat吗?请问该怎么解决?

@PouLJenny
Copy link

我编译也报错
lilei@LiLeis-MBP ~ % cd navicat-keygen-tools
lilei@LiLeis-MBP navicat-keygen-tools % make all
g++ -std=c++17 -O2
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

-lcrypto -lcapstone -lkeystone -lplist++ ./navicat-patcher/CapstoneDisassembler.cpp ./navicat-patcher/KeystoneAssembler.cpp ./navicat-patcher/X64ImageInterpreter.cpp ./navicat-patcher/HelperIsResolvedTo.cpp ./navicat-patcher/HelperPrintMemory.cpp ./navicat-patcher/PatchSolution0.cpp ./navicat-patcher/PatchSolution1.cpp ./navicat-patcher/PatchSolution2.cpp ./navicat-patcher/main.cpp -o ./bin/navicat-patcher
ld: library not found for -lplist++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [patcher] Error 1

我也是报这个错 你解决了没
系统 macos big sur 11.1
代码分支 mac

@Coool
Copy link

Coool commented Jun 6, 2021

Hi!

I'm struggling to compile working version on macOS. Fighting with c++17 and filesystem include errors. Is navicat-keygen original source for macOS or it's some old copy of your work? What is system spec where you compile your macOS patch? My is Mojove 10.14.6 and Xcode 11.3.1.

clang -v
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Can you update build guide for macOS?

Thanks.

@DunnCodeSpace
Copy link

我编译也报错
lilei@LiLeis-MBP ~ % cd navicat-keygen-tools
lilei@LiLeis-MBP navicat-keygen-tools % make all
g++ -std=c++17 -O2
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
-lcrypto -lcapstone -lkeystone -lplist++ ./navicat-patcher/CapstoneDisassembler.cpp ./navicat-patcher/KeystoneAssembler.cpp ./navicat-patcher/X64ImageInterpreter.cpp ./navicat-patcher/HelperIsResolvedTo.cpp ./navicat-patcher/HelperPrintMemory.cpp ./navicat-patcher/PatchSolution0.cpp ./navicat-patcher/PatchSolution1.cpp ./navicat-patcher/PatchSolution2.cpp ./navicat-patcher/main.cpp -o ./bin/navicat-patcher
ld: library not found for -lplist++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [patcher] Error 1

我也是报这个错 你解决了没
系统 macos big sur 11.1
代码分支 mac

请问解决了吗?我也报了这个错

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants