Git Product home page Git Product logo

klayout's People

Contributors

akhuettel avatar anewusername avatar atait avatar bentley avatar cbalint13 avatar dependabot[bot] avatar eugenezelenko avatar gatecat avatar htherrien avatar joamatab avatar kazzz-s avatar kazzz-s2 avatar klayoutmatthias avatar mikeyh30 avatar nikosavola avatar pankajp avatar partmedia avatar quantamhd avatar rizoschrist-prime avatar rubund avatar sebastian-goeldi avatar stephengroat avatar tcal-x avatar thomaslima avatar willsalmanj avatar wsteffe avatar zopolis4 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

klayout's Issues

[BLOCKER] KLayout 0.25 on Max OSX Yosemite does not start up

Compile errors were resolved in #5!
Making application (*.app) by appropriately locating Frameworks and Libraries is another open issue #6.

Even in the present conditions, the built executable should start by "$ ./klayout" but it would not start.
The executable was built with:
./build.sh -debug \ -qt5 \ -qmake /opt/local/libexec/qt5/bin/qmake \ -bin ./qt5.bin.macos-Yosemite-debug \ -build ./qt5.build.macos-Yosemite-debug\ -with-qtbinding \ -option -j4 \ -ruby /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby \ -rbinc /System/Library/Frameworks/Ruby.framework/Headers \ -rblib /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.dylib \ -python /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python \ -pyinc /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \ -pylib /System/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib 2>&1 | tee ./qt5.build.macos-Yosemite-debug.log

Attached below is the output of valgrind.
valgrind.zip

Build "pymod" on Yosemite

Attempt to build the latest (as of July 16, 2018) code on Yosemite, too.


Got a compile error:

../../../src/tl/tl/tlTimer.cc:48:18: error: use of undeclared identifier 'CLOCK_REALTIME'
  clock_gettime (CLOCK_REALTIME, &spec);
                 ^
../../../src/tl/tl/tlTimer.cc:80:18: error: use of undeclared identifier 'CLOCK_REALTIME'
  clock_gettime (CLOCK_REALTIME, &spec);
                 ^
2 errors generated.
make[2]: *** [tlTimer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-tl-make_first] Error 2
make: *** [sub-tl-make_first] Error 2

because: clock_gettime() is not implemented on older versions of OS X (< 10.12).


Module installation by 'pip' on Homebrew version

KLayout#589 (comment)

Author
lukasc-ubc commented on 2 Aug

I have tested it in the HW build, and there is no problem there.

Question: is it possible to run pip to install additional packages by running pip from the terminal, for the versions that have Python build-in? The way I presently do it in the HW version is:
import pip pip.main(['install','scipy')
which is not recommended pypa/pip#5599. but it works.

Specifically, could you include the pip binary in the HW package?

Exporting DXF with LINE entities for Abaqus CAE

When importing a DXF file comprising POLYLINEs or LWPOLYLINEs into Abaqus CAE, they are forcibly converted to points!
This is a "specification" of Abaqus CAE.

In contrast, LINEs are kept as lines, which will be then assembled into polygonal objects internally if required.

This is a task to enhance class DXFWriter to export polygons as LINE entities in DXF format.
Obviously, compared with POLYLINE or LWPOLYLINE, the output DXF file size should increase.

Yosemite: "verifying" forever

Hello @Kazzz-S ,
Thanks for all your work to keep KLayout installers work for MacOS!

I was trying to have my coworker learn KLayout, but found that, on her iMac running Yosemite (10.10.5), the old Yosemite-compatible versions of klayout (0.25.9) never launch, instead MacOS shows a "verifying" progress bar that never ends as far as we can tell.

Any suggestions on how to get KLayout running on her computer?
In the mean time I will find a newer laptop and try to get her running on that.

(And this has obviously made it clear that we do need to upgrade her computer, as it's actually hindering our work now!)
Thanks.

deploy issue

Hi Kazzz-S,
I am a M1 Mac user. After I update MacOS from 13.0 to 13.2, there comes a few problems in deploy(build4mac.py -y) procedure and I can not run the newly deployed klayout.app.
(1):
qt5Brew.build.macos-Ventura-release-RsysPnil.log
This is the log file of compiling the program, It seems no error output.
-----(If I excute build4mac.py -q qt5brew -r sys -p nil -Y)-----
(2.1):
deploy_log.log
This is the log file of deploying the .app ,There are so many warnings about install_name_tool.
(2.2):
Then I ran the klayout.app, It crashed immediately, it is an EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid)).Logs are below
crash_log.log
-----(If I excute build4mac.py -q qt5brew -r sys -p nil -y)-----
deploy_ex.log
This is the log file of deploying the .app, There are many warnings about install_name_tool, too.
But after finishing deploying ,I successfully open the klayout app.

