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

Compiling latest Ifcopenshell v0.7.0 on windows -->failed too build occt #2022

Closed
CrossStyle opened this issue Feb 5, 2022 · 7 comments
Closed

Comments

@CrossStyle
Copy link

I tried building Ifcopenshell v0.7.0 on windows with vs2019 x64 and I followed the command in readme.

> cd IfcOpenShell\win
> build-deps.cmd

I got the error when building occt. The log is shown below and I appreciate your help.

Cloning Open CASCADE 7.5.3 into D:\code\c++\ifc\IfcOpenshell\_deps\occt_git.
Cloning into 'D:\code\c++\ifc\IfcOpenshell\_deps\occt_git'...
remote: Enumerating objects: 286918, done.
remote: Counting objects: 100% (286918/286918), done.
remote: Compressing objects: 100% (52551/52551), done.
remote: Total 286918 (delta 237532), reused 279362 (delta 230330)
Receiving objects: 100% (286918/286918), 148.99 MiB | 7.30 MiB/s, done.
Resolving deltas: 100% (237532/237532), done.
Updating files: 100% (35453/35453), done.
Checking out Open CASCADE 7.5.3 revision V7_5_3.
HEAD is now at 7109a4ae58 0032806: Coding - get rid of unused headers [Contap to Extrema]
Updating files: 100% (10295/10295), done.
Note: switching to 'V7_5_3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at fecb042498 Update version up to 7.5.3
Running CMake for Open CASCADE 7.5.3.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.29.30139.0
-- The CXX compiler identification is MSVC 19.29.30139.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/installManual/vs_studio/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/installManual/vs_studio/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Info. Detecting doxygen
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) (Required is at least version "1.8.4")
-- Info: DRAWEXE is not included due to Static build library type
-- Info: /D_WINDOWS has been removed from CMAKE_CXX_FLAGS
-- Info: /DWIN32 has been removed from CMAKE_CXX_FLAGS
-- Info: /D_WINDOWS has been removed from CMAKE_C_FLAGS
-- Info: /DWIN32 has been removed from CMAKE_C_FLAGS
-- Info: Freetype is used by OCCT
-- Found Freetype: D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype/lib/freetype.lib (found version "2.7.1")
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at adm/cmake/occt_macros.cmake:569 (string):
  string sub-command REGEX, mode MATCH failed to compile regex
  "D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype".
Call Stack (most recent call first):
  adm/cmake/freetype.cmake:122 (CHECK_PATH_FOR_CONSISTENCY)
  CMakeLists.txt:14 (include)
  CMakeLists.txt:514 (OCCT_INCLUDE_CMAKE_FILE)


RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at adm/cmake/occt_macros.cmake:569 (string):
  string sub-command REGEX, mode MATCH failed to compile regex
  "D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype".
Call Stack (most recent call first):
  adm/cmake/freetype.cmake:123 (CHECK_PATH_FOR_CONSISTENCY)
  CMakeLists.txt:14 (include)
  CMakeLists.txt:514 (OCCT_INCLUDE_CMAKE_FILE)


-- Info: TKIVtk and TKIVtkDraw toolkits excluded due to VTK usage is disabled
-- Info: The directories of 3rdparty headers:
        D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype/include/freetype2
-- Info: The directories of 3rdparty libraries:
        D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype/lib
CMake Warning at CMakeLists.txt:781 (message):
  Could not find DLLs of used third-party products: 3RDPARTY_FREETYPE_DLL_DIR


--
Info: (16:12:12) Start collecting all OCCT header files into D:/code/c++/ifc/IfcOpenshell/_deps/occt_git/_build-vs2019-x64/inc ...
-- Info: (16:12:12) Compare FILES with files in package directories...
-- Info: (16:12:15) Create header-links in inc folder...
-- Info: (16:12:26) Checking headers in inc folder...
-- Info: (16:12:26) End the collecting
-- Info: (16:12:26) OCCT toolkits processed
-- Info: (16:12:26) OCCT configuration files prepared
-- Configuring incomplete, errors occurred!
See also "D:/code/c++/ifc/IfcOpenshell/_deps/occt_git/_build-vs2019-x64/CMakeFiles/CMakeOutput.log".

An error occurred

Build ended at 16:12:30.89. Time elapsed 0:16:27.12.
@aothms
Copy link
Member

aothms commented Feb 5, 2022

I saw one similar issue here: davisking/dlib#1948

Before looking into this in detail. Do you happen to have an old version of cmake perhaps?

@CrossStyle
Copy link
Author

I think I only have one cmake.
image

@aothms
Copy link
Member

aothms commented Feb 5, 2022

Ah, I see it now, sorry.

RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at adm/cmake/occt_macros.cmake:569 (string):
  string sub-command REGEX, mode MATCH failed to compile regex
  "D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype".

Nested *?+
         ^

"D:/code/c++/ifc/IfcOpenshell/_deps-vs2019-x64-installed/freetype".
          ^^

Apparently a ++ is not supported in the open cascade path.

@CrossStyle
Copy link
Author

Thank you, I will try with a different directory.

@aothms
Copy link
Member

aothms commented Feb 5, 2022

@aothms
Copy link
Member

aothms commented Feb 5, 2022

f909adc

@CrossStyle
Copy link
Author

Thanks again. It works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants