Re: [Yade-users] [Question #159123]: how to link an external library with YADE
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 the links. Title: "Creation of a new engine" A user is having trouble with an engine they're trying to create, despite successful compilation. They need help identifying the specific issue. Anton asked if the engine should be added to an existing file or a new one. https://answers.launchpad.net/yade/+question/153255 Title: "Cylindrical triaxial test using Pfacet" Kyle is seeking help with simulating cylindrical triaxial tests in Yade, particularly for servo control and understanding 'triax.py' code. He wants a minimal working example for this simulation and desires to achieve quasi-equilibrium compression by defining a velocity value. Kyle is puzzled about the meaning of 'the triangle facets will break' when running 'triax' py without any changes, especially regarding whether it means particles do not touch each other. He has created flexible membranes using Pfacet and is unsure about how to proceed after this. https://answers.launchpad.net/yade/+question/707148 -- You received this question notification because your team yade-users is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [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 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 something wrong with the link or the library itself. I will try to check it. Thanks a lot. Cheers, Tao -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #159123]: how to link an external library with YADE
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 add -licoFoam to CXXFLAGS instead of of SHCCFLAGS (or both, it can't hurt)? -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #159123]: how to link an external library with YADE
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 error means (I think) that libparMetisDecomp has other dependencies (e.g. blas, lapack, or whatever it can be), you would have find this with a simple helloOFoamWorld program. 2/ Don't modify $HOME/trunk/SConstruct or profile.default. They are root system files that you will (almost) never commit. Create user-defined profile: scons profile='name' CXXFLAGS=... SHCCFLAGS=... . It has the same result, except that it will be easier for you and us to understand what you are doing (e.g. by asking the output of scons -h, I know what's in your profile, but I can't tell if you messed up the SConstruct :-)). Bruno -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
[Yade-users] [Question #159123]: how to link an external library with YADE
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, in my YADE folder, I create a corresponding engine named fluidDragForce.cpp. I'm trying to use one function in the external library libIcoFoam.so in this engine. The issue is that I need the engine know where to find this library to process its calculation. Could anyone help me with that? Cheers, Tao -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [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 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 problem still exists when I use the engine. Please see bellow: 131 FATAL yade.Omega /home/tao/trunk/core/Omega.cpp:204 loadPlugins: /home/tao/YADE/lib/yade-bzr2866/plugins/libplugins.so: undefined symbol `icoFoam(..)' Actually, 'icoFoam' is just the function I want to use in the fluidDragForce engine. I'm not sure why YADE cannot locate the engine. Do I need to explicitly write the library path in the fluidDragForce.cpp? Thanks. Cheers, Tao -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Re: [Yade-users] [Question #159123]: how to link an external library with YADE
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 in which directory is the library on your system? Sorry to ask basic questions, but, you recompiled right? -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. ___ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp