realthunder / solvespace

Parametric 2d/3d CAD
http://solvespace.com/
GNU General Public License v3.0
15 stars 3 forks source link

trying to build for windows (conda) #3

Open looooo opened 5 years ago

looooo commented 5 years ago

I encounter an configuration error with windows. Not yet sure whats wrong.

CMake Warning at cmake/GetGitCommitHash.cmake:6 (message):
  Not a git repository
Call Stack (most recent call first):
  cmake/GetGitCommitHash.cmake:45 (get_git_commit_hash)
  CMakeLists.txt:23 (include)

-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- 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: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SWIG: C:/Users/lo/Miniconda3/conda-bld/solvespace_1567850178226/_build_env/Library/bin/swig.exe (found version "4.0.1")
-- Found PythonLibs: C:/Users/lo/Miniconda3/libs/python37.lib (found version "3.7.3")
-- python version .
CMake Warning (dev) at C:/Users/lo/Miniconda3/conda-bld/solvespace_1567850178226/_build_env/Library/share/cmake-3.15/Modules/UseSWIG.cmake:607 (message):
  Policy CMP0078 is not set: UseSWIG generates standard target names.  Run
  "cmake --help-policy CMP0078" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

Call Stack (most recent call first):
  src/swig/python/CMakeLists.txt:37 (swig_add_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Users/lo/Miniconda3/conda-bld/solvespace_1567850178226/_build_env/Library/share/cmake-3.15/Modules/UseSWIG.cmake:460 (message):
  Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
  flag.  Run "cmake --help-policy CMP0086" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  C:/Users/lo/Miniconda3/conda-bld/solvespace_1567850178226/_build_env/Library/share/cmake-3.15/Modules/UseSWIG.cmake:702 (SWIG_ADD_SOURCE_TO_MODULE)
  src/swig/python/CMakeLists.txt:37 (swig_add_library)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/lo/Miniconda3/conda-bld/solvespace_1567850178226/work/build
ninja: error: build.ninja:411: multiple rules generate src/slvs.lib [-w dupbuild=err]
realthunder commented 5 years ago

Did you use the current master? If so, I have changed ENABLE_GUI default to ON. So to build python binding, you need to add -DENABLE_GUI=OFF.

looooo commented 5 years ago

-DENABLE_GUI=OFF didn't fix the issue.

looooo commented 5 years ago

There seems to be a duplicate target. As a workaround adding dupbuild=warnto the ninja command seems to work.