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

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

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

YusukeSuzuki
Copy link

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

@liuliu
Copy link
Owner

liuliu commented Jan 13, 2015

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

@patricksnape
Copy link

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.

@liquidzym
Copy link

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

@YusukeSuzuki
Copy link
Author

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

@liquidzym
Copy link

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

@YusukeSuzuki
Copy link
Author

@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 😓

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

Successfully merging this pull request may close these issues.

4 participants