Comments (7)
Hi Cameron, thanks for the report!
OpenMP is not well supported on MSVC (only OpenMP 2.0), so I am not surprised by this error. I (or someone) needs to rewrite the example device threading to use an alternative tasking system than OpenMP for the sake of better Windows support. Admittedly, the example device was developed entirely on Linux (where OpenMP is trivial to find) and we do not (yet) have Windows CI.
However, we do want to fully support Windows! Could you try commenting out this line to see if removing OpenMP support at least gets you past this issue? If that at least unblocks you, I will add logic to not find OpenMP when building on Windows as a short-term workaround.
from anari-sdk.
Hi Jefferson,
Thanks very much, commenting that out seems to have improved the compilation on Windows.
This is the remaining result, I have removed the Warnings.
6>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\simple\anariTutorial.c(13,10): fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 10>LINK : fatal error LNK1181: cannot open input file '..\..\Release\anari_utilities.lib' 11>LINK : fatal error LNK1181: cannot open input file '..\..\Release\anari_utilities.lib' 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\renderer\Renderer.cpp(20,51): error C7555: use of designated initializers requires at least '/std:c++20' 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\scene\bvh/BVH.h(66,33): error C2338: BVH::Node is too big! 12>LINK : fatal error LNK1181: cannot open input file '..\..\Release\anari_library_example.lib'
Many thanks and kind regards,
Cameron
from anari-sdk.
I've pushed the OpenMP CMake logic workaround and removed the static assert which was failing (seemed unnecessary). Could you retry latest main
?
from anari-sdk.
Hi Jefferson,
Redownloaded main and compiled, it's looking better.
`6>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\simple\anariTutorial.c(13,10): fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
11>LINK : fatal error LNK1181: cannot open input file '....\Release\anari_utilities.lib'
10>LINK : fatal error LNK1181: cannot open input file '....\Release\anari_utilities.lib'
8>C:\Users\Cameron\Downloads\ANARI-SDK-main\examples\example_device\renderer\Renderer.cpp(20,51): error C7555: use of designated initializers requires at least '/std:c++20'
12>LINK : fatal error LNK1181: cannot open input file '....\Release\anari_library_example.lib'
...
8>Done building project "anari_library_example.vcxproj" -- FAILED.
12>------ Build started: Project: anariTutorialDirectLink, Configuration: Release x64 ------
12>Building Custom Rule C:/Users/Cameron/Downloads/ANARI-SDK-main/examples/direct_linking/CMakeLists.txt
12>anariTutorialDirectLink.c
12>LINK : fatal error LNK1181: cannot open input file '....\Release\anari_library_example.lib'
12>Done building project "anariTutorialDirectLink.vcxproj" -- FAILED.
13>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------T
13>Building Custom Rule C:/Users/Cameron/Downloads/ANARI-SDK-main/CMakeLists.txt
========== Build: 8 succeeded, 5 failed, 0 up-to-date, 0 skipped ==========`
Thank you for the quick feedback!
Kind regards,,
Cameron
from anari-sdk.
Just pushed an update to just use plain malloc()
for the anariTutorial
app...hopefully we are close!
from anari-sdk.
Pulled down a fresh main.
It seems like it's only the memory allocation header that needs a pre-processor statement,
Windows will look for:
#include <malloc.h>
Others:
#include <alloca.h>
Somehow Cmake should hint that the generated project should use C++20 standard.
Something like:
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
I'm manually stepping through anari, anari_library_example.. etc,. to add the c++20 parameter.
Thank you for your awesome work!
Kind regards,
Cameron
from anari-sdk.
Its better.
13>LINK : fatal error LNK1181: cannot open input file '....\Release\anari_utilities.lib'
13>Done building project "anari_library_example.vcxproj" -- FAILED.
17>------ Rebuild All started: Project: anariTutorialDirectLink, Configuration: Release x64 ------
17>Building Custom Rule C:/Users/Cameron/Downloads/ANARI-SDK-main/examples/direct_linking/CMakeLists.txt
17>anariTutorialDirectLink.c
17>LINK : fatal error LNK1181: cannot open input file '....\Release\anari_library_example.lib'
17>Done building project "anariTutorialDirectLink.vcxproj" -- FAILED.
18>------ Rebuild All started: Project: ALL_BUILD, Configuration: Release x64 ------
18>Building Custom Rule C:/Users/Cameron/Downloads/ANARI-SDK-main/CMakeLists.txt
19>------ Skipped Rebuild All: Project: INSTALL, Configuration: Release x64 ------
19>Project not selected to build for this solution configuration
========== Rebuild All: 9 succeeded, 4 failed, 6 skipped ==========
-I appreciate you're tweaking all this from a Linux based codebase.
Many thanks,
Cameron
from anari-sdk.
Related Issues (20)
- Please support MSYS2 MINGW64 HOT 4
- ANARIFeatures missing extension ANARI_KHR_STEREO_RENDERING HOT 2
- build failing, v0.3.0 and latest main HOT 5
- Create an offline version for the build HOT 3
- NULL pointer dereference in anariLoadLibrary if ANARI_LIBRARY is not set HOT 2
- Test fail with SIGILL HOT 1
- `primitive.index` not used for indexing into `vertex.color` HOT 1
- Vcpkg port HOT 2
- Wrong type for parameter `outOffset` of sampler `transform` HOT 1
- Missing CMake target for the debug backend layer HOT 1
- New device documentation HOT 3
- Comparing ANARIDataType in c++20
- Ensure spec compatibility with ANARI_BOOL in C++ wrappers
- Anari Python Bindings, Arrays of Arrays HOT 9
- Fails to build with Intel compilers. HOT 4
- Compiling on Windows - Visual Studio 2019 HOT 4
- Add SDK version as a #define
- Need to move anariGetObjectFeatures definition to the API.cpp implementation file HOT 4
- Building helide device fails for CMake 3.18 HOT 1
- Building GL Viewer on macOS fails due to missing GLES HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anari-sdk.