Closed matsujirushi closed 4 years ago
Hi,
The project on the github should be ok, but similar error message seems to pop up in some building environments in some other case.
Can you test the following step first to see if it works in your environment or not? Replace the original CMakeLists.txt and CMakeSettings.json in the app folder with the attached ones, then generate cmake cache. cmake.zip
If the error still exists, remove the following lines in the updated CMakeSettings.json and generate cache again.
{
"name": "AZURE_SPHERE_DEFAULT_CMAKE_PATH",
"value": "${env.AzureSphereDefaultSDKDir}CMakeFiles\\"
}
Let me know whether it helps.
Hi, Thank you for reply.
Replace the original CMakeLists.txt and CMakeSettings.json in the app folder with the attached ones, then generate cmake cache.
If the error still exists, remove the following lines in the updated CMakeSettings.json and generate cache again.
Hi,
Thanks for the update, then it looks to be a different case. This kind of error seems to occur in some build environments after upgrading Azure Sphere SDK to 20.07, and strangely it can't be seen in our environments.
Did you try this code with the previous Azure Sphere SDK 20.04? And did you also try other sample code (like samples for freeRTOS) but the error still existed?
Hi,
Can you try the following moves again with the attachment to see if it works or not? cmake_20200901.zip
Thanks!
Hi @kevinwh-chou , It work!
Copy cmake_20200901.zip to project folder. (No need to copy AzureSphereRTCoreToolchainMTK.cmake.)
If you want, I can test all projects and create PR.
Hi Matsuoka-san,
Thank you very much for your kindly support. We have figured out some solutions (which are a little bit different for BareMetal and FreeRTOS) and will put to GitHub soon.
This issue seems to happen only on some Windows PC. In the past few days, I could not reproduce this build error problem until today I got a new PC and installed the Visual Studio & Azure Sphere SDK from scratch. This issue seems to be caused by some environment variable configuration changes due to SDK update. We will adjust the environment variable configurations in the CMake files.
Hi Matsuoka-san, This issue is fixed in release_200911. If you see any further problems, you could reopen this issue.
When create CMake cache, I got error below.
log.txt
Azure Sphere SDK is 20.07.