bioinfologics / sdg

Sequence Distance Graph framework: graph + reads + mapping + analysis
MIT License
25 stars 6 forks source link

Segfault on OSX #109

Closed TransGirlCodes closed 5 years ago

TransGirlCodes commented 5 years ago

cmake -DBUILD_PYTHON_INTERFACE=ON -DCMAKE_C_COMPILER=/usr/local/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-7 -DBUILD_DOC=OFF ../

make

N82106:build bward$ ls
CMakeCache.txt          Makefile            pysdg
CMakeDoxyfile.in        SequenceDistanceGraph.i     runBasicTests
CMakeDoxygenDefaults.cmake  cmake_install.cmake     sdg-dbg
CMakeFiles          docs                sdg-kmercounts
CTestTestfile.cmake     libsdg.dylib            sdg-mapper
Doxyfile            libsdg_static.a         sdg-workspace
N82106:build bward$ python
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 02:16:08) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysdg as sg
Segmentation fault: 11
ljyanesm commented 5 years ago

This is down to incompatibilities in the way the library was compiled and the way python was compiled. Make sure they are built in the same way or at least compatible.