Open dcabecinhas opened 7 years ago
Thank you for complete report!
Current possible workarounds:
LDFLAGS
environment variable (in clean build directory (removed CMake cache)):
LDFLAGS=-L/Users/dcabecinhas/.homebrew/lib cmake <...>
FREETYPE_LIBRARIES
/ FREETYPE_INCLUDE_DIRS
/ HARFBUZZ_LIBRARIES
/ HARFBUZZ_INCLUDE_DIRS
with FREETYPE_FOUND=ON
/ HARFBUZZ_FOUND=ON
Thanks for the quick reply.
The LDFLAGS=<> cmake <...>
did the trick.
System information (version)
Detailed description
make
fails when linking the opencv_world libraryUsing
make VERBOSE=1
I get the exact linking commandThe link command fails because it is missing the library location part of FREETYPE_LDFLAGS.
The freetype (and also harfbuzz, tesseract and lept) are all detected by cmake and have correct values in CMakeVars.txt for the corresponding *_LDFLAGS. Yet, the -L flags are missing from the linking command.
Steps to reproduce
(I'm using other options to configure file locations but they are not relevant to this error)