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

build error on windows using mingw #324

Open
prashant-saxena opened this issue Aug 27, 2022 · 1 comment
Open

build error on windows using mingw #324

prashant-saxena opened this issue Aug 27, 2022 · 1 comment

Comments

@prashant-saxena
Copy link

Hi,

Windows 10
Cmake 3.22.0 rc 2
g++ (Rev2, Built by MSYS2 project) 10.3.0

$ mingw32-make
[  0%] Building CXX object CMakeFiles/pbrt.dir/src/core/api.cpp.obj
g++.exe: error: /D: No such file or directory
g++.exe: error: PTEX_STATIC: No such file or directory
mingw32-make[2]: *** [CMakeFiles\pbrt.dir\build.make:76: CMakeFiles/pbrt.dir/src/core/api.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:405: CMakeFiles/pbrt.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
@mmp
Copy link
Owner

mmp commented Sep 18, 2022

I think the issue is that the CMakeLists file assumes that WIN32 implies MSVC, for example here:

IF ( WIN32 )
.

It might suffice to changing that WIN32 check to be for MSVC, but there may be other issues as well. A pull request fixing this would be most welcome!

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