ccv icon indicating copy to clipboard operation
ccv copied to clipboard

add CMakeLists.txt to build lib/ bin/ with cmake

Open YusukeSuzuki opened this issue 10 years ago • 6 comments

this commit enables to develop ccv with makefile / xcode / visual studio etc.

YusukeSuzuki avatar Jan 11 '15 12:01 YusukeSuzuki

Thanks. This is a much clearer CMake file than most of them. I will take a look at it tonight.

liuliu avatar Jan 13 '15 16:01 liuliu

Although I've never been active here, I've been following the project for a while, particularly because I am very interested in its object detection implementations.

My real use case is that I would like to create a thin wrapper around libccv to be used in Python, and this requires an unfortunate build system whereby I need to build on Linux, Mac and Windows. Specifically, on Windows, I need to be able to have different solutions for Visual Studio 2010 and Visual Studio 2008. Therefore, something like CMake is a godsend for managing the fact I need 4 different build systems.

In short, I just wanted to throw my +1 into the ring for supporting a CMake build system.

patricksnape avatar Feb 11 '15 11:02 patricksnape

sorry to post it here, i try with your cmake file,but seems not working,the output error is: CMake Error at ../share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) Call Stack (most recent call first): ../share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE) ../share/cmake-3.2/Modules/FindPNG.cmake:121 (find_package_handle_standard_args) lib/CMakeLists.txt:13 (find_package) @YusukeSuzuki ,any idea how to fix it? cheers

liquidzym avatar Mar 16 '15 03:03 liquidzym

@liquidzym Could you tell me your environment (OS, distibution, cmake version)?

YusukeSuzuki avatar Mar 26 '15 04:03 YusukeSuzuki

@YusukeSuzuki,i'm using cmake 3.2.1 running under the win8.1 with vs2013 cheers

liquidzym avatar Mar 26 '15 04:03 liquidzym

@liquidzym you should install zlib and libpng and maybe libjpeg. i build zlib and libpng with cmake-gui on windows. it need to configure library file path and include path with your hand(PNG_LIBRARY PNG_PNG_INCLUDE_DIR and ZLIB_~~~). i've installed zlib and libpng, but i've not installed libjpeg yet(libjpeg does'nt have CMakeLists.txt). sorry, i usually use linux and os x :sweat:

YusukeSuzuki avatar Apr 05 '15 12:04 YusukeSuzuki