
Thu, 02/13/2025 - 19:43
Hello all,
i get the following error now:
Error: glTF writer is unavailable - OCCT has been built without RapidJSON support [HAVE_RAPIDJSON undefined]
version: OCCT-7_9_0_beta2 (beta1 also)
modified CMakeLists.txt:
# whether use optional 3rdparty or not
set (USE_TK ON CACHE BOOL "${USE_TK_DESCR}")
set (USE_FREETYPE ON CACHE BOOL "${USE_FREETYPE_DESCR}")
set (USE_FREEIMAGE ON CACHE BOOL "${USE_FREEIMAGE_DESCR}") #was OFF
set (USE_FFMPEG ONthank you CACHE BOOL "${USE_FFMPEG_DESCR}") #was OFF
set (USE_OPENVR ON CACHE BOOL "${USE_OPENVR_DESCR}") #was OFF
set (USE_RAPIDJSON ON CACHE BOOL "${USE_RAPIDJSON_DESCR}") #was OFF
set (USE_DRACO ON CACHE BOOL "${USE_DRACO_DESCR}") #was OFF
set (USE_TBB ON CACHE BOOL "${USE_TBB_DESCR}") #was OFF
set (USE_EIGEN ON CACHE BOOL "${USE_EIGEN_DESCR}") #was OFF
compiled with Qt6
got 67 dll
i copied *.hxx *.lxx to inc folder
Thanks for hints! Cheers
Thu, 02/13/2025 - 20:57
Hello. The output is show the issue:
Please turn on RapidJson (it is required to work with GLTF) and enable DRACO.
Best regards, Dmitrii.
Thu, 02/13/2025 - 21:01
If you modify CMakeList.txt - then it is not accepted way. OCCT tested publicly, you can check the build process and test process. Data Exchange - IGES Import Degenerated BSpline crash
Please use the next command:
Best regards, Dmitrii.
Thu, 02/13/2025 - 21:50
Thanks
I had to add ".." after cmake to get it going. I came to
Build files have been written to: C:/Users/xxx/Downloads/OCCT-7_9_0_beta2/build content please see build.jpg
it went real fast so I assume the dlls are not build. I also think this is for VisualStudio??
I forgot the mention I need it for MinGW
Thanks!
Thu, 02/13/2025 - 21:55
In my case is only cmake step, then you need to build. But for mingw it is easier :)
There is sample for UCRT Msys2. More samples in GitHub action for OCCT.
packages: mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-omp mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-rapidjson mingw-w64-ucrt-x86_64-freetype mingw-w64-ucrt-x86_64-draco mingw-w64-ucrt-x86_64-freeimage mingw-w64-ucrt-x86_64-tbb mingw-w64-ucrt-x86_64-tk mingw-w64-ucrt-x86_64-tcl mingw-w64-ucrt-x86_64-openvr mingw-w64-ucrt-x86_64-jemalloc mingw-w64-ucrt-x86_64-mesa mingw-w64-ucrt-x86_64-angleproject mingw-w64-ucrt-x86_64-llvm-openmp mingw-w64-ucrt-x86_64-winpthreads-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-cross-mingwarm64-winpthreads
Best regards, Dmitrii.
Fri, 02/14/2025 - 00:02
then i run
Fri, 02/14/2025 - 00:17
Please check that your Msys ucrt up to date. If error still here
- change -j 16 to your core number,
- disable USE_PCH
- change compiler to clang and clang++
- use not 'Production', but 'Default' BUILD_OPT_PROFILE
Best regards, Dmitrii
Fri, 02/14/2025 - 02:09
All looks good until here:
anyhow - I keep going with
There is over 50gb harddrive space and and 48GB memory, Intel Core i7
Fri, 02/14/2025 - 04:05
Please try to build as you build before. The issue can't be detected from my side and it will be not possible to debug from forum messaging.
From my setup I can't reproduce. Looks like your didn't download some core packages and some libs still try to search in your windows specific folders.
Best regards, Dmitrii.
Fri, 02/14/2025 - 04:17
I got it going via QT6
All I had to do was check the USE_RAPIDJSON option. Please see attached screenshot
Thanks for your time!