-
Greetings! I need to use AWS SDK in a project that has four configurations "Debug, RelWithDebInfo, MinSizeRel, and Release" If I follow the instructions to build and install the SDK from source, it seems I can only have one configuration installed at a time.
I need to run both debug and release configurations of my code. What is the intended usage here? My project is currently in development and I am frequently switching between debug and release configurations. This seems like it would be a common use case but I'm having some difficulty getting this set up. Any input on best practices would be much appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can build this sdk into two different folders and then point to each one when you want to switch between debug and release. i.e. |
Beta Was this translation helpful? Give feedback.
-
I was able to solve this by manually adding all the libs the SDK requires. I was not able to use cmakes findpackage function to find the debug and release versions of the SDK. If i tell cmake:
CMake will find the first one, and no matter what I tried, the second findpackage() would always refer back to the first package already loaded. So I attempted to manually add the .libs from aws-cpp-sdk/all/lib. This didn't work at first until I discovered that the findpackage scripts add additional libs that are not in those folders! Once I added ALL of the the libs the sdk requires, I was able to build successfully. Below is what I added to my project's cmakelists.txt in order to link to debug and release builds of the SDK with s3. Note that the debug build of the sdk does not include pdb files. This appears to be a known issue. So I added an additional line at the end to suppress LNK 4099 warnings that pdb files are missing. As long as I am certain that other libraries I use in my projects have pdb files this should not be problem.
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I was able to solve this by manually adding all the libs the SDK requires.
I was not able to use cmakes findpackage function to find the debug and release versions of the SDK. If i tell cmake:
CMake will find the first one, and no matter what I tried, the second findpackage() would always refer back to the first package already loaded.
So I attempted to manually add the .libs from aws-cpp-sdk/all/lib. This didn't work at first until I discovered that the findpackage scripts add additional libs that are not in those folders! Once I added ALL of the the libs the sdk requires, I was able to build successfully. Below is what I added to my project…