Not able to build latest AWS SDK for C++ VS2022 x64

0

The error is documented here: https://github.com/awsdocs/aws-doc-sdk-examples/issues/6290#issuecomment-2025765389

Story: I have previously used vcpkg to build the API libs. But now I need to access the AWS appsync functionality. The API page for the appsync indicated it was introduced in a version later than I currently had. I tried vcpkg, but ran into a strange error (https://github.com/microsoft/vcpkg/issues/37805)

Stuck, I decided to just build the API from source. Simple 5 step process, but it's not going well.

Gunnar
asked a month ago316 views
1 Answer
0
Accepted Answer

I wasn't able to build the aws-sdk-cpp directly without errors, so I went back to vcpkg.

Lesson is that packages with Features can't be upgraded. Also, make sure to remove all related packages before attempting to install again.

Won't work: PS C:\Dev\Couloir\3pLibs\vcpkg> ./vcpkg upgrade aws-sdk-cpp[apigateway,apigatewayv2,appsync,autoscaling,autoscaling-plans,budgets,core,dynamodb,ec2,email,glacier,iam,imagebuilder,lambda,lex,lex-models,location,logs,managedblockchain,pricing,rds,rds-data,s3,secretsmanager,sms,sns,sqs,translate,wellarchitected,xray]:x64-windows-static-md error: List of features is not allowed in this context

My updated procedure: UPDATE

  1. Open Windows Powershell
  2. cd C:\Dev\Couloir\3pLibs\vcpkg
  3. ./bootstrap-vcpkg.bat
  4. git pull
  5. ./vcpkg update (to see what is out of date)
  6. install or upgrade from PACKAGE LIST (or all at once: ./vcpkg upgrade --no-dry-run)

FIRST TIME

  1. install 64 bit git (https://git-scm.com/download/win)
  2. Open Windows Powershell
  3. cd C:\Dev\Couloir\3pLibs
  4. git clone https://github.com/Microsoft/vcpkg
Gunnar
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions