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
gefragt vor einem Monat333 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen