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

pkg-config file looks invalid; contains @OPENCL_LIB@ after installation #241

Closed
apjanke opened this issue Feb 27, 2016 · 0 comments
Closed

Comments

@apjanke
Copy link

apjanke commented Feb 27, 2016

It looks like the installed pkg-config file still has a macro in it, instead of the flags for the OpenCL libs.

$ pkg-config --libs tesseract --static
-L/usr/local/Cellar/tesseract/3.04.01/lib -L/usr/local/Cellar/leptonica/1.72/lib 
  -ltesseract -lpthread -llept @OPENCL_LIB@ -llept -lz -lpng -ljpeg -ltiff

Looks like this is because tesseract.pc.in uses @OPENCL_LIB@, but that's not defined by config.status. OPENCL_LDFLAGS is defined; should it be using that instead? If I modify tesseract.pc.in to use @OPENCL_LDFLAGS@, I get normal-looking link flags in the result. (This is on OS X 10.9.5.)

$ pkg-config --libs tesseract --static
-L/usr/local/Cellar/tesseract/3.04.01/lib -L/usr/local/Cellar/leptonica/1.72/lib -ltesseract -lpthread -llept -framework OpenCL -llept -lz -lpng -ljpeg -ltiff

Also, the -llept flag is duplicated in the output. Looks like this is because -llept is in Libs.private in addition to being in Requires.private. Is the Libs.private -llept redundant?

Requires.private: lept
Libs: -L${libdir} -ltesseract
Libs.private: -lpthread -llept @OPENCL_LIB@

This was noticed by a Mac Homebrew user: Homebrew/legacy-homebrew#49579.

@zdenop zdenop closed this as completed in ef26b31 Mar 4, 2016
zdenop added a commit that referenced this issue Mar 8, 2016
pitpit pushed a commit to pitpit/homebrew that referenced this issue Mar 29, 2016
pitpit pushed a commit to pitpit/homebrew that referenced this issue Mar 29, 2016
pitpit pushed a commit to pitpit/homebrew that referenced this issue Mar 29, 2016
@amitdo amitdo added the bug label May 26, 2016
kaelzhang added a commit to kaelzhang/penteract-ocr that referenced this issue Aug 28, 2017
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this issue Mar 28, 2021
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this issue Mar 28, 2021
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this issue Mar 28, 2021
zvezdochiot pushed a commit to ImageProcessing-ElectronicPublications/tesseract that referenced this issue Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants