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

Fix GTest extension build fails on installing it by building from source on windows #2337

Closed

Conversation

k0T0z
Copy link
Contributor

@k0T0z k0T0z commented Mar 17, 2023

Fix #2338

GTest extension must be installed using pacman -S mingw-w64-x86_64-gtest to be working correctly with the current ENIGMAsystem/SHELL/Universal_System/Extensions/GTest/Makefile, but if you installed GTest with another way (building it from source and copy-paste files), it won't work because you will need the .dll file for linking it dynamically which is not provided when you build gtest from source, you only got .a files.

Using pacman or building from source gives you .a files, which you can link statically to your exe and this PR provides that change.

@RobertBColton RobertBColton self-requested a review March 19, 2023 21:17
Copy link
Contributor

@RobertBColton RobertBColton left a comment

Choose a reason for hiding this comment

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

Looks good, glad they got back to me about this!
msys2/MINGW-packages#5113

@k0T0z
Copy link
Contributor Author

k0T0z commented Mar 20, 2023

cool, thanks robert

@k0T0z k0T0z changed the title fix gtest extension crash on windows Fix GTest extension build fails on installing it by building from source on windows Mar 20, 2023
@k0T0z
Copy link
Contributor Author

k0T0z commented Oct 12, 2023

I like the dynamic approach more than the static one so let's close this as it's not needed anymore.

@k0T0z k0T0z closed this Oct 12, 2023
@k0T0z k0T0z deleted the fix-gtest-extension-crash-windows branch October 12, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GTest extension build fails on installing it by building from source on windows
2 participants