如何在 64 位 Solaris 上安装 AWS C++ SDK 库

How to install AWS C++ SDK libraries on Solaris as 64-bit

我遵循了有关如何在 Solaris 上安装 AWS C++ SDK 的指南 ,并且成功安装了它。问题是安装的 AWS 库是 32 位的而不是 64 位的。默认情况下,AWS 会尝试 link 到我的 OS 上的 64 位库文件,但由于 AWS 库是 32 位的,因此会导致以下错误:

ld: fatal: file /usr/lib/64/libssl.so: wrong ELF class: ELFCLASS64
ld: fatal: file processing errors. No output written to libaws-cpp-sdk-core.so
collect2: error: ld returned 1 exit status
gmake[2]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/build.make:2480: aws-cpp-sdk-core/libaws-cpp-sdk-core.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:173: aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/all] Error 2
gmake: *** [Makefile:128: all] Error 2

运行 file 在其中一个 .so 文件上(例如 libaws-cpp-sdk-core.so)returns 以下内容:

ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped

对我的 OS 上已有的库文件执行相同操作(例如 libssl.so)returns 以下内容:

ELF 64-bit LSB dynamic lib AMD64 Version 1, dynamically linked, not stripped

通过 AWS link 它尝试 link 的库文件的 32 位版本,我已经能够让所有东西在 32 位中工作,但我找不到任何信息如何在 64 位中构建 AWS 库,我不知道还有什么地方可以看。非常感谢任何帮助。

检查问题的评论以获得答案。