-
Notifications
You must be signed in to change notification settings - Fork 101
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
base: master
Are you sure you want to change the base?
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 |
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: