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
Running and building rmw on Windows #71
Comments
If anyone is interested in doing this, do you think using Cygwin is the best method? I'm open to other ideas. Please remember to "star" this project (upper right corner) and join the chat room if you like. The Contributing wiki page contains important information about making pull requests. |
AFAIK, for a native executable Cygwin is the easiest and best method. I dislike the extra dll, but it's already in my "unixutils" folder anyway. Nowadays however you have a full linux system running if you want with WSL. Basically what WINE does for Windows on Linux, WSL does for Linux on Windows. Best thing of all, it's just an optional install. WSL compiles a working Linux binary. |
I agree. I have very little experience with Windows programming, but from what I do know, Cygwin is the way to go. I'm glad I documented some of my experience with building and running it on Windows in the first post. That was over a year ago. I have no plans to do anything with this, but if anyone has some experience with Windows programming and wants to implement this, please do so. :) |
Regarding getting the right path or HOME info, this might give some clues when we work on this in the future: |
I'll let a regular Windows developer decide on the best way to do this. My only requirement is that it use the existing build system GNU autotools. |
I think I could be open to a different build system for Windows. Again.. I'd leave that to the developer to decide. |
Starting to add a cmake build system in #288. |
I don't have the patience for it. Closing that draft. |
Using CygWin, I built a Windows binary for rmw. It's available in the win32 on the develop branch.
Instead of HOME, it uses the environmental variable LOCALAPPDATA.
Anyone wanting to experiment with it can find their LOCALAPPDATA directory by using the
set
command. On Windows,rmw
should create a trash folder there (.trash/rmw/files & .trash/rmw/info), and create a configuration directory in %LOCALAPPDATA%Problems I've had so far:
/cygdrive/c...
If you try building from source, you'll need to
#define WIN32
in the CFLAGS option, or at the top of rmw.h.I'm not writing out complete instructions yet until I've tested it more and added a bit more code to ensure portability. Nothing is in place yet for
make install
.Anyone wishing to help me get that code in place or test, please let me know.
The text was updated successfully, but these errors were encountered: