Hi Matthias, thanks for help.
But it doesn't work on my system (ubuntu). "Ctrl+D" doesn't do anything.
Anyway now I am thinking that, probably it would have been better if I had separeted the regions in different layers instead of using d…
Geometrical algorithms (such as 2D booleans) operating directly on curved shapes are available in open source code (i.e. OpenCascade) but are much less efficient (slower) than the algorithms operating on polygonal shapes.
One possible way to make a…
To be more precise the problem is that the package version reported at Salt.Mine page is not updated without a registration update (which can't be done reusing same url).
But now the problem is that I can't register a new update because the link https://github.com/wsteffe/layoutDD can't be reused a second time (unless I delete the package and register it again).
Now I have been able to register layoutDD v0.4.1 with a small change in the link.
Previously I had to enter the url of the specific release https://github.com/wsteffe/layoutDD/tags/v0.4.1
but it doesn't work any more. Instead it worked ponting direc…
Hi Matthias, any news on this problem ?
I have just tried to update my layoutDD package (hosted at hithub) with the usual procedure but it didn't work.
Is there anything that I can do on my side to solve the issue ?
Solved.
The problem was due to my personal settiing of the windows path. Klayout was loading dlls built in mingw64 environment which are not compatible with ucrt64 code. The problem has disappeared after cleaning my windows path.
Update: test.py gives no error if klayout is executed from a msys shell:
(Quote)
How could I make it work also when klayout is executed from windows GUI ?
Hi Matthias,
I have uploaded the FreeCAD package at https://github.com/wsteffe/layoutDD_FreeCAD.
The FreeCAD folder includes the following test.py:
#! /ucrt64/bin/python
import sys
sys.path.append("bin")
import FreeCAD
…
Hi Matthias,
I have solved several FC problems using pyinstaller but there I is a last problem (I hope it is the last) which is described more in detail in the last post at https://github.com/msys2/MINGW-packages/issues/19175#issuecomment-185405856…
The poblem with ezdxf install is solved. It was a connection problem from the VM in which I am developing the windows stuff.
I have still a problem of missing DLLs when I am importing FreeCAD. "import FreeCAD" is properly done when python…
Understood:
pip.main(['install', "ezxdf"]) doesn't work even in the python shell of ucrt64. It fails with following error:
ERROR: Could not find a version that satisfies the requirement ezxdf (from versions: none)ERROR: No matching distr…
Last update. I have found the last two missing DLLs:
libffi-8.dll libexpat-1.dll
Now the import cmake and also following:
package="ezxdf"pip.main(['install', package])
is executed and no error is reported.
But ezxdf package is …
Hi matthias,
I have restricted the problem a single line:
C:/Users/walter/KLayout/pymacros\test.pys:
import ctypes
Result in debug console:
Running macro C:/Users/walter/KLayout/pymacros\test.pyDLL load failed while importing _ctypes: The speci…
I have slightly changed my function installRequirements() removing pkg_resources which seems to be deprecated.
The update code is:
def installRequirements(): import importlib.util import pip import sys import os reqPath = os.path.realpa…
I have added other dlls and now ucrt64 based klayout starts directly from the windows GUI.
But the pyexpat import problem is not yet solved.
Hereafter the complete list of required dlls.
Copied from /msys64/ucrt64/bin:
x64-ucrt-ruby310.dlllibcry…
I have tried to build klayut in the ucrt64 environment. The build was done with the same script (build.sh) used for mingw. The only difference is that I started it fromm the uctr64 shell after havig installed all dependencies in the ucrt64 environme…
Ok ,but which compiler/environment was used to build klayout-0.28.13-win64-install.exe ? I was thinking it is mingw-w64-x86_64-gcc but on your web pages I may read that for klayout Version >= 0.26 Visual Studio 2017 is also supported.
Is there a…
Hi Matthias,
I am able to build FreeCAD only in the ucrt64 environment but I get a lot of undefined symbols with Mingw64. Mingw64 seems to be a deprecated (or at least not the recommended) MSYS build environment (see https://github.com/microsoft/v…
Hi Matthias thanks for help.
Indeed there were some missing dlls preventing import also from python of environment MSY2/ucrt64.
Now I have added those dlls and I am able to import FreeCAD from python console in ucrt64.
But it still fails loading fro…
Hi Matthias,
Finally I could build LinkMerge branch of FreeCAD inside the MSYS2/ucrt64 environment. Python version is 3.11.
In the last commit to layoutDD package (at https://github.com/wsteffe/layoutDD) I have added .pyd files for modules Free…
Hi matthias, there was some progress with FreeCAD build on MSYS2-MINGW64 and MSYS2-UCRT64 (see https://github.com/FreeCAD/FreeCAD/issues/11523)
Now MSYS2-UCRT64 is the recommended environment by MSYS (over MSYS2-MINGW64) and I am switching to it.
…
Hi Matthias,
I have just posted a request on MSYS2 repo for a MSYS2 package based on the FreCAD RT fork I am using (see at https://github.com/msys2/MINGW-packages/issues/19175).
From the replies it seems that FreeCAD can be built ony in the CLANG64…
Hi Matthias, thanks for hints.
I have just asked RealThunder (see post https://github.com/realthunder/FreeCAD/issues/911) if he can add a Windows release built with MSYS2/MINGW64 to the assets published at page https://github.com/realthunder/FreeCAD…
Hy Matthias, thanks for help.
You are right. The difference was that "mil" tecgnology was already registered in my Klayout system on Linux but not on windows. So now I have put the following lines in openProject():
technology =pya.Te…
I am sorry but the Test folder at the https://github.com/wsteffe/layoutDD/tree/master/ is not complete. Please use that one here annexed. The difference is that the folder in the git repo includes only the input data while the data structure of the …
I got around the problem by saving/loading used tech file in the project folder.
But now I have a problem in windows system because in this platform the tech file is not properly loaded or not properly associated with the layout (as better explained…
Hi Matthias,
I have switced to using also gds format (before I was reading all the input data from a single dxf file) and I am not more able to retrieve dxf_unit after reloading the gds file with the code:
dxf_unit = layout.technology().load_layo…
Hi all,
I have made some progress with this package but I have a problem. I need to import FreeCAD module which currently works on linux but not on windows.
On windows the FreeCAD module is taken from https://github.com/realthunder/FreeCAD/releas…