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

Error on building project on Windows - Cannot find CLIPPER LIBRARIES #46

Open
tslima opened this issue Jul 22, 2022 · 5 comments
Open

Comments

@tslima
Copy link

tslima commented Jul 22, 2022

Hi everyone!

I'm trying to build to build the project in my machine

Windows SDK version 10.0.19041.0 to target Windows 10.0.19043

C compiler identification is MSVC 19.32.31332.0

CXX compiler identification is MSVC 19.32.31332.0

I've already builded and installed Clipper. Also defined an envyroment variable CLIPPER_PATH

But when I try to build the project, I keep getting the following error:

-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.32.31332.0
-- The CXX compiler identification is MSVC 19.32.31332.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Clipper library cannot be found.  Consider set CLIPPER_PATH environment
  variable (missing: CLIPPER_INCLUDE_DIRS CLIPPER_LIBRARIES)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindClipper.cmake:39 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake_modules/RequirePackage.cmake:255 (find_package)
  include/libnest2d/backends/clipper/CMakeLists.txt:3 (require_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/tslima/Downloads/libnest2d-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/tslima/Downloads/libnest2d-master/build/CMakeFiles/CMakeError.log". 
@KnightYin
Copy link

You need to use the Clipper1!
Clipper1

@xqitong
Copy link

xqitong commented Aug 22, 2023

hi,how to build on windows os? I have a same error

@sagarmemane135
Copy link

can someone please tell how to install clipper library on windows machine !

@ioannaMitropoulou
Copy link

I have the same problem, I have tried installing all the available clipper versions and set the CLIPPER_PATH to them, but I could not get Cmake to find the files it's looking for. Could you tell us exactly which clipper version is required?

@petrasvestartas
Copy link

petrasvestartas commented Apr 28, 2024

Clipper 1 was only one .hpp and one .cpp file. I guess the author was working on Linux, and did not bother to write instructions to install libraries for the 3 OS...

There are several ways how you can do this:

  1. Link sources files directly to this project CMakeLists
  2. Create you own CMakeLists for clipper and build static library, then give a direct path to this project or pass it to environmental variables on windows.

Clipper2 is much more faster and reliable. Clipper one is depreciated. The original author of SVG nest in the end used Boost to directly create Minkowski polygons which is much more faster and reliable than Clipper1.

After looking at the age of this repository, it needs to be updated a bit.

image

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

No branches or pull requests

6 participants