Giter Club home page Giter Club logo

Comments (10)

Stinkfist0 avatar Stinkfist0 commented on August 11, 2024

Does build-deps.cmd run OK? We should not have dependency to Boost.Atomic AFAIK, but it might have lurked in due to recent *nix changes. In CMakeLists.txt, there should be possible to define set(BOOST_THREAD_DONT_USE_ATOMIC, FALSE) (or similar) before the FIND_PACKAGE(Boost ...) line.

from ifcopenshell.

aothms avatar aothms commented on August 11, 2024

I haven't seen any reference to Boost.Atomic before. @berndhahnebach, if the suggestion made by @Stinkfist0 works, can you send a pull request? Thanks.

from ifcopenshell.

berndhahnebach avatar berndhahnebach commented on August 11, 2024

Does build-deps.cmd run OK?

AFAIKT it runs smooth without any errors. But there are thousands of lines and win cmd only supports 9999 lines.

added in C:\Users\bhb\Desktop\ifcos\ifcosdev\cmake\CMakeLists.txt the line given by stinkfist

ENDIF()
set(BOOST_THREAD_DONT_USE_ATOMIC, FALSE)
FIND_PACKAGE(Boost REQUIRED COMPONENTS system program_options regex thread date_time)

Here is the new cmake output of cmd ...

C:\Users\bhb\Desktop\ifcos\ifcosdev\win>run-cmake.bat "Visual Studio 12 2013 Win64"


Script configuration:
  Generator = "Visual Studio 12 2013 Win64"
  Arguments =

Dependency Environment Variables for IfcOpenShell:
   BOOST_ROOT              = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps\boost
   BOOST_LIBRARYDIR        = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps\boost\stage\vs2013-x64\lib
   ICU_INCLUDE_DIR         = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\icu\include
   ICU_LIBRARY_DIR         = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\icu\lib
   OCC_INCLUDE_DIR         = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\oce\include\oce
   OCC_LIBRARY_DIR         = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\oce\Win64\lib
   OPENCOLLADA_INCLUDE_DIR = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\OpenCOLLADA\include\opencolla
da
   OPENCOLLADA_LIBRARY_DIR = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\OpenCOLLADA\lib\opencollada
   PYTHONHOME              = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\Python27
   PYTHON_INCLUDE_DIR      = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\Python27\include
   PYTHON_LIBRARY          = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\Python27\libs\python27.lib
   PYTHON_EXECUTABLE       = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\Python27\python.exe
   SWIG_DIR                = C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\swigwin
   THREEDS_MAX_SDK_HOME    = C:\Program Files\Autodesk\3ds Max 2016 SDK\maxsdk

   CMAKE_INSTALL_PREFIX    = C:\Users\bhb\Desktop\ifcos\ifcosdev\installed-vs2013-x64

Running CMake for IfcOpenShell.
-- BINDIR: C:/Users/bhb/Desktop/ifcos/ifcosdev/installed-vs2013-x64/bin
-- INCLUDEDIR: C:/Users/bhb/Desktop/ifcos/ifcosdev/installed-vs2013-x64/include
-- LIBDIR: C:/Users/bhb/Desktop/ifcos/ifcosdev/installed-vs2013-x64/lib
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindBoost.cmake:1647 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.59.0

  Boost include path: C:/Users/bhb/Desktop/ifcos/ifcosdev/deps/boost

  Could not find the following static Boost libraries:

          boost_atomic

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:105 (FIND_PACKAGE)


-- Boost include files found in C:/Users/bhb/Desktop/ifcos/ifcosdev/deps/boost
-- Boost libraries found in C:/Users/bhb/Desktop/ifcos/ifcosdev/deps/boost/stage/vs2013-x64/lib
-- Looking for opencascade include files in: C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\oce\include\o
ce
-- Header files found
-- Looking for opencascade library files in: C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\oce\Win64\lib

-- Library files found
-- ICU libraries found
-- OpenCOLLADA header files found
-- Found SWIG: C:/Users/bhb/Desktop/ifcos/ifcosdev/deps-vs2013-x64-installed/swigwin/swig.exe (found version "3.0.7")
-- Looking for Python header files in: C:/Users/bhb/Desktop/ifcos/ifcosdev/deps-vs2013-x64-installed/Python27/include
-- Looking for Python library file in: C:/Users/bhb/Desktop/ifcos/ifcosdev/deps-vs2013-x64-installed/Python27/libs/pytho
n27.lib
-- Found PythonLibs: C:/Users/bhb/Desktop/ifcos/ifcosdev/deps-vs2013-x64-installed/Python27/libs/python27.lib (found ver
sion "2.7.10+")
-- PYTHON_DEBUG_LIBRARIES not found, defining SWIG_PYTHON_INTERPRETER_NO_DEBUG workaround for IfcWrap.
-- Found PythonInterp: C:\Users\bhb\Desktop\ifcos\ifcosdev\deps-vs2013-x64-installed\Python27\python.exe (found version
"2.7.10")
-- Configuring incomplete, errors occurred!
See also "C:/Users/bhb/Desktop/ifcos/ifcosdev/build-vs2013-x64/CMakeFiles/CMakeOutput.log".
See also "C:/Users/bhb/Desktop/ifcos/ifcosdev/build-vs2013-x64/CMakeFiles/CMakeError.log".

An error occurred

C:\Users\bhb\Desktop\ifcos\ifcosdev\win>

It does not seam to have solved the problem ...

from ifcopenshell.

Stinkfist0 avatar Stinkfist0 commented on August 11, 2024

set(BOOST_THREAD_DONT_USE_ATOMIC, FALSE) might not be what one should actually write, let me see what's the correct way.

from ifcopenshell.

Stinkfist0 avatar Stinkfist0 commented on August 11, 2024

Actually a quick googling hints this might be a bug in a recent (3.5) CMake version. What version are you using? I have currently installed 3.2.1 on my work PC. Edit: ah from the output I can see you're using 3.5.

I see 3.5.2 is out already. You could try that, but if the problem persists, a quick workaround should be simply adding --with_atomic here https://github.com/IfcOpenShell/IfcOpenShell/blob/master/win/build-deps.cmd#L165 and running the build-deps again.

from ifcopenshell.

Stinkfist0 avatar Stinkfist0 commented on August 11, 2024

OK, installed CMake 3.5.0 and I have the same problem.

from ifcopenshell.

Stinkfist0 avatar Stinkfist0 commented on August 11, 2024

And by installing 3.5.2 (the latest version) the problem goes away, but I'm pretty sure this was already fixed in 3.5.1, https://blog.kitware.com/cmake-3-5-1-available-for-download/:

Roger Leigh (1):
  FindBoost: Tolerate missing indirect dependencies (#16013)

from ifcopenshell.

aothms avatar aothms commented on August 11, 2024

Ok, nice find. I guess there is an option to do a check on CMAKE_MAJOR_VERSION CMAKE_MINOR_VERSION CMAKE_PATCH_VERSION and inform users or adjust the check for boost? But probably that's overkill unless this issue pops up more often.

from ifcopenshell.

Stinkfist0 avatar Stinkfist0 commented on August 11, 2024

Yeah, I'd say for now a comment in the CMakeLists.txt should suffice.

from ifcopenshell.

berndhahnebach avatar berndhahnebach commented on August 11, 2024

upgrading to cmake 3.5.2 Works for me too! Bernd

from ifcopenshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.