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

2023-08-28 Thread Yade Guide
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Yade Guide posted a new comment: Hey there! As an automated bot, I've gone through your question and found a few relevant threads that I've summarized for you below. Feel free to explore further by clicking on th

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

2011-05-28 Thread Tao
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Answered => Solved Tao confirmed that the question is solved: Hi Feng, That's good to hear from you. Thanks a lot. Cheers, Tao -- You received this question notification because you are a member

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

2011-05-27 Thread Feng Chen
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Feng Chen posted a new comment: Hi, Tao: Linking OpenFOAM libraries are not that simple, your libIcoFoam need additional libraries to operate, I will post additional information about YADE and OpenFOAM coupling

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

2011-05-27 Thread Chareyre
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Open => Answered Chareyre proposed the following answer: 1/ You should really try to compile a simple program out of yade first, with a simple makefile, so you know where problems come from. This err

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

2011-05-27 Thread Tao
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=

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

2011-05-27 Thread Chareyre
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Open => Answered Chareyre proposed the following answer: Ok thanks, I was not sure if it was yade dir or lib dir. Can you can compile/run a small example programs using this lib? Is it better if you

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

2011-05-27 Thread Tao
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Answered => Open Tao is still having a problem: Hi Bruno, The directory of the library is $HOME/yadefluid and the directory of yade is $HOME/trunk on my computer system. I'm not sure if there is so

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

2011-05-26 Thread Chareyre
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Open => Answered Chareyre proposed the following answer: > > and in which directory is the library > on your system? -- You received this question notification because you are a member of yade-us

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

2011-05-26 Thread Tao
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Answered => Open Tao is still having a problem: Hi Bruno, The information in scons.profile-default is: PREFIX = '/home/tao/YADE' features = 'gts,log4cxx,opengl,openmp,qt4,vtk' CPPPATH = '/usr/inclu

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

2011-05-26 Thread Chareyre
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Open => Answered Chareyre proposed the following answer: The libpath is for the linker. You don't type it in any cpp usually, but add the path to linker flags. What is the output of "scons -h"? and i

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

2011-05-26 Thread Tao
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Answered => Open Tao is still having a problem: Hi Bruno, Thanks a lot for your reply. Yes, I plan to commit this coupling code one day. I tried your suggestion to link the library, but one more pro

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

2011-05-26 Thread Chareyre
Question #159123 on Yade changed: https://answers.launchpad.net/yade/+question/159123 Status: Open => Answered Chareyre proposed the following answer: It should be enough to add the library in your scons.profile. You can just compile with "scons SHCCFLAGS="-lIcoFoam", then it will be added i

[Yade-users] [Question #159123]: how to link an external library with YADE

2011-05-26 Thread Tao
New question #159123 on Yade: https://answers.launchpad.net/yade/+question/159123 Hi all, I'm trying to link an external library with YADE, but I don't know how to do that. In fact, I need one external library to calculate fluid dynamics and this library is a .so file, named libIcoFoam.so. Now,