trojan-gfw / igniter

A trojan client for Android (UNDER CONSTRUCTION).
GNU General Public License v3.0
3.3k stars 736 forks source link

cpp编译错误 #426

Open liaohengrui opened 2 years ago

liaohengrui commented 2 years ago

FAILED: cmd.exe /C "cd . && C:\Users\lhr\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android21 --sysroot=C:/Users/lhr/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libjni-helper.so -o C:\Users\lhr\Desktop\igniter-0.1.0-pre-alpha13\app\build\intermediates\cmake\debug\obj\arm64-v8a\libjni-helper.so CMakeFiles/jni-helper.dir/jni-helper.cpp.o libtrojan.a C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libboost_program_options.a C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libboost_system.a C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libssl.a C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a -llog -latomic -lm && cd ." ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol 'OPENSSL_armcap_P'; recompile with -fPIC

defined in C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a(armcap.o) referenced by chacha-armv8.o:(.text+0x20) in archive C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol 'OPENSSL_armcap_P'; recompile with -fPIC defined in C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a(armcap.o) referenced by poly1305-armv8.o:(.text+0x9A0) in archive C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol 'OPENSSL_armcap_P'; recompile with -fPIC defined in C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a(armcap.o) referenced by sha1-armv8.o:(.text+0x1240) in archive C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol 'OPENSSL_armcap_P'; recompile with -fPIC defined in C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a(armcap.o) referenced by sha256-armv8.o:(.text+0xF88) in archive C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a ld: error: relocation R_AARCH64_PREL64 cannot be used against symbol 'OPENSSL_armcap_P'; recompile with -fPIC defined in C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a(armcap.o) referenced by sha512-armv8.o:(.text+0x1108) in archive C:/Users/lhr/Desktop/igniter-0.1.0-pre-alpha13/app/src/main/cpp/libs/lib/arm64-v8a/libcrypto.a clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

Task :app:externalNativeBuildDebug FAILED