Git Product home page Git Product logo

Comments (9)

sayerhs avatar sayerhs commented on June 11, 2024 2

Do you have GNU gcc and g++ compilers installed? If so, you can nudge CMake to use those similar to how you have asked it to use gfortran

CC=gcc CXX=g++ FC=gfortran cmake ../

from openfast.

rafmudaf avatar rafmudaf commented on June 11, 2024 1

If so, you must run anything compiled by CygWin within the CygWin terminal. This is from the CygWin website:

Cygwin is not:

a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
a way to magically make native Windows apps aware of UNIX® functionality like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.

Your final problem looks like a path configuration problem where cmd cannot find the cygwin dll.

I believe this issue is resolved so I'm closing it, but @pfeja feel free to open it again, if necessary.

from openfast.

pfeja avatar pfeja commented on June 11, 2024

I just tried this, but I get the same error.

Edit: I might add, that during the installation of Cygwin due to proxy settings I didn't select http://www.gtlib.gatech.edu and Direct connection, but installed it from another Mirror. However I guess this shouldn't make any difference...

from openfast.

rafmudaf avatar rafmudaf commented on June 11, 2024

@pfeja you can verify the compilers that CMake is using by looking in CMakeCache.txt. For example,

mbp@~/Development/openfast/build: grep -ni "cxx_compiler" CMakeCache.txt 
87:CMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
603://ADVANCED property for variable: CMAKE_CXX_COMPILER
604:CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1

Could you verify that you are indeed using the c++ compiler you expect?

If CMake did not pick up gcc, try deleting CMakeCache.txt and running CMake again.

from openfast.

rafmudaf avatar rafmudaf commented on June 11, 2024

And FYI you can also see the other compilers by searching for cmake_c_compiler and cmake_fortran_compiler.

from openfast.

pfeja avatar pfeja commented on June 11, 2024

After temporarily renaming the opal-rt directory, deleting the CMakeCache.txt file and running cmake with your recommended settings, and additionally, with -DCMAKE\_INSTALL\_PREFIX:PATH=$HOME/software, it compiles and runs when running inside the Cygwin Shell.

But then I added the C:\cygwin64\lib\lapack and C:\cygwin64\home\FejPau\software\bin to my PATH in the Control Panel and tried to run openfast -h from Command prompt and it complains about not finding all the Cygwin DLL files like cygwin1.dll

2018-04-12 11_21_42-eingabeaufforderung - openfast -h

EDIT: I also added C:\cygwin64\bin to the PATH but it didn't change anything.

What am I missing now?

from openfast.

pfeja avatar pfeja commented on June 11, 2024

I have created a workaround to run openfast from the Command prompt. I have created a .sh script reading
#!/bin/bash
openfast $@
and a corresponding .bat file with
bash run_openfast.sh myfile.fst
This helps, but doesn't solve the issue itself. Any ideas on this?

from openfast.

rafmudaf avatar rafmudaf commented on June 11, 2024

@pfeja Am I understanding correctly that you are trying to run the OpenFAST executable which you compiled in CygWin from the Windows Command Prompt?

from openfast.

yugoo90 avatar yugoo90 commented on June 11, 2024

Hi,
I am experiencing same issue as above. I am running a WSL ubuntu distro and using vsCode as my text editor.
Any help I could get on how to resolve this issue would be very much appreciated.

from openfast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.