-
Notifications
You must be signed in to change notification settings - Fork 18
Build module with MingW (and other compilers) with Ubuntu host on our GitLab server. #39
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
base: master
Are you sure you want to change the base?
Conversation
… conflicts with the one emplaced by magick.
There's no need for any difference between Visual Studio and MingW build defines.
But we still want to use win32/pthread
Can we build using Win32 (rather than posix) model and not get multiply-defined symbols?
|
Hi! Should this PR be merged into upstream? The description implies it's specific to your environment. |
|
Hi, This is so long ago, I am struggling to remember the details. The PR is about use of the MingW (https://www.mingw-w64.org/) toolset that builds for Windows use on a Linux host. The GitLab environment is only relevant here in that I think it did not then have a native Windows toolchain - but now it probably does. Hope this helps. If you prefer to discard the PR, I am OK with that. |
That's fair! I think it's just a matter of documenting the changes in a generic way. From what I can see of this PR, it also removes a lot of Windows code that's probably still needed when using MSVC... Was that intentional? I think this PR can be left open if you're willing to rework it to support native and mingw builds; otherwise, it should be closed. |
|
I'm not aware of having removed any Windows code that is needed when using MSVC. Clearly the native build is more important and - to my knowledge - has not been broken at all. |
This reverts commit 219f3f7.
|
OK, I believe you are referring to the removal of the build/windows subfolder. It is not needed for use of the library by either MSVC or MingW. It had been inappropriate to build the ADSupport module for normal use using the debugging code. I judge it appropriate to remove the folder from use by the makefile. However, my removal of the folder itself was unnecessarily ... brusque. |
@pheest, I'm afraid you haven't answered this part of Érico's comment. Would you be interested in reworking it even though you now have native compiler support on your end? |
|
I am sorry for not being sufficiently explicit. This pull request fully supports both native (VS) and MingW builds. I did (inappropriately) remove some files that were not used by the normal build, but could be used for internal debugging (on Windows only). These I have restored. To my knowledge, no re-work is required. |
Thanks for clarifying. Misunderstanding from my part.
Okay. It would be interesting to have someone double-check if nothing broke it since then. I don't have a machine for testing it now. From ADSupport side, little has changed since 2022 as far as I can see. Hopefully, it should be still in good shape. |
|
I was aware of an issue with MingW that the (default) win32 threading model did not work well. In my 2022 build for this, I have used the Posix thread model. I don't know whether this issue has since been addressed in the MingW toolchain. |
Built the ADURL module in this environment.