-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to locate binaries when building "Hello S3" app #2576
Comments
Hi, |
Can you try using the updated build instructions found here cmake ..\aws-sdk-cpp -DCMAKE_BUILD_TYPE=Debug -DBUILD_ONLY="s3;mediastore" -DENABLE_TESTING=OFF
cmake --build . --config=Debug
cmake --install . --config=Debug |
Thank you for your reply. |
It looks like some of the files are not being put in the correct folder when this sdk is being installed on Windows. Working on a fix for this. But as temporary workaround is to manually move the files yourself. The default install location for this sdk is |
After copying all files in |
Glad to hear that works for you now. This should be permanently fixed with this PR. Updating to the latest version of the sdk should fix this for you. Please let me know if you still have any problems with building on Windows. |
No linker problem occurs after updating to the latest version (1.11.123). |
|
Describe the bug
I'm setting up aws-sdk-cpp following the instruction in this page and tried to build "Hello S3" sample app.
But build stops finding sdk libraries.
Expected Behavior
Build "Hello S3" app.
Current Behavior
cmake generates this error message and stop building.
Reproduction Steps
I cloned git repository and made build directory outside of git folder.
I run these commands and complete installing sdk to
C:/Program Files/aws-cpp-sdk-all
.I created main.cpp and CMakeLists.txt that is copied from "Hello S3" page but amended CMAKE_BUILD_TYPE to Release and run this command.
Possible Solution
No response
Additional Information/Context
I add
-DCMAKE_FIND_DEBUG_MODE=1
flag to build command for "Sample S3" app and got those lines.It seems that cmake trying to find aws-cpp-sdk-core.lib in aws-cpp-sdk-all/lib directory but it is located in aws-cpp-sdk-all/bin.
I checked
C:\Program Files\aws-cpp-sdk-all\lib\cmake\AWSSDK\AWSSDKConfig.cmake
and found these lines. (Lines 112-119)And I replaced ${AWSSDK_INSTALL_LIBDIR} with ${AWSSDK_INSTALL_BINDIR}, but another error occurs.
Here's a log.
It seems that cmake trying to find aws-cpp-sdk-core.dll in aws-cpp-sdk-all/lib directory but it is located in aws-cpp-sdk-all/bin too.
AWS CPP SDK version used
1.11.117
Compiler and Version used
Visual Studio 2015 Community / Build Engine version 14.0.25420.1
Operating System and version
Windows 10 Pro 22H2
The text was updated successfully, but these errors were encountered: