On Tue, May 14, 2013 at 08:47:36PM -0400, [email protected] wrote:
> Date: Tue, 14 May 2013 19:05:13 -0400
> From: Vojt?ch Nov?k <[email protected]>



> I am getting this error:
> 
> undefined reference to `ccv_read_impl(...)'
> and more undefined references to the stuff from the library

As has been clarified by Sasha already, most likely this is a language-side 
issue.
Since the verbosely displayed command line seems fine, quite likely
we're past CMake configuration questions.

For C vs. C++ linking (symbol {decoration|mangling}) questions,
you'd want to use
nm -n [-C]
and perhaps various checks via objdump.


> libccv.a comes with a header file ccv.h and it depends on libjpeg and
> libpng.
> 
> I wrote my own FindCCV.cmake to find the library and put it into
> ${CMAKE_SOURCE_DIR}/cmake/Modules/, together with finders for jpeg and png.
> As far as I know, all three are found successfully (the REQUIRED keyword
> doesn't stop compilation and there are correct address entries in
> CMakeCache). The libraries are in correct order ccv, jpeg, png (ccv depends
> on them).

Side note: since this seems to be an externally built/non-CMake library,
resorting to Find* (Module mode) rather than Config mode seems obvious.

Andreas Mohr
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to