Skip to content

trouble with build #4

@Breluce

Description

@Breluce

Hi, I am trying to install this on a Mac but keep failing to build the -lkcorrect library. I follow all of the steps for setting the KCORRECT_DIR and library paths to the extracted tar file from kcorrect.org. I use the instructions included in the INSTALL document up through the kevilmake -k all command. I do get errors pertaining to missing IDL files, but I'm only installing for python so I disregard those.

However, when I run the python setup.py build command from the master file I end up with the following error output:

bash-3.2$ python setup.py build running build running build_py running build_ext building '_kcorrect' extension gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/bflucero/opt/anaconda3/include -arch x86_64 -I/Users/bflucero/opt/anaconda3/include -arch x86_64 -I/Users/bflucero/Desktop/research/kcorrect/include -I/Users/bflucero/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include -I/Users/bflucero/opt/anaconda3/include/python3.8 -c src/_kcorrectmodule.c -o build/temp.macosx-10.9-x86_64-3.8/src/_kcorrectmodule.o In file included from src/_kcorrectmodule.c:10: In file included from /Users/bflucero/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include/numpy/npy_3kcompat.h:21: In file included from /Users/bflucero/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12: In file included from /Users/bflucero/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944: /Users/bflucero/opt/anaconda3/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it with " \ ^ 1 warning generated. gcc -bundle -undefined dynamic_lookup -L/Users/bflucero/opt/anaconda3/lib -arch x86_64 -L/Users/bflucero/opt/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/src/_kcorrectmodule.o -L/Users/bflucero/Desktop/research/kcorrect/lib -lkcorrect -lm -o build/lib.macosx-10.9-x86_64-3.8/_kcorrect.cpython-38-darwin.so ld: library not found for -lkcorrect clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'gcc' failed with exit status 1

I have attempted to modify the kevilmake script and uncomment the lines needed for Mac OS X but still no luck. If you could offer any guidance I'd really appreciate it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions