Skip to content
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

Support cross-compiling with Mingw #2094

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

pablo-benito
Copy link
Contributor

Feature or improvement description

Support cross-compiling openfast in Linux (to build a Windows version)

I'm using Mingw compiler on Linux to cross-compile openfast and build a Windows version (yes, geek but useful for me ...)
Unfortunately the mingw windows header file is "windows.h". In a case-sensitive system (like linux) the build fails in this line, as it's trying to include the header "Windows.h" ('W' upper-case)

Changing the include line to #include <windows.h> solves my problem and I'm able to cross-compile openfast. The change should not affect the windows native build, as this is a case-insensitive system.

Related issue, if one exists

None

Impacted areas of the software

None

Additional supporting information

Test results, if applicable

In order to cross-compile with mingw on a case-sensitive file-system, the windows.h include must be lowercase
Copy link
Collaborator

@deslaughter deslaughter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deslaughter deslaughter removed the request for review from andrew-platt March 15, 2024 13:06
@deslaughter deslaughter merged commit 9fef0c4 into OpenFAST:dev Mar 15, 2024
21 checks passed
@andrew-platt
Copy link
Collaborator

@deslaughter, should we include this in 3.5.3?

@deslaughter
Copy link
Collaborator

deslaughter commented Mar 15, 2024 via email

@andrew-platt andrew-platt mentioned this pull request Dec 24, 2024
38 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants