I am trying to install the open source version of SAM, but I am encountering some difficulties. Now I am building Debug and Release for the project
But every time I try, there is a error that some files are not found, e.g.:
"Error C1083 Cannot open include file: '../../../lib/vc_x64_lib/mswd/wx/setup.h': No such file or directory (compiling source file ..\src\codegen.cpp) lk_vc14 C:\sam_dev\lk\include\wx\setup.h "
In the GitHub guide it is written that could be due to the environment variables, or that the release and debug of wxWidget for the desired version was not done. I checked multiple times and this steps were performed correctly.
Looking at the folder, in the vc_x64_lib, the folder are called "mswu" and "mswud". In these folders there is the file setup.h. I tried to change the name according to what the error says, but nothing changed. How can I fix this problem?
I am using visual studio 2019, because Visual Studio 17 was not working, this could be the reason?
Thank you in advance to dedicate some time to my issue.
thank you for your answer. I had set the environment variables under "user variables", after your comment I set the environment variables also under the "system variables", and I didn't have that problem anymore.
I would like to point out, that building solutions for debug and release of SSC with Visual Studio 2019, will require to add the line "#include <stdexcept>" to some files in order to compile. This comment in the wiki guide of GitHub could help new users to install SAM "open source".
We are also moving to cmake soon and will be updating the build process and instructions accordingly. This should streamline the process and avoid issues with environment variables and building multiple code repositories.