-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binaries compiled with shared libraries are not properly installed #430
Comments
Hi CallumG Regards Mads |
Hi Mads thanks for taking the time to respond! Yes that would be really useful if you could share example input files. Do you run them from the same diretory as the executable file? If you could give me some advice on how you setup your case in what directory etc and the command line syntax that would really help me out. Thanks again for your time! Cheers |
Hi Callum
I created a tar archive of my input files (the echo and output files are
also included if You need to compare). The entry file is 'driver.dvr'.
I assume You are running on Linux/Ubuntu. Aerodyn standalone is invoked
with:
'~/openfast/openfast/install/bin/aerodyn_driver driver.dvr '
Execution time is app. 7-8 sec. The files is just in some convenient
directory. You can consider to add 'openfast/install/bin' to Your PATH
variable for convenience.
To bee honest I have not been using openFast for very long time (I am
writing my own BEM code coupled to an optimization in order to obtain a
requested Cp distribution for the blade - profiles are fixed)
I have examined not yet if some settings in the input files is unneeded for
a steady calculation as I am doing - but I am feeling that some options can
be left out.
As You can see the structure of the input files is 'value' 'option' pair,
and some tables often indicated by a option like 'Numxxx'.
Regards Mads
Den lør. 28. mar. 2020 kl. 17.34 skrev Callum <notifications@github.com>:
… Hi Mads
thanks for taking the time to respond! Yes that would be really useful if
you could share example input files. Do you run them from the same diretory
as the executable file?
If you could give me some advice on how you setup your case in what
directory etc and the command line syntax that would really help me out.
Thanks again for your time!
Cheers
Callum
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTXOQAPNL4L3GJWQQ6EL3LRJYRJRANCNFSM4LVEHBOQ>
.
|
Hi Mads, thats really good of you to share your files. I don't see an attchchment to your post? Have you perhaps forgot to attch the tar file? Cheers |
Hi Callum
I just try once more to attach the tar.
Regards Mads
Den tir. 31. mar. 2020 kl. 09.34 skrev Callum <notifications@github.com>:
… Hi Mads,
thats really good of you to share your files. I don't see an attchchment
to your post? Have you perhaps forgot to attch the tar file?
Cheers
Callum
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTXOQG7RMH5N6C4LHXAWGTRKGMJFANCNFSM4LVEHBOQ>
.
|
Hi again Mads, I don't think it's working, I'm not sure whether you can actually attach zip files. But I have downloaded all the required inputs here, and after navigating to the directory with these in, I envoke in the commad line:
I get an error:
Or if I try to execute aerodyn_driver with:
I get error:
I'm I missing something fundimental in how I'm trying to run the thing? Would you have any thoughts on why this doesn't work? I've checked that the .so file is in /install/lib and the reg tests ran when I did the install here #384. As always any support on this issue would be really appreciated. Cheers |
Update After setting up case as per this, I envoke the executable from the build directory instead:
and now I get aerodyn to run but with error:
the NumAFfiles is 10 and they're all in the correct place? Any ideas welcome! |
There is a line missing for the Our apologies for not providing working examples for the aerodyn_driver. We are expecting to add driver level regression tests for AeroDyn15 within the next month. Once those have been added to the regression tests, we will keep them synchronized with all feature enhancements. In regards to the location of the |
Hi Callum
'aerodyn_driver' runs fine for me. This is the version of aerodyn:
'Running AeroDyn Driver a part of OpenFAST - v2.2.0-23-gf2c060ca
linked with NWTC Subroutine Library.'
'AFTabMod' is allready part of my 'WP_Baseline_AeroDyn15_Dynin.dat' file
Regards Mads
Den tir. 31. mar. 2020 kl. 16.56 skrev Andy Platt <notifications@github.com
…:
There is a line missing for the AFTabMod (recently added to the dev
branch). Here is an example of the AD15 input file compatible with the dev
branch:
https://github.com/OpenFAST/r-test/blob/4ac9baa653d45a1f8a4e1e30617e2f541eab7457/glue-codes/openfast/5MW_Land_DLL_WTurb/NRELOffshrBsline5MW_Onshore_AeroDyn15.dat
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTXOQD5XOKBPZECSMFF4NDRKIAANANCNFSM4LVEHBOQ>
.
|
Hi Callum
Adding '2 AFTabMod - Interpolation method for multiple airfoil
tables {1=1D interpolation on AoA (first table only); 2=2D' to
'input.dat' fix the error - but the files: 'Test01_UAE_AeroDyn_blade.dat'
are missing !
Regards Mads
Den tir. 31. mar. 2020 kl. 19.13 skrev Mads Mammen <mammenmads@gmail.com>:
… Hi Callum
'aerodyn_driver' runs fine for me. This is the version of aerodyn:
'Running AeroDyn Driver a part of OpenFAST - v2.2.0-23-gf2c060ca
linked with NWTC Subroutine Library.'
'AFTabMod' is allready part of my 'WP_Baseline_AeroDyn15_Dynin.dat' file
Regards Mads
Den tir. 31. mar. 2020 kl. 16.56 skrev Andy Platt <
***@***.***>:
> There is a line missing for the AFTabMod (recently added to the dev
> branch). Here is an example of the AD15 input file compatible with the
> dev branch:
> https://github.com/OpenFAST/r-test/blob/4ac9baa653d45a1f8a4e1e30617e2f541eab7457/glue-codes/openfast/5MW_Land_DLL_WTurb/NRELOffshrBsline5MW_Onshore_AeroDyn15.dat
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#430 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACTXOQD5XOKBPZECSMFF4NDRKIAANANCNFSM4LVEHBOQ>
> .
>
|
Hi Mads and Andrew, Thanks both for the comments and help! Rightfully so, adding in the "AFTabMod" line did solve the run issue and yes as you say Mads the 'Test01_UAE_AeroDyn_blade.dat' needed changing to 'blade.dat'. I now have it running, which is brilliant! However, Andrew I did in fact 'make install' (I outline my complete proceedure in the first comment in #384) but when I attempt to execute on the path:
I get error
It's not the end of the world, but maybe a bug? Thanks both for all your help, I really appreciate your time and effort! All the best, |
Hi Callum
That sounds good. Is the last a question ? I compiled openFast with
static libraries
- I think this is the default.
Regards Mads
Den ons. 1. apr. 2020 kl. 08.52 skrev Callum <notifications@github.com>:
… Hi Mads and Andrew,
Thanks both for the comments and help!
Rightfully so, adding in the "AFTabMod" line did solve the run issue and
yes as you say Mads the 'Test01_UAE_AeroDyn_blade.dat' needed changing to
'blade.dat'. I now have it running, which is brilliant!
However, Andrew I did in fact 'make install' (I outline my complete
proceedure in the first comment in #384
<#384>) but when I attempt to
execute on the path:
$HOME/OpenFAST/openfast/install/bin/aerodyn_driver driver.dvr
I get error
/home/callum/OpenFAST/openfast/install/bin/aerodyn_driver: error while
loading shared libraries: libaerodynlib.so: cannot open shared object file:
No such file or directory
It's not the end of the world, but maybe a bug?
Thanks both for all your help, I really appreciate your time and effort!
All the best,
Callum
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#430 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACTXOQEPU733L5H3JNPY7YDRKLQCNANCNFSM4LVEHBOQ>
.
|
Hi Mads, yes, I would like to know why in my case the executable can't find the library on the install path? Like I say its not the end of the world as I can call it from the build path, but it does seem strange. Perhaps it's something Andy might have an idea on. All the best, |
Hi Callum, Is the location of the @rafmudaf, do you have any other ideas on the library loading issue a few comments up? Cheers, |
My guess is something changed in the build settings (for example, in #384 there is no flag for building shared libraries) and now the binaries are out of sync. Somehow the AeroDyn Driver is expecting a @CallumG-Ed try running the driver from the build directory at |
Hi Andy/Raf, The driver does run on the I used:
flags when I installed. Cheers |
This is a bug. With
@sayerhs is the proper fix for this setting the RPATH of the executables? |
@rafmudaf Short answer: yes, you should use RPATH so that the installed executable has shared library paths hard coded so that it will work without regard to the dynamic library lookup rules.
|
Hello Everyone,
My aim is to run a very simple single turbine example in a non-turbulent constant velocity (across the rotor) flow.
I run linux Ubuntu 18.04 so I built OpenFAST with the flag "DBUILD_OPENFAST_CPP_API:BOOL=ON"
I have navigated to /openfast/glue-codes/openfast-cpp/src and attempted to run the example case "FAST_Prog.cpp" by downloading the iDriver into the directory and envoking comand mpiexec -np openfastcpp as per the manual. This returns an error "mpiexec was unable to find the specified executable file..."
Therefore I edit "openfastcpp" to the full path ie: mpiexec -np /openfast/install/bin/openfastcpp . This returns an error: "error while loading shared libraries: libopenfastcpplib.so: cannot open shared object file: No such file or directory"
So I have a few questions:
What is the protocol to setting up a simulation? Was it incorrect to download the iDriver file into the src directory and attempt to run from there? (It didn't feel right).
How do I overcome the error I am now presented with.
Is there a way of running a module, say aerodyn, independently on linux systems?
Any and all help gratefully recieved!
Cheers
Callum
The text was updated successfully, but these errors were encountered: