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

Improve setup.py installation on Windows #23

Open
danielpieczko opened this issue Mar 7, 2022 · 1 comment
Open

Improve setup.py installation on Windows #23

danielpieczko opened this issue Mar 7, 2022 · 1 comment

Comments

@danielpieczko
Copy link
Contributor

For Linux and Mac, a pip install of xscope_fileio will build the host endpoint in the host directory so it is ready to use.

For a general Windows system, we can't assume a particular build command because there are multiple options (for example: just nmake, or create a whole VisualStudio project?)

Currently setup.py skips the build commands on Windows, but it would be nicer to do something more useful like check if the endpoint is present and display a warning to say that it needs to be built manually in the correct directory.

@xhuw
Copy link
Contributor

xhuw commented Sep 5, 2023

with visual studio C++ toolchain installed and fair bit of googling I found the cmake incantation. needed to specify win32 as XTC seems to ship with a x86 version of the fileio lib

cd host
cmake -B build -A Win32
cmake --build build --config Release

Then the host app can be found in host\build\Release

here's one I made earlier

edit: I used the "Visual Studio 17 2022" generator. Didn't manage to make ninja work

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