微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

AWS开发工具包C ++安装/ Embarcadero:CMake错误-fPIC

如何解决AWS开发工具包C ++安装/ Embarcadero:CMake错误-fPIC

我正在尝试安装AWS开发工具包C ++,以便与C ++构建器Embarcadero 10.3 Rio一起使用。

在此站点上找到了一些技巧后,我被困在这一点上,想知道与embarcadero的兼容性... 错误是: 错误E2075:不正确的命令行选项:-fPIC。

来自cmake的完整消息是:

C:\AWS_SDK>cmake C:\aws-sdk-cpp -D CMAKE_BUILD_TYPE=Debug -D BUILD_ONLY="s3" -DTARGET_ARCH=WINDOWS -G"Borland Makefiles" -DCMAKE_CXX_COMPILER="bcc32c.exe" -DCMAKE_C_COMPILER="bcc32c.exe" -DCMAKE_VERBOSE_MAKEFILE=1 ..
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1")
-- Building AWS libraries as shared objects
-- Generating windows build config
-- Building project version: 1.8.41
-- The C compiler identification is Embarcadero 7.40.36556
-- The CXX compiler identification is Embarcadero 7.40.36556
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32.exe - skipped
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32.exe - skipped
-- Configuring done
-- Generating done
-- Build files have been written to: C:/AWS_SDK/.deps
MAKE Version 5.41  copyright (c) 1987,2014 Embarcadero Technologies,Inc.
MAKE Version 5.41  copyright (c) 1987,Inc.
Scanning dependencies of target AwsChecksums
MAKE Version 5.41  copyright (c) 1987,Inc.
[  4%] Creating directories for 'AwsChecksums'
[  8%] Performing download step (git clone) for 'AwsChecksums'
cloning into 'AwsChecksums'...
Note: switching to 'v0.1.5'.
You are in 'detached HEAD' state. You can look around,make experimental
changes and commit them,and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create,you may
do so (Now or later) by using -c with the switch command. Example:
  git switch -c <new-branch-name>
Or undo this operation with:
  git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is Now at 519d6d9 Don't return 0 on arm please (#22)
[ 12%] No update step for 'AwsChecksums'
[ 16%] No patch step for 'AwsChecksums'
[ 20%] Performing configure step for 'AwsChecksums'
-- The C compiler identification is Embarcadero 7.40.36556
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Embarcadero/Studio/20.0/bin/bcc32.exe - skipped
-- Configuring done
-- Generating done
-- Build files have been written to: C:/AWS_SDK/.deps/build/src/AwsChecksums-build
[ 25%] Performing build step for 'AwsChecksums'
MAKE Version 5.41  copyright (c) 1987,Inc.
Scanning dependencies of target aws-checksums
MAKE Version 5.41  copyright (c) 1987,Inc.
[  8%] Building C object CMakeFiles/aws-checksums.dir/source/arm/cpuid_arm.c.obj
Embarcadero C++ 7.40 pour Win32 copyright (c) 1993-2017 Embarcadero Technologies,Inc.
**Erreur E2075: Option ligne de commande incorrecte : -fPIC**
** error 1 ** deleting CMakeFiles\aws-checksums.dir\source\arm\cpuid_arm.c.obj
** error 1 ** deleting CMakeFiles\aws-checksums.dir\all
** error 1 ** deleting all
** error 1 ** deleting build\src\AwsChecksums-stamp\AwsChecksums-build
** error 1 ** deleting CMakeFiles\AwsChecksums.dir\all
** error 1 ** deleting all
CMake Error at CMakeLists.txt:224 (message):
  Failed to build third-party libraries.

-- Configuring incomplete,errors occurred!**

有人在Windows上成功安装了带有Embarcadero C ++的SDK吗?

您是否有解决错误的想法?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。