stranskyjan / dem-fem-coupling

Open source codes for coupling of Finite Element Method and Discrete Element Method using YADE, and OOFEM softwares.
43 stars 24 forks source link

ImportError: import liboofem undefined symbol: gc #15

Closed guanshaoheng closed 4 years ago

guanshaoheng commented 4 years ago

Thanks for your excellent work in this domain!

when runing the makefile in multi1, the error raised at "import liboofem

File "multi1.py", line 9, in import liboofem ImportError: /home/shguan/dem-fem-coupling-master/install/liboofem.so: undefined symbol: gc

could you help me about this problem?

sh. Guan guanshaoheng@qq.com

BEST WISHES

guanshaoheng commented 4 years ago

I found the reason that in the cmake step, i have open the -DUSE_OOFEG="ON" which caused this error

guanshaoheng commented 4 years ago

cmake -DUSE_OOFEG="ON" -DUSE_PYTHON_BINDINGS="ON" -DCKIT_DIR="/home/shguan/oofem/Ckit" -DELIXIR_DIR="/home/shguan/oofem/Elixir" ../oofem-2.5

should be repalced by

cmake -DUSE_PYTHON_BINDINGS="ON" -DCKIT_DIR="/home/shguan/oofem/Ckit" -DELIXIR_DIR="/home/shguan/oofem/Elixir" ../oofem-2.5