Skip to content

Difficulty compiling dependencies for PeriDEM #6

@prashjha

Description

@prashjha

Sharing the conversation with Tangjin with regard to compiling dependencies HPX and PCL for PeriDEM. Hope this will be of some help.

Hi,

If you are using Ubuntu18.04, you should

  1. first install the dependencies using apt-get:
sudo apt-get install libboost-dev libvtk7-dev libyaml-cpp-dev libhwloc-dev libjemalloc-dev libflann-dev
  1. install HPX and PCL libraries by running the bash script 'install_libs.sh' as follows
cd <peridem-libs-dir> # <-- create a directory where you want to store the HPX, PCL libraries
./install_libs.sh Release # <--- copy install_libs.sh from here https://github.com/prashjha/PeriDEM/blob/main/tools/script/build_scripts/ubuntu-18.04/install_libs.sh and run it

Above will install HPX and PCL.

HPX will be installed to directory /local/hpx/1.3.0/Release

PCL will be installed to directory /local/pcl/1.11.1/Release

  1. Now you can install PeriDEM
cd <peridem-dir>
git clone https://github.com/prashjha/PeriDEM.git
cd PeriDEM
mkdir build && cd build

# run cmake
cmake   -DHPX_DIR="<hpx directory>/lib/cmake/HPX" \
        -DPCL_DIR="<pcl directory>" \
        -DEnable_Documentation=ON \
        -DEnable_Tests=ON \
        -DCMAKE_BUILD_TYPE=Release \
        ./..

# make
make -j 4

# run tests
ctest --verbose

I will update the instructions in https://github.com/prashjha/PeriDEM/blob/main/README.md in next few days. Let me know if you have any issues.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
On Tue, Apr 6, 2021 at 9:25 AM 我心飞翔💪 yuansu928@qq.com wrote:

Dr Prashjha hello, I am a graduate student from China agricultural university,YUAN Tangjin, I focus on making to you about the near field dynamics and the coupling of the discrete element code, I want to try to run, but ran into trouble when the build environment, want to ask you, in your code “/PeriDEM/tree/main/tools/script/build_scripts/ubuntu 18.04” path, files can be directly used to build the application environment? Or do you want to download the source code of those dependent libraries from the Internet and compile it yourself ? Can you give us some guidance? If I can get your guidance, sincerely thank you !
unnamed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions