-
Notifications
You must be signed in to change notification settings - Fork 446
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
Compling OpenFAST with Simulink in VS error #11023 and LNK2019 #676
Comments
Visual studio is not finding the Matlab library that contains |
Looking at your first output screenshot, it didn't find the It does look like it found the appropriate library for the |
@klitz06, which branch are you building? |
I used " git clone https://github.com/openfast/openfast.git " to clone the repository. I dont know which one is it. How do I check it? Edit: |
|
Yes it is |
What happens if you try the The other warnings can be safely ignored (we mostly follow the Fortran 2008 standard, but only set VS to enforce the Fortran 2003 standard, so it flags stuff that isn't actually an issue). |
you may have to add the location of the SFunc to the matlab path. |
I am sorry I couldn't understand what you want me to do. Do I just run it through command window? |
yes. I was thinking in the command window. but the error might be indicating a problem with the test itself. Did you initialize the r-test submodule after cloning from github? |
Yes I actually ran |
does |
Yes it exists. I can see the input files in the folder. |
I'm not sure then. I'm at a loss for ideas. Maybe someone else can comment on with what they ran into with this. |
Thank you for your help. Could be from my MATLAB installation? Because I did not install everything that comes with MATLAB. Edit: Ofcourse Simulink is installed. |
so after some testing, I can reproduce the error you are seeing using MATLAB 2020b with simulink on a windows 10 VM. This was using the I had forgotten to mention that there was a bugfix #641 for this problem. The bug description was given in #632. This fix has been merged to the So could you try |
After downloading dev branch from scratch compilation completed without error. Same warnings are present and MATLAB example Test01 works. Other one didnt work due to not having DISCON.dll. |
Yes. There was an input file change between v2.5.0 and the This input file change is noted in the second table Modified in OpenFAST dev found here https://openfast.readthedocs.io/en/dev/source/user/api_change.html |
I have two more question. Are any test cases where pitch angle is controlled through simulink? And description of cases? |
Dear @klitz06, There are no Simulink examples like that in the OpenFAST repo, but you may find the Simulink version of the ROSCO controller of interest: https://github.com/NREL/ROSCO_toolbox. Best regards, |
Thank you. |
Dear @LaurenceWETI, As with any input file processing issue, I recommend enabling the Echo option to debug. Do you see any problems in your input file when comparing it with the corresponding Echo file? Does setting TwrShadow = FALSE solve the problem? Best regards, |
Version 2.5.0 that you are running uses a boolean flag for the The version |
Dear @jjonkman and @andrew-platt, Thank you for your quick reply. Do you have any idea how to solve this error? Best regards, |
Yes, they changed that part in the servodyn files in dev branch. Here take a look at master branch of NREL 5mw link in the TUNED MASS DAMPER section of the file. |
Hi ,
I am trying to build OpenFAST with simulink by choosing Release_Matlab mode with x64. I think errors that I am having is due to simulink linking as you can see from the errors. I am not sure about the warnings if they are problem for compiling or not.
I have changed the MATLAB libmex.lib location in simulink properties as written #638 (comment) in another post. It doesnt solve the problem unfortunately. Below you can see what i have installed in VS and Intel Fortran
The text was updated successfully, but these errors were encountered: