Setup.py issue
I am currently trying to run the setup.py file, but when I run the python setup.py install command, I get this error: CalledProcessError: Command 'git describe --always' returned non-zero exit status 128. Any help you can offer would be greatly appreciated.
If I change GIT_VERSION = subprocess.check_output("git describe --always", shell=True) to GIT_VERSION = subprocess.call("git describe --always", shell=True) I get this error: unsupported option '-fopenmp' error: command 'gcc' failed with exit status 1
You are probably using a non-standard or really old version of gcc. KGraph needs OpenMP for paralllelization. Try edit setup.py and remove '-fopenmp' in line 20 and 21 (21 becomes an empty list and the line can be removed). That will disable parallelization.
I looked back and I think. that the problem is with the preliminary setup: cmake -DCMAKE_BUILD_TYPE=release . make sudo make install
I run DCMAKE_BUILD_TYPE=release . and it says:-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) -- Boost version: 1.70.0 -- Found the following Boost libraries: -- timer -- chrono -- system -- program_options -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
kgraph
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done -- Build files have been written to: /Users/wmmelodia/documents/work/kgraph
If I run make I get this: [ 10%] Building CXX object CMakeFiles/kgrapha.dir/kgraph.cpp.o /Users/wmmelodia/documents/work/kgraph/kgraph.cpp:23:10: fatal error: 'boost/timer/timer.hpp' file not found #include <boost/timer/timer.hpp> ^~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[2]: *** [CMakeFiles/kgrapha.dir/kgraph.cpp.o] Error 1 make[1]: *** [CMakeFiles/kgrapha.dir/all] Error 2 make: *** [all] Error 2
I guess so far you are probably very frustrated. I don't think it makes much sense to debug CMakefile. The easiest way is just to add the two CPP files: kgraph.cpp metric.cpp to your own project, and make sure the compiler can find the kgraph directory and header files in it.
I have .txt file including 2M of vectors 128-dims. So how can I load it and query on it using Kgraph c++ (Visual Studio 19).