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

Building 3.13.4 on Windows using Visual Studio 2022 17.6.2 and OneAPI 2023.1 #446

Open
loopless opened this issue May 30, 2023 · 1 comment
Assignees

Comments

@loopless
Copy link

loopless commented May 30, 2023

I have having a difficult time building Embree 3.13.4 on Windows VS 2022 17.6 due to include file conflicts

From what I can see, platform.h includes "memory" which ultimately includes "cstring" which includes "string.h" but the compiler finds the Embree "string.h" and everything falls apart.

4>In file included from sysinfo.cpp:4:
4>In file included from ./sysinfo.h:15:
4>In file included from ./platform.h:12:
4>In file included from C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\include\memory:12:
4>In file included from C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\include\iosfwd:13:
4>In file included from C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\include\cstring:12:
4>In file included from .\string.h:7:
4>In file included from ./../math/vec2.h:6:
4>In file included from ./../math/math.h:7:
4>./../math/../sys/intrinsics.h(362,9): : error : use of undeclared identifier 'unlikely'
4> if (unlikely(x == 0)) return 32;
4> ^

@dopitz dopitz self-assigned this Jun 22, 2023
@dopitz
Copy link
Collaborator

dopitz commented Jun 22, 2023

Hi, unfortunately I could not reproduce this.
I was using a clean windows 11 installation using VS 2022 with the Intel OneAPI 2023.1 and cmake 3.27.0

inside embree-3.13.4 folder

cmake -B build -G "Visual Studio 17 2022"
cmake --build build

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