diff --git a/flex/resources/hqps/CMakeLists.txt.template b/flex/resources/hqps/CMakeLists.txt.template index 2ab7db7ded59..4165022bab7c 100644 --- a/flex/resources/hqps/CMakeLists.txt.template +++ b/flex/resources/hqps/CMakeLists.txt.template @@ -33,6 +33,12 @@ else () endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +# Check if /opt/graphscope exists and include directory. Since grape headers may installed here. +if(EXISTS "/opt/graphscope/include") + include_directories("/opt/graphscope/include") +endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -Wl,-rpath,$ORIGIN -O0 -flto -Werror=unused-result -fPIC -no-pie") diff --git a/python/graphscope/gsctl/scripts/lib/install_thirdparty_dependencies.sh b/python/graphscope/gsctl/scripts/lib/install_thirdparty_dependencies.sh index 35758fd3fd17..5648226f7b02 100644 --- a/python/graphscope/gsctl/scripts/lib/install_thirdparty_dependencies.sh +++ b/python/graphscope/gsctl/scripts/lib/install_thirdparty_dependencies.sh @@ -440,10 +440,10 @@ install_hiactor() { pushd /tmp git clone https://github.com/alibaba/hiactor.git -b v0.1.1 --single-branch cd hiactor && git submodule update --init --recursive - sudo bash ./seastar/seastar/install-dependencies.sh + bash ./seastar/seastar/install-dependencies.sh mkdir build && cd build cmake -DHiactor_DEMOS=OFF -DHiactor_TESTING=OFF -DHiactor_DPDK=OFF -DCMAKE_INSTALL_PREFIX="${install_prefix}" \ -DHiactor_CXX_DIALECT=gnu++17 -DSeastar_CXX_FLAGS="-DSEASTAR_DEFAULT_ALLOCATOR -mno-avx512" .. - make -j ${parallelism} && sudo make install + make -j ${parallelism} && make install popd && rm -rf /tmp/hiactor }