Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpp编译错误 #426

Open
liaohengrui opened this issue Nov 28, 2022 · 0 comments
Open

cpp编译错误 #426

liaohengrui opened this issue Nov 28, 2022 · 0 comments

Comments

@liaohengrui
Copy link

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

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

No branches or pull requests

1 participant