christopherpoole / CADMesh

A CAD file interface for GEANT4
MIT License
146 stars 66 forks source link

Building and installation of CADMesh in macOS sierra #30

Closed gustavoaae closed 4 years ago

gustavoaae commented 4 years ago

Greetings.

I am trying to install CADMesh on a mac with OS Sierra, but when doing the building process the following error messages appear:

-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2") 
CMake Warning at examples/template/CMakeLists.txt:10 (find_package):
  By not providing "Findcadmesh.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "cadmesh", but
  CMake did not find one.

  Could not find a package configuration file provided by "cadmesh" with any
  of the following names:

    cadmeshConfig.cmake
    cadmesh-config.cmake

  Add the installation prefix of "cadmesh" to CMAKE_PREFIX_PATH or set
  "cadmesh_DIR" to a directory containing one of the above files.  If
  "cadmesh" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   cadmesh

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/gustavoalcala/CADMesh/build

And even though it tells me the configuration was set and the installation can be done, when doing the installation (executing make command) problems start to arise and the installing process cancels itself.

This may be caused because during the building I am obtaing these problems:

First, it tells me there are problems in the file examples/template/CMakeLists.txt, and the line with the issue reads "find_package(cadmesh)". Here I do not know if I have to add something when doing the build instead of just doing it with "cmake .." command inside the build directory.

Them it tells me the is a problem with the CMake's Policy CMP004. And regarding this, I have added such policy to the CMakeList but that does not seem to solve my problem.

Thank you very much.

christopherpoole commented 4 years ago

Please try the latest version of CADMesh. Version 2.