aws-samples / amazon-polly-metahumans

This Unreal Engine sample project demonstrates how to bring Epic Games' MetaHuman digital characters to life using the Amazon Polly text-to-speech service from AWS. Use this project as a starting point for creating your own Unreal Engine applications that leverage Amazon Polly to give voice to your MetaHumans.
MIT No Attribution
178 stars 67 forks source link

Awssdk build error #16

Closed lucasjinreal closed 1 year ago

lucasjinreal commented 2 years ago

hirdParty/AwsSdk/aws-sdk-cpp/crt/aws-crt-cpp/crt/aws-c-common/source/posix/system_info.c:196:34: error: this old-style function definition is not preceded by a prototype [-Werror,-Wstrict-prototypes] const char *s_get_executable_path() { ^ 1 error generated. make[2]: [crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o] Error 1 make[1]: [crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/all] Error 2 make: *** [all] Error 2

cwalkere commented 2 years ago
RankoR commented 1 year ago

Same for me:

/Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/crt/aws-crt-cpp/crt/aws-c-common/source/posix/system_info.c:196:34: error: this old-style function definition is not preceded by a prototype [-Werror,-Wstri
const char *s_get_executable_path() {
                                 ^
1 error generated.
make[2]: *** [crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o] Error 1
make[1]: *** [crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/all] Error 2
make: *** [all] Error 2
Consolidate compiler generated dependencies of target aws-c-common
[  0%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o
/Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/crt/aws-crt-cpp/crt/aws-c-common/source/posix/system_info.c:196:34: error: this old-style function definition is not preceded by a prototype [-Werror,-Wstri
const char *s_get_executable_path() {
                                 ^
1 error generated.
make[2]: *** [crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o] Error 1
make[1]: *** [crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/all] Error 2
make: *** [all] Error 2
cp: /Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/_install/include: No such file or directory
ls: /Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/_install/lib/*.dylib: No such file or directory

macOS 12.5.1, Apple Silicon, CMake 3.24.1.

UPD: Updating to 1.9.344 fixes compilation, but tests are failing:

/Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/aws-cpp-sdk-core-tests/RunTests.cpp:40: Failure
Expected equality of these values:
  memorySystem.GetCurrentOutstandingAllocations()
    Which is: 20
  0ULL
    Which is: 0
/Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/aws-cpp-sdk-core-tests/RunTests.cpp:40: Failure
Expected equality of these values:
  memorySystem.GetCurrentBytesAllocated()
    Which is: 1696
  0ULL
    Which is: 0
/Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/aws-cpp-sdk-core-tests/RunTests.cpp:40: Failure
Value of: memorySystem.IsClean()
  Actual: false
Expected: true
aws-cpp-sdk-core-tests(50444,0x1009d8580) malloc: *** error for object 0x600001cf8668: pointer being freed was not allocated
aws-cpp-sdk-core-tests(50444,0x1009d8580) malloc: *** set a breakpoint in malloc_error_break to debug
/bin/sh: line 1: 50444 Abort trap: 6           ./aws-cpp-sdk-core-tests --gtest_shuffle --gtest_repeat=3
make[2]: *** [aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests] Error 134
make[2]: *** Deleting file `aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests'
make[1]: *** [aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/all] Error 2
make: *** [all] Error 2
mkdir: /Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/Mac: File exists
cp: /Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/_install/include: No such file or directory
ls: /Users/rankor/src/3rd-party/amazon-polly-metahumans/Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk/aws-sdk-cpp/_install/lib/*.dylib: No such file or directory

UPD2: Fixed by https://github.com/aws-samples/amazon-polly-metahumans/issues/10