-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trouble with build #4
Comments
hi, |
right, the pathname up to the extracted kcorrect tar is what i set the $KCORRECT_DIR path as. and the library $KCORRECT_DIR/lib folder contents are only 'kcorrect.py', 'Makefile', and the README after running the kevilmake command. so consequently, the setup.py isn't working correctly. is there something outside of the INSTALL file steps that i have to include before trying to build ? |
maybe, your OS installed the library somewhere else? i can't help much here as i know nothing about Mac OS. to build kcorrect_python, the setup.py looks for kcorrect.h in $KCORRECT_DIR/include and libkcorrect.so in $KCORRECT_DIR/lib. |
you may fill an issue at:
if you really have trouble to build libkcorrect.so |
@Breluce I had the same issue and I just figure it out! I've copied and pasted all of my instructions here. This might not be the only way to do it, but it's what I've figured out. If you have any questions on this, feel free to reach out. Installing K-Correct on new Mac
Install kcorrect python
|
@lrhunt thanks for sharing. |
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!
The text was updated successfully, but these errors were encountered: