lferry007 / LargeVis

Apache License 2.0
708 stars 168 forks source link

MacOS install error #44

Closed jianshu93 closed 2 years ago

jianshu93 commented 2 years ago

Hello Team,

This error when compiling on MacOS:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/opt/openjdk/include -I/usr/local/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c LargeVismodule.cpp -o build/temp.macosx-12-x86_64-cpython-39/LargeVismodule.o "-lm -pthread -lgsl -lgslcblas -Ofast -march=native -ffast-math" clang-13: warning: -lm -pthread -lgsl -lgslcblas -Ofast -march=native -ffast-math: 'linker' input unused [-Wunused-command-line-argument] LargeVismodule.cpp:97:18: error: use of undeclared identifier 'PyString_AsString' real x = atof(PyString_AsString(PyObject_Str(PyList_GetItem(vec, j)))); ^ LargeVismodule.cpp:130:2: error: use of undeclared identifier 'Py_InitModule' Py_InitModule("LargeVis", PyExtMethods); ^ 2 errors generated. error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1

Thanks,

Jianshu