-
Notifications
You must be signed in to change notification settings - Fork 179
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
Installation on Windows 10 #63
Comments
Hello, Unfortunately none of us own a windows machine so it will be hard for us to help troubleshoot this. We did not intend to support Windows in the first place. We use Hope it helps :/ |
I built ffcv successfully with my Windows 10 PC Install opencv (https://opencv.org/releases/) Install libjpeg-turbo (https://sourceforge.net/projects/libjpeg-turbo/) Install pthread (https://www.sourceware.org/pthreads-win32/) And install mingw. We need to configure .pc file of above packages to find them with pkg-config. create and paste below files to pkg-config path
Now pkg-config can recognize opencv4, libturbojpeg, pthread. In setup.py, add # setup.py
...
extension_kwargs = pkgconfig('opencv4', extension_kwargs)
extension_kwargs = pkgconfig('libturbojpeg', extension_kwargs)
extension_kwargs = pkgconfig('pthread', extension_kwargs) # add this line.
# extension_kwargs['libraries'].extend(['pthread']) # mute this line.
... In libffcv/libffcv.cpp remove dunder from // libffcv/libffcv.cpp
int imdecode(unsigned char *input_buffer, uint64_t input_size,
uint32_t source_height, uint32_t source_width,
unsigned char *output_buffer,
uint32_t crop_height, uint32_t crop_width,
uint32_t offset_x, uint32_t offset_y,
uint32_t scale_num, uint32_t scale_denom,
bool enable_crop,
bool hflip) Finally, can build ffcv by following command without error. python setup.py bdist_wheel However, I haven't checked the operation of ffcv on my Windows PC yet. |
That's amazing. Feel tree to make a pull request if you are fine making this available to other users. In the meantime I will close this issue. |
All goes well (after install VS2017 SDKs), except for "pip install ffcv". Both versions are tested and yields:
Not sure where the logs are, but surely would expect 'pkgconfig' to be absent on Windows.
Any ideas?
The text was updated successfully, but these errors were encountered: