-
Notifications
You must be signed in to change notification settings - Fork 116
Feature/rdk 4115/windows port #229
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
Feature/rdk 4115/windows port #229
Conversation
Thank you very much for the input. I am not completely sure whether the licensing model with the 3rdparty projects would work in that constellation. I'll come back to that. There might be the chance of removing the pthread calls, though / replace them with Windwos threads where needed. E.g. by using |
pthread-win32 is licensed under two licenses: Apache 2.0 and GNU LGPL. But anyway, I agree with you and think it's wasteful to use a POSIX Thread Layer for the sake of a couple calls. |
It's done.
|
Thanks for the PR. Really interesting. |
Thank you. |
Could we combine this PR with a Windows CI? I am not experienced with compiling things on Windows, so if you could help us out there, that would be great :-) |
That would be great, but unfortunately I've been pretty busy with work lately. |
Thank you for the reply. I'll see whether I can draft something up quickly, myself, then. |
@panzi will you be that we include the 3rdparty/endian/endian.h into this project under Apache 2.0 or BSD3 license? The header seems very useful. Thanks for the great work. |
You may include it under whatever license, even without referencing where you got it from. As I said, I put it under the public domain. Anyone can do anything with it. If that is too vague for you, you may consider it to be Apache 2.0, as is your project, to make things simpler. But again, I don't care. It's trivial. And I don't think I would do it like that nowadays anyway. You can make endian independent macros that should compile away if the endianess matches your machine. Like: /** @param uint8_t* PTR */
#define READ_U32_LE(PTR) (uint32_t)((uint32_t)(PTR)[0] | ((uint32_t)(PTR)[1] << 8) | ((uint32_t)(PTR)[2] << 16) | ((uint32_t)(PTR)[3] << 24)) Example that shows it has the same assembly for gcc -O2: https://godbolt.org/z/5v61vz7ad |
Thank you again @vdm-dev! I've whipped together a windows build workflow in https://github.com/urfeex/Universal_Robots_Client_Library/blob/win-build/.github/workflows/win-build.yml based on your changes and the ones from #244. It builds, but running the tests seems not to be successful for some tests. Did you experience the same things? As I currently don't have a Windows machine available, I cannot verify this locally. |
I'll check back later this week. |
I have investigated the problem and added fixes to both the tests and the
|
Awesome, thank you! Would you mind me pushing the Windows CI workflow to that branch? |
That would be great! |
See RoboDK#1. Note that this also merges in current master hence all of those unrelated changes to your branch. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #229 +/- ##
==========================================
+ Coverage 73.53% 73.62% +0.09%
==========================================
Files 80 80
Lines 3182 3174 -8
Branches 399 395 -4
==========================================
- Hits 2340 2337 -3
+ Misses 622 621 -1
+ Partials 220 216 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@urfeex |
@vdm-dev could you please merge in current master and format the code as explained above? Also, we should make sure the endian file is installed and available for downstream packages. The easiest solution probably would be to place it inside |
@vdm-dev I've given this some manual testing and it seems to be working fine :-) If you could merge in current master and format the code I think we would be good to merge that in. |
@vdm-dev I've created a PR to your branch making the merge and code format. Please consider merging this. |
Merge upstream main and format code
Thank you. So much to do lately, I can't keep up with everything. I merged your code with mine. |
@vdm-dev I've spent quite some time testing this branch and there are couple of issues left, especially regarding shutdown. However, I think those issues are not directly coming from this PR, but they might just be showing through this PR since we are on another platform. I've created one more PR on your branch as the file handling inside the UrDriver tests was not working correctly. With that merged, I would be fine with merging this PR here and tracking the outstanding issues in separate issues. |
Merge current master and fix file handling
Done |
Thank you @vdm-dev for implementing this and for sticking around :-) |
Greetings from RoboDK Team.
We've done some work here and now your library builds and runs on Windows (including RTDE protocol).
We added the 3rdparty folder with two sub-projects: