-
-
Notifications
You must be signed in to change notification settings - Fork 230
Early fixes for MinGW build - draft PR #817
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: develop
Are you sure you want to change the base?
Conversation
|
🤖 Pull request description does not have a link to an issue. |
|
Ok, learning to use PR's, i believed it would contain only the commit for the URL, but looks like the PR includes all commits including ones added later, so it contains also the socket_addr and _ops which i intended to put on a separate PR... Now i get all CI tests pass, i'll continue working on local machine, as i suppose for incremental approach you prefer that i don't push anymore stuff into this PR yet, and wait for this one to be reviewed and maybe fixed some more. |
Linux build is fine, but MinGW build fails without those.
|
Hi, thanks for update! I'll checkout changes next week, here are just 2 small remarks:
|
I'm fine with this approach, just FYI:
|
|
Hello, Here's the remaining warning: Tried about any kind of casts to no avail, and was surprised to see it was the other way around, as ntohs uint32_t return that would be cast to signed in the macro, also probably the macro expansion made the compiler point to "function" macro instead of parameter, but same attempts with casts of parameter in in function param were also no avail. Now i suppose i i'd have only this one to be solved to consider those modifications to wothy of merge?
|
Hello,
Worked some more on porting. Got rid of all but one compile warning for MinGW.
update: fixed.
Here's the remaining warning:
Tried about any kind of casts to no avail, and was surprised to see it was the other way around, as ntohs uint32_t return that would be cast to signed in the macro, also probably the macro expansion made the compiler point to "function" macro instead of parameter, but same attempts with casts of parameter in in function param were also no avail.
Same as some attempts as replacing with !=0 and similar.
Now i suppose i i'd have only this one to be solved to consider those modifications to wothy of merge?
Marking it as ready for review, and will start working on (supposed agree on priorities for MinGW32/Windows):
gh-292
Ok, i think it's ready for review, removing the 'draft mark'...
With all of those (plus copy of some files from posix) it successfully generates libroc_*.a:
Minimal MinGW build for Windows #292 (comment)
Meanwhile i'll try to static-link this libroc_core.a in Windows roc-send, and try to cross-compile roc-recv/send to see if it works.
Then i think as next priorities: