Closed darbyjohnston closed 4 years ago
I ran into the same issue when building OpenImageDenoise v1.2.0 separately (not the OSPRay superbuild) on Windows 10 with MSVC 2019/NMake. I worked around the issue by editing the CMake script file mentioned above and replacing add_definitions(/Qpar)
with add_compile_options(/Qpar)
.
Hi, using "add_compile_options" looks like a good change since "/Qpar" is indeed an option for compiling and not a preprocessor definition:
https://docs.microsoft.com/en-us/cpp/build/reference/qpar-auto-parallelizer?view=vs-2019
Oddly enough I did not run into this when I was compiling OpenImageDenoise separately, I'm not sure what I was doing differently from your build. I had originally opened an issue on the OpenImageDenoise GitHub page but @atafra thought it was specific to the OSPRay superbuild:
https://github.com/OpenImageDenoise/oidn/issues/61
I'll re-open that issue and include your suggested change.
@atafra has made the suggested change and checked it into the OpenImageDenoise devel branch.
Hi,
I'm trying to compile the latest OSPRay with the superbuild script on Windows and am running into an error:
The error is coming from the "/Qpar" options which is not recognized by rc.exe. The "/Qpar" option seems to be coming from "oidn_platform.cmake":
The odd part is that if I compile OpenImageDenoise separately everything builds fine and the "/Qpar" option does not show up in the rc.exe command-line, indeed the rc.exe command-line options differ quite a bit between building OpenImageDenoise on it's own and with the OSPRay superbuild script. Has anyone else run into this?
This is on Windows 10 with Visual Studio 2017, configured with this CMake command:
Thanks, Darby