I found this link, they discuss may the same problem.
Could you please help me solve this problem? Thanks!
Ethan

Update the build system for macOS to work with the modified "setup.py" for pymod

I need to test the modified setup.py as requested by thomaslima.


In the first attempt using MacPorts, I got the errors below.
The reason is apparent. I will be able to manage somehow.

Traceback (most recent call last):
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 146, in check_libpng
    subprocess.check_call(["libpng-config", "--version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 368, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'libpng-config'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 510, in <module>
    define_macros=config.macros() + [("MAKE_TL_LIBRARY", 1)],
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 430, in macros
    if platform.system() == "Darwin" and check_libpng():
  File "/Users/sekigawa/GitWork/klayout/setup.py", line 151, in check_libpng
    raise RuntimeError("libpng missing. libpng-config is not available") from e
RuntimeError: libpng missing. libpng-config is not available

Update Homebrew/MacPorts environment for the next maintenance

Homebrew

On Catalina,

  • Jan.2020 ---> as of Feb. 18th 2020
  • Ruby 2.6.5 ---> 2.7.0
  • Python 3.7.5 ---> 3.7.6

(base) MacBookPro2{sekigawa}(1)$ brew info ruby
ruby: stable 2.7.0 (bottled), HEAD [keg-only]
Powerful, clean, object-oriented scripting language
https://www.ruby-lang.org/
/usr/local/Cellar/ruby/2.7.0 (20,346 files, 33.1MB)
(base) MacBookPro2{sekigawa}(3)$ brew info python
python: stable 3.7.6 (bottled), HEAD
Interpreted, interactive, object-oriented programming language

Mac DMGs for 0.26.8

Let's attempt to upgrade the modules

  1. Qt5.15.1 and Python 3.8 in Homebrew
  2. Python 3.8 in MacPorts
  3. Python 3.8 in Anaconda3

Cannot make HW-klayout-0.28.12-macOS-Monterey-1-qt5Brew-RsysPhb39.dmg

After the recent upgrade of Homebrew (early September 2023), I cannot correctly create HW-klayout-0.28.12-macOS-Monterey-1-qt5Brew-RsysPhb39.dmg. The build itself was successful. However, deployment went wrong. More precisely,

  1. Qt5 binaries are not properly deployed. For example, QtOpenGL.framework is missing in the Frameworks directory.
  2. Python3.9's dependencies, such as mpdecimal, openssl@3, deadline, sqlite, and xz, are also missing in the Frameworks directory.

Inconsistency in Edit ---> Select ---> Select All

Found inconsistency in the number of objects selected in Edit ---> Select ---> Select All operation as below.

KLayout version = 0.26.8
Test Data

OS cell hierarchy level=1 cell hierarchy level=2 Remarks
Linux Linux1 Linux2 OK
Windows Windows1 Windows2 OK
macOS Catalina macOS1 macOS2 (X)
  • (X) This is observed in the combination of (a) the MacPorts dev. env. and (b) LW-klayout-0.26.8-macOS-Catalina-1-qt5MP-Rmp26Pmp38.dmg
  • Not observed in ST-klayout-0.26.8-macOS-Catalina-1-qt5MP-RsysPsys.dmg
  • Not observed in LW-klayout-0.26.8-macOS-Catalina-1-qt5Brew-Rhb27Phb38.dmg for Homebrew dev. env.
  • Not observed in HW-klayout-0.26.8-macOS-Catalina-1-qt5Brew-RsysPhb38.dmg with Homebrew Python 3
  • Not observed in LW-klayout-0.26.8-macOS-Catalina-1-qt5Ana3-Rana3Pana3.dmgfor Anaconda3 dev. env.

libgit2 preparations for 0.28.13

Matthias informed... KLayout#1213 (comment)


My actions: KLayout#1213 (comment)

Thanks for the heads-up. I have checked the availability of libgit2 in various development environments, as shown below.

Dev. Env. URL libgit2 version
Homebrew https://formulae.brew.sh/formula/libgit2 1.7.1
MacPorts https://ports.macports.org/port/libgit2/ 1.7.1
Anaconda3 https://anaconda.org/conda-forge/libgit2 1.7.1

I will install them for the next maintenance release (0.28.13) build.

Warm regards,
Kazzz-S


EDIT:
[Installed to Monterery]

Homebrew

MacBookPro2{kazzz-s} opt (1)% pwd
/usr/local/lib

MacBookPro2{kazzz-s} opt (2)% ll | grep libgit
lrwxr-xr-x   1 kazzz-s admin     47 11  3 06:55 libgit2.1.7.1.dylib -> ../Cellar/libgit2/1.7.1/lib/libgit2.1.7.1.dylib
lrwxr-xr-x   1 kazzz-s admin     45 11  3 06:55 libgit2.1.7.dylib -> ../Cellar/libgit2/1.7.1/lib/libgit2.1.7.dylib
lrwxr-xr-x   1 kazzz-s admin     37 11  3 06:55 libgit2.a -> ../Cellar/libgit2/1.7.1/lib/libgit2.a
lrwxr-xr-x   1 kazzz-s admin     41 11  3 06:55 libgit2.dylib -> ../Cellar/libgit2/1.7.1/lib/libgit2.dylib

MacPorts

MacBookPro2{kazzz-s} lib (1)% pwd
/opt/local/lib

MacBookPro2{kazzz-s} lib (2)% ll | grep libgit
-rwxr-xr-x    1 root     wheel   1407704  9 11 07:04 libgit2.1.7.1.dylib
lrwxr-xr-x    1 root     wheel        19  9 11 07:05 libgit2.1.7.dylib -> libgit2.1.7.1.dylib
lrwxr-xr-x    1 root     wheel        17  9 11 07:05 libgit2.dylib -> libgit2.1.7.dylib

Anaconda3
2023-11-10: updated by

conda update -c conda-forge libgit2
(base) MacBookPro2{kazzz-s} lib (1)% pwd
/Applications/anaconda3/lib

(base) MacBookPro2{kazzz-s} lib (2)% ll | grep libgit
-rwxr-xr-x    2 kazzz-s staff   1172776  8 15 08:33 libgit2.1.7.1.dylib
lrwxr-xr-x    1 kazzz-s staff        19 11 10 18:38 libgit2.1.7.dylib -> libgit2.1.7.1.dylib
lrwxr-xr-x    1 kazzz-s staff        19 11 10 18:38 libgit2.dylib -> libgit2.1.7.1.dylib

Building on M1 Mac

Hi @Kazzz-S ,

I wonder if I could borrow your advice for an issue I have building Mac images on my MacBook (M1). I followed these steps:

  • I installed qt@5, [email protected], and [email protected] from homebrew
  • I ran ./macbuild/python3HB.py -v 3.9
  • I added the QMAKE_CXXFLAGS += -fdeclspec line to klayout.pri (for some reason your script didn't patch automatically.
  • Then I ran the following script:
#!/bin/bash
set -e

export QMAKE_CCACHE=1

# run ./macbuild/python3HB.py -v 3.9

./build4mac.py -p HB39 -r HB32 -q Qt5Brew
./build4mac.py -p HB39 -r HB32 -q Qt5Brew -y
  • This produced HW-qt5Brew.pkg.macos-Ventura-release-Rhb32Phb39/klayout.app. When I tried to open it, it crashed with the following log dump. Am I doing something wrong? I feel like I forgot some step.

Do you have any idea of what's going on?

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               klayout [4163]
Path:                  /Users/USER/*/klayout.app/Contents/MacOS/klayout
Identifier:            de.klayout
Version:               0.28.5 (0.28.5)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               8803

Date/Time:             2023-02-16 10:21:42.0242 -0500
OS Version:            macOS 13.0.1 (22A400)
Report Version:        12
Anonymous UUID:        D2931AAD-F46B-72AF-9649-1D8A6B9062D6

Sleep/Wake UUID:       F9256465-18A2-45BA-B26C-EF90F5F8420B

Time Awake Since Boot: 660000 seconds
Time Since Wake:       4203 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes:       UNKNOWN_0x32 at 0x0000000100b6c000
Exception Codes:       0x0000000000000032, 0x0000000100b6c000

Termination Reason:    Namespace CODESIGNING, Code 2 Invalid Page

VM Region Info: 0x100b6c000 is in 0x100b6c000-0x101044000;  bytes after start: 0  bytes before end: 5079039
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      mapped file                 100b04000-100b6c000    [  416K] r--/rwx SM=COW  ...t_id=9abb3401
--->  mapped file                 100b6c000-101044000    [ 4960K] r--/rwx SM=COW  ...t_id=99848d01
      GAP OF 0x6a9d4000 BYTES
      Stack Guard                 16ba18000-16f21c000    [ 56.0M] ---/rwx SM=NUL  

Thread 0 Crashed:
0   dyld                          	       0x18bcee3b0 dyld3::MachOFile::hasMachOMagic() const + 0
1   dyld                          	       0x18bcc56c4 dyld4::SyscallDelegate::mapFileReadOnly(Diagnostics&, char const*, unsigned long*, dyld4::FileID*, bool*, char*) const + 228
2   dyld                          	       0x18bcc5028 dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const + 88
3   dyld                          	       0x18bcbe184 dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 208
4   dyld                          	       0x18bcb510c invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 1260
5   dyld                          	       0x18bcb43b4 dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 184
6   dyld                          	       0x18bca29b4 dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const + 688
7   dyld                          	       0x18bcb413c dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 248
8   dyld                          	       0x18bcb488c dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 584
9   dyld                          	       0x18bcbc174 invocation function for block in dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 408
10  dyld                          	       0x18bceeb64 invocation function for block in dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 148
11  dyld                          	       0x18bc9c2d8 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 296
12  dyld                          	       0x18bcee9ac dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 172
13  dyld                          	       0x18bcbbec0 dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 164
14  dyld                          	       0x18bca0500 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 1236
15  dyld                          	       0x18bc9fdc4 start + 2404


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000100b6c000   x1: 0x0000000000000000   x2: 0x000000016fa15af8   x3: 0x0000000000040002
    x4: 0x0000000000000003   x5: 0x0000000000000000   x6: 0x000000016fa15af8   x7: 0x0000000000000b30
    x8: 0x000000016fa15990   x9: 0x000000016fa15998  x10: 0x000000000100000f  x11: 0x0000000000000001
   x12: 0x000000016fa16122  x13: 0x0000000000000000  x14: 0x0000000226f8bd2a  x15: 0x0000000000008000
   x16: 0x000000000000005c  x17: 0x000000018bc9de7c  x18: 0x0000000000000000  x19: 0x000000016fa16020
   x20: 0x0000000000000003  x21: 0x000000016fa15acf  x22: 0x0000000100b6c000  x23: 0x000000016fa15af8
   x24: 0x000000016fa15ad0  x25: 0x000000016fa15af0  x26: 0x000000016fa15f90  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016fa15ab0   lr: 0x000000018bcc56c4
    sp: 0x000000016fa15990   pc: 0x000000018bcee3b0 cpsr: 0x80001000
   far: 0x0000000100b6c000  esr: 0x92000007 (Data Abort) byte read Translation fault

Binary Images:
       0x18bc9a000 -        0x18bd244bf dyld (*) <de46dd52-4994-3fd8-b4b4-e352a1a19354> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=763.0M resident=0K(0%) swapped_out_or_unallocated=763.0M(100%)
Writable regions: Total=8832K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8832K(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
VM_ALLOCATE (reserved)             144K        1         reserved VM address space (unallocated)
__DATA                              27K        2 
__DATA_CONST                        38K        2 
__DATA_DIRTY                         7K        1 
__LINKEDIT                       762.4M        2 
__TEXT                             636K        2 
dyld private memory                512K        2 
mapped file                       8416K        4 
===========                     =======  ======= 
TOTAL                            836.0M       18 
TOTAL, minus reserved VM space   835.8M       18 


[BUG] KLayout 0.25: No.2 Compile Errors on Mac OSX

Facing another build issue...

MacBookPro{sekigawa}(250)$ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ --version
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix


/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -stdlib=libc++ -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.9 -Wl,-rpath,@loader_path/./qt5.bin.macos-yosemite -single_module -dynamiclib -compatibility_version 0.25 -current_version 0.25.0 -install_name libdb_tests.0.dylib -o libdb_tests.0.25.0.dylib dbArray.o dbBox.o dbBoxScanner.o dbBoxTree.o dbCell.o dbCellGraphUtils.o dbCellHullGenerator.o dbCellMapping.o dbCIFReader.o dbClip.o dbDXFReader.o dbExpression.o dbEdge.o dbEdgePair.o dbEdgePairRelations.o dbEdgePairs.o dbEdgeProcessor.o dbEdges.o dbEdgesToContours.o dbGDS2Reader.o dbGDS2Writer.o dbLayer.o dbLayerMapping.o dbLayout.o dbLayoutDiff.o dbLayoutUtils.o dbLayoutQuery.o dbLibraries.o dbMatrix.o dbOASISReader.o dbOASISWriter2.o dbOASISWriter.o dbObject.o dbPath.o dbPCells.o dbPoint.o dbPolygon.o dbPolygonTools.o dbPropertiesRepository.o dbRecursiveShapeIterator.o dbRegion.o dbShapeArray.o dbShape.o dbShapeRepository.o dbShapes.o dbStreamLayers.o dbText.o dbTilingProcessor.o dbTrans.o dbVector.o dbWriterTools.o dbVariableWidthPath.o -F/opt/local/libexec/qt5/lib -L/Users/sekigawakazunari/GitWork/klayout-0.25/qt5.build.macos-yosemite/db/unit_tests/../.. -lklayout_db -lklayout_tl -lklayout_gsi -framework QtDesigner -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtXml -framework QtPrintSupport -framework QtMultimediaWidgets -framework QtMultimedia -framework QtNetwork -framework QtSvg -framework QtXmlPatterns -framework QtSql -framework QtTest -framework Security -framework Foundation -framework ApplicationServices -framework OpenGL -framework AGL
Undefined symbols for architecture x86_64:
"vtable for db::GDS2Writer", referenced from:
run_test(tl::TestBase*, char const*, char const*, char const*, double, bool, bool) in dbCIFReader.o
write(std::__1::vector<db::polygon, std::__1::allocator<db::polygon > > const&, std::__1::vector<db::polygon, std::__1::allocator<db::polygon > > const&, std::__1::vector<db::edge, std::__1::allocator<db::edge > > const&, std::__1::vector<db::edge, std::__1::allocator<db::edge > > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) in dbEdgeProcessor.o
run_test(tl::TestBase*, char const*, char const*) in dbGDS2Writer.o
(anonymous namespace)::TestImpl2::execute(tl::TestBase*) in dbGDS2Writer.o
(anonymous namespace)::TestImpl3::execute(tl::TestBase*) in dbGDS2Writer.o
(anonymous namespace)::TestImpl4::execute(tl::TestBase*) in dbGDS2Writer.o
run_test(tl::TestBase*, char const*, bool, int, bool) in dbOASISWriter.o
...
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../db/libdb_tests.0.25.0.dylib] Error 1
make[1]: *** [sub-unit_tests-make_first] Error 2
make: *** [sub-db-make_first] Error 2


Other companion tools were normally built but do not work (including klayout.app) --> #6.

MacBookPro{sekigawa}(191)$ ll | grep str
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strm2cif.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strm2dxf.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strm2gds.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strm2gdstxt.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strm2oas.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strm2txt.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strmclip.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strmcmp.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strmrun.app
drwxr-xr-x 3 sekigawa staff 102 12 12 23:10 strmxor.app

Error while compiling klayout 0.28

Dear Kazzz-S,
I just tried to compile klayout using parameter python3 build4mac.py -q Qt6Brew -r Sys -p HBAuto
but there was an error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -std=c++17 -fvisibility=hidden -O2 -std=gnu++1z -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -mmacosx-version-min=13.0 -Wall -Wextra -pedantic -Woverloaded-virtual -Wsynth -Wno-deprecated -Wno-long-long -Wno-strict-aliasing -Wno-deprecated-declarations -fPIC -DHAVE_QTBINDINGS -DHAVE_PYTHON -DHAVE_RUBY -DHAVE_RUBY_VERSION_CODE=20610 -DHAVE_QT -DHAVE_QT_UITOOLS -DHAVE_QT_NETWORK -DHAVE_QT_SQL -DHAVE_QT_SVG -DHAVE_QT_PRINTSUPPORT -DHAVE_QT_MULTIMEDIA -DHAVE_QT_DESIGNER -DHAVE_QT_XML -DKLAYOUT_VERSION=0.28.2 -DKLAYOUT_VERSION_REV=LatestSourcePackage -DKLAYOUT_VERSION_DATE=2022-12-26 -DKLAYOUT_MAJOR_VERSION=0 -DKLAYOUT_MINOR_VERSION=28 -DKLAYOUT_TINY_VERSION=2 -DMAKE_GSI_QTCORE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_UITOOLS_LIB -DQT_OPENGLWIDGETS_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE5COMPAT_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../src/gsiqt/qt6/QtCore -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I../../../../src/tl/tl -I../../../../src/gsi/gsi -I../../../../src/db/db -I../../../../src/gsiqt/qtbasic -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtDesigner.framework/Headers -I/opt/homebrew/include -I/opt/homebrew/include/QtUiPlugin -I/opt/homebrew/lib/QtUiTools.framework/Headers -I/opt/homebrew/lib/QtOpenGLWidgets.framework/Headers -I/opt/homebrew/lib/QtMultimediaWidgets.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtMultimedia.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtSql.framework/Headers -I/opt/homebrew/lib/QtCore.framework/Headers -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/share/qt/mkspecs/macx-clang -F/opt/homebrew/lib -o gsiDeclQJsonDocument.o ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonDocument.cc ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:145:36: error: no matching conversion for C-style cast from 'const QJsonValueConstRef' to 'const QJsonValueRef' ret.write<const QJsonValueRef > ((const QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator* ()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'const QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument QJsonValueRef(const QJsonValueRef &) = default; ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonArray *array, qsizetype idx) ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonObject *object, qsizetype idx) ^ ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:456:30: error: no matching conversion for C-style cast from 'QJsonValueConstRef' to 'QJsonValueRef' ret.write<QJsonValueRef > ((QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator[] (arg1)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument QJsonValueRef(const QJsonValueRef &) = default; ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonArray *array, qsizetype idx) ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonObject *object, qsizetype idx) ^ 2 errors generated. make[3]: *** [gsiDeclQJsonArray_Const_iterator.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [sub-QtCore-make_first] Error 2 make[1]: *** [sub-qt6-make_first] Error 2 make: *** [sub-gsiqt-make_first] Error 2
Could you help me solve this problem?thank you

Incompatibility with Sierra(10.12.6) with Security Update 2018-005, -006

With the Security Update 2018-005, KLayout binary packages built on El Captian (10.11) no longer work on Sierra (10.12), unfortunately ;-(

Hence, we need to build KLayout (0.25.6 as of today) on Sierra itself.
However, with some problems of OS-bundled Ruby and Xcode (similar problems with the initial environment of Mojave), build fails.

This is an attempt by enabling " -noruby Don't build with Ruby support" option. That is, only Python is enabled.
2018-12-02 9 45 58

Hope this will be fixed in a future release.

Using Python 3.x in Homebrew

brew update often changes the pathname like .../python3/Frameworks/... ---> .../python@3/Frameworks/... .
How to handle this?

# Python 3.8 from Homebrew *+*+*+ EXPERIMENTAL *+*+*+
#   install with 'brew install python'
# [Key Type Name] = 'HB38'
HBPython38FrameworkPath = '/usr/local/opt/python3/Frameworks/Python.framework'
Python38Brew    = { 'exe': '%s/Versions/3.8/bin/python3.8' % HBPython38FrameworkPath,
                    'inc': '%s/Versions/3.8/include/python3.8' % HBPython38FrameworkPath,
                    'lib': '%s/Versions/3.8/lib/libpython3.8.dylib' % HBPython38FrameworkPath
                  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.