Open alexbovet opened 6 years ago
In case anyone is interested, I've just been able to successfully build the python3 interface on macOS without issues. Just do following after running autogen.sh
and sudo make install
python3
, basically just adding a 3
to the end python as follows:$ git diff Makefile-swig-python
diff --git a/cola/Makefile-swig-python b/cola/Makefile-swig-python
index 822b415..6ca727b 100644
--- a/cola/Makefile-swig-python
+++ b/cola/Makefile-swig-python
@@ -15,7 +15,7 @@ adaptagrams_wrap.cxx: clean adaptagrams.i
swig -DNDEBUG -c++ -python adaptagrams.i
adaptagrams: adaptagrams_wrap.cxx
- python swig-python-setup.py build_ext --inplace $(COMPILER)
+ python3 swig-python-setup.py build_ext --inplace $(COMPILER)
realclean: clean
./buildPythonSWIG.sh
In this case, I was using homebrew python3
Hi, I'm trying to build the python library with swig but it fails.
What I've done: build cola with
autogen.sh
. It passes all the tests. thensudo make install
.to build the python library I did:
swig -c++ -python adaptagrams.i
and
python swig-python-setup.py install
I have python3.6. It then fails with:
Do you know why it fails?
I tried to run configure with
./configure CXXFLAGS="-O3 -DNDEBUG -arch x86_64 -arch i386" LDFLAGS="-arch x86_64 -arch i386"
(this is commented in the autogen.sh file) but configure fails as-arch
is not recognized by gcc... I am usinggcc (GCC) 8.1.1 20180531
on arch linux.Thanks!