Skip to content

FlashTP + LAMMPS compile error #320

Description

@Jaesun0912

Following the description of the readthedocs, flashtp + lammps compilation gives error by:

/usr/bin/ld: warning: flashtp_large_core.cpython-312-x86_64-linux-gnu.so, needed by /path/to/lammps/cmake/flashTP/libflashtp_large_kernel_lammps.so, not found (try using -rpath or -rpath-link)

It may be solved by

  1. appending LD_LIBRARY_PATH for /path/to/flashTP/build/lib***/flashTP_e3nn/
  2. setting flags at cmake: -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,/path/to/flashTP/build/lib***/flashTP_e3nn/"
  3. adding some configurations at CMakeLists.txt while sevenn_patch_lammps

I'm not 100% sure that this issue is dependent on which virtual environment is used (conda, venv, ...) or some complex environment setting in bashrc, thus this might not be reproduced in other "clean and proper" setups.
Although, it would be informational if this is provided in the installation guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions