ParticulateFlow / CFDEMcoupling-PFM

This is an academic adaptation of the CFDEMcoupling software package, released by the Department of Particulate Flow Modelling at Johannes Kepler University in Linz, Austria http://www.jku.at/pfm
GNU General Public License v3.0
76 stars 43 forks source link

Compilation of solvers needs link to python #2

Open kolarji2 opened 2 years ago

kolarji2 commented 2 years ago

When I tried to compile solvers with cfdemCompCFDEMsol, it was necessary to link to python. Otherwise, I got many compile errors from libvtkPython***, undefined references. One example is below: /usr/bin/ld: /usr/lib/libvtkPythonContext2D.so.1: undefined reference to_Py_Dealloc'`

Archlinux 2022.1.1.
gcc (GCC) 11.1.0
cmake version 3.22.2
python3.10
OpenFOAM-6
vtk 9.1

Maybe it was just my issue. But otherwise, it would be nice to include it in the build configuration, so it is not necessary to do it manually.

paths for additional libraries (etc/additionalLibs)

CFDEM_ADD_LIB_PATHS = -I/usr/include/python3.10 -lpython3.10

danielque commented 2 years ago

That's most probably a python2 vs python3 issue, where CFDEMcoupling is expecting python2.