-
Notifications
You must be signed in to change notification settings - Fork 208
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
Failed to run klayout.exe #1114
Comments
Please provide more information about your system, the build environment, version etc. |
I recently had problems with missing DLL-files in #1108. |
Well, building, running and debugging binaries takes some knowledge. I can't help with that - you need to be familiar with how DLLs are managed and how to debug DLL problems (Dependencies is my friend). In the sources you will find a script ( As @kongfu1994 has not yet explained what his actual problem is, I tend to close this issue. |
Please read the documentation carefully: Either you proceed like on Linux with "build.sh" (on MSYS2 MinGW 64 shell) or you use "./scripts/deploy-win-mingw.sh". In the latter case, use a standard MSYS2 shell, not MSYS MinGW. You will also need NSIS installed and it may be required to patch the build script to point it to NSIS. I recomment build.sh. I just checked myself and compilation passed with "build.sh". However, I found that with g++ 12.1 from current MSYS there is a problem with the instantiation of certain objects and klayout.exe will not start. I do not know yet if that is a compiler issue and whether there is a workaround. |
Update: the problem isn't a KLayout issue but appears to be related to So bottom line is: for building KLayout MSYS2 with gcc 12.1 KLayout needs a patch. |
Thanks for the reply. Now, I have successfully compiled version 0.28 and version 0.27.10 with msys2 on windows10 system, but there is a common problem. After double-clicking klayout.exe, there is no response. In the task manager, the Klayout Application flashed by. This is the log: |
This is what I mean by the analysis above. The problem is rooted in the latest compiler that MSYS2 comes with. I am analysing the problem and I think I have a patch. But it takes some more testing before I can publish it. |
Please let me know when the patch is released, thanks |
I have published a patch which makes master and 0.27 branches build on latest MSYS2. I hope this will stay so for some more rolling MSYS updates. I have also updated the instructions: https://www.klayout.de/build.html#build_windows_msys Please note the part about creating a file defining the Python paths. Matthias |
Thanks for the support, klayout can run normally based on the latest code |
Compiled according to the steps, run Klayout.exe, can not open without any error
The text was updated successfully, but these errors were encountered: