Closed thefrostysnowman closed 3 years ago
Try to modify this part: (It works on my Mac.)
54c54
< namespace fs = std::filesystem;
---
> namespace fs = std::__fs::filesystem;
Try to modify this part: (It works on my Mac.)
54c54 < namespace fs = std::filesystem; --- > namespace fs = std::__fs::filesystem;
On https://github.com/DeadSix27/waifu2x-converter-cpp/blob/master/src/modelHandler_OpenCL.cpp
Do you know if the std::__fs::filesystem namespace is available on all the platforms that currently successfully use std::filesystem? That's a clean solution if so.
I made a commit for my own use which skips the fs definition entirely if GENERATE_BINARY isn't defined since it isn't used unless GENERATE_BINARY is defined. Unfortunately I don't have any other computers to test my change on, so I can't validate whether this breaks another platform's compile. https://github.com/thefrostysnowman/waifu2x-converter-cpp/commit/96818ae2223d9d9abbf021d3a9d9f9cbd1d457dc
Do you know if the std::__fs::filesystem namespace is available on all the platforms that currently successfully use std::filesystem? That's a clean solution if so.
Or write a macro for macOS?
Fixed by PR #255
After following the Mac build steps, make is failing with the following:
By commenting out the offending line the build succeeded and Waifu2x works as expected. It appears the fs definition can be defined out for Mac?
Make specified this information about my machine: