← Back to team overview

yade-users team mailing list archive

Re: [Question #159123]: how to link an external library with YADE

 

Question #159123 on Yade changed:
https://answers.launchpad.net/yade/+question/159123

    Status: Answered => Open

Tao is still having a problem:
Hi,
Now I can link the library "-licoFoam" with YADE by editing the line "env.Append(CPPPATH='',LIBPATH='/home/tao/YADE/lib/yade-0.11.1/pkg-dem',LIBS='IcoFoam',CXXFLAGS='',SHCCFLAGS='')" in $HOME/trunk/SConstruct and the line in  $HOME/trunk/scons.profile-default. 
Actually, this libIcoFoam.so links YADE with one CFD software OpenFOAM and it will call one library named libparMetisDecomp.so  in OpenFOAM. When I try to run YADE, one error occurs that indicates as bellow:

Welcome to Yade bzr2857
Traceback (most recent call last):
  File "/home/tao/YADE/bin/yade-bzr2857", line 118, in <module>
    import yade
  File "/home/tao/YADE/lib/yade-bzr2857/py/yade/__init__.py", line 58, in <module>
    import boot
ImportError: /home/tao/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/dummy/libparMetisDecomp.so: undefined symbol: _ZN4Foam10FatalErrorE

I'm not sure if it's just a problem with the link or with the library
libparMetisDecomp.so.

Thanks a lot for your help.

Cheers,
Tao

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.