kactus2/kactus2dev

Build & Install on MACOS

abrahamktm opened this issue · 1 comments

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":

  • set QTBIN_PATH correctly (note: dont forget / at the end)
  • PYTHON_CONFIG=python3.10-config
    ./configure
    make

make fails

Thanks
Abktm

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.