-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 GoogleTest infrastructure #1051
Conversation
Signed-off-by: Stefan Weil <[email protected]>
The submodule is build automatically as soon as it exists. Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Still missing:
That can be done as soon as there are real tests. Maybe there are also different opinions about the best location for the
|
Is there a reason to have both cmake and autotools in the first place? The homebrew build script for Tesseract uses autotools right now, so people are building with autotools. Logically one should be able to test any configuration that gets built. I'd be tempted to deprecate/eliminate autotools so we don't have to worry about setting up test for it, if possible. |
I personally also use mostly autotools, for example when building the installer for Windows. As far as I know it is also used by Debian based distributions when building Tesseract packages. For the tests, having cmake in the first place seems to be sufficient for me because CI is based on that. I'd decide later how easy or difficult it is to maintain testing with autotools. |
I had built it locally with autotools, making changes in the makefiles etc. I think once setup the only changes will be in the makefile in the directory where the tests/test cases/test fixtures are kept. So it should not be too difficult. |
The autotools build works fine on Posix environments. See also: |
Please see #1059 pull request with makefile etc |
You are right Debian packaging builds Tesseract with autotools, but it would be pretty easy to switch that over to cmake if needed. |
So I tried building a test using just github, and I get stuck before I can even try it. ~/opensrc/git/tesseract/demo$ make It looks to me like it is picking up the wrong version of leptonica. I think these are new functions in the latest version. I built and installed the latest leptonica earlier today. |
You should also build leptonica with CMake. |
I noticed for the first time that cmake builds a |
That's not strictly necessary. As long as I install it to the standard location ( Ray, I assume that your latest Leptonica was installed in |
I think the above is a case in point for my earlier comment that we should get rid of either Autotools or CMake. When there's two equivalent tools and people prefer one or the other, maintenance of one of them falls behind. |
Basically, CMake is for Windows&MSVC and autotools is for all other environments. Related: DanBloomberg/leptonica#253 |
No luck. cmake doesn't work on LInux.
Even building leptonica with cmake puts the library in /usr/local, so if
cmake isn't going to look there, it isn't going to find it.
…On Fri, Aug 18, 2017 at 3:23 AM, Amit D. ***@***.***> wrote:
Basically, CMake is for Windows&MSVC and autotools is for all other
environment.
I'm Talking only about this project, not about other projects build tool
usage.
Related: DanBloomberg/leptonica#253
<DanBloomberg/leptonica#253>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1051 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL056SH7Rdi05R6Ra1KIeRINkliVA_g6ks5sZWYWgaJpZM4OhhM1>
.
--
Ray.
|
I suggest to let @egorpugin (maintainer of CMake build for both Leptonica and Tesseract) some time to response before giving up on CMake for the unit-testing. |
CMake does not work properly on linux. Please, use autotools for some time. |
Instructions (run in Tesseract source directory):