kactus2 / kactus2dev

Kactus2 is a graphical EDA tool based on the IP-XACT standard.
https://research.tuni.fi/system-on-chip/tools/
GNU General Public License v2.0
191 stars 34 forks source link

Build & Install on MACOS #72

Open abrahamktm opened 1 year ago

abrahamktm commented 1 year ago

I'm trying to use and install Kactus2-3.10.0 on Ventura 13.1 OS on Intel-Based 64 bit Mac.. Would someone happen to have build & install instructions for MacOS?

I tried the below steps but I get error. Could someone help identify the issue?

ld: warning: directory not found for option '-Lx64/executable' Undefined symbols for architecture x86_64: "_PyArg_UnpackTuple", referenced from: SwigPyObject_own(_object, _object) in PythonAPI_wrap.o "_PyBool_FromLong", referenced from: _wrap_SwigPyIterator_equal(_object, _object) in PythonAPI_wrap.o _wrap_SwigPyIterator_eq(_object, _object) in PythonAPI_wrap.o _wrap_SwigPyIterator_ne(_object, _object) in PythonAPI_wrap.o .... ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [libPythonAPI.1.0.0.dylib] Error 1

Steps followed:

Install XCode from App Store on MAC Install home-brew Close terminal and open new one brew install qt5 brew install swig brew install python@3.10 Download kactus2 tar from sourceforge (linux tar) link that is mentioned in https://github.com/kactus2/kactus2dev Unzip the tar and cd into it In qmake.conf, change LOCAL _INSTALL_DIR to one of your home dir path where you want the installation of kactus2 In file “configure":

make fails

Thanks Abktm

epekkar commented 1 year ago

Hi Abktm,

Unfortunately, none on the development team has tried the MacOS build. What I can tell from the error listing, is that linker is attempting to load libraries from directory x64/executable, which is used in the Windows build, and not executable, which is used in Linux and assumably what MacOS build should use. Another point, which will not solve this issue, that you are installing Qt5 when the latest version 3.11. requires Qt6.