Skip to content
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

Windows Builds #2

Open
mesheets opened this issue Mar 21, 2020 · 2 comments
Open

Windows Builds #2

mesheets opened this issue Mar 21, 2020 · 2 comments

Comments

@mesheets
Copy link
Member

mesheets commented Mar 21, 2020

The Makefile does not appear to reference a Windows build, and platform-specific files such as rcxlib/RCX_USBTowerPipe_win.cpp do not appear to be included in the build.

Also see the file "PORTING" for additional details.

@winklerp
Copy link

winklerp commented Aug 9, 2024

Any tutorial how to build this repo for Windows?

@mesheets
Copy link
Member Author

Hello! Based on the PORTING file, “The Mac and Win32 version [were] built under Metrowerks CodeWarrior” (CodeWarrior is now owned by NXP). I have not yet come across any further details.

The Linux version can be built using GNU tools. If one counts Windows Subsystem for Linux, it can be built to run under Windows that way. The NQC CI workflow for GitHub Actions provides an example of how to build. The Linux executable of NQC could then be called from Windows using the wsl command (e.g. wsl echo "Hello from $(uname)").

As long as any existing usage under Windows isn't explicitly specifying nqc.exe and is instead only naming nqc, a simple nqc.bat file could be created as a Windows-based wrapper for the Linux executable under WSL:

@echo off
wsl nqc %*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants