-
Notifications
You must be signed in to change notification settings - Fork 19
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
Windows compiling #9
Comments
I am not sure entirely how to compile on windows, but it may just be a case of making sure the required dllspec stuff is in the headers and that the dll file for tesseract's Base API is in the proper path. I can't actively test in Windows unfortunetly, but I will keep this ticket open as a feature-request. |
I downloaded compiled tesseract libs, provided on tesseract-ocr project page (link) and put those inside tesswrap base folder, which I cloned in "c:\src\git\tesswrap". I then changed --- C:\src\Git\tesserwrap\setup.py.bak
+++ C:\src\Git\tesserwrap\setup.py
@@ -37,16 +37,16 @@
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
-extra_lib_paths = ['/usr/local/lib']
+extra_lib_paths = ['./lib']
-tesseract_possible_names = ['tesseract_api', 'tesseract']
+tesseract_possible_names = ['tesseract_api', 'tesseract', 'libtesseract302']
tesseract_lib_name = find_closest_libname(
tesseract_possible_names,
extra_lib_paths)
tesser_cpp = Extension(
'libtesserwrap',
- include_dirs=['/usr/local/include'],
+ include_dirs=['./include'],
libraries=[tesseract_lib_name],
library_dirs=extra_lib_paths,
sources=[ By default, distutils compiles with MSVC if present, and this is the base line from my build log:
If I set distutils to use mingw32, I get this build log Any pointers for c++ illiterate? TIA |
Is there any news about this lib in windows? |
@maupaso I managed to build this: https://github.com/virtuald/python-tesseract-sip |
Orig Title: not an issue, but can u let me know how to make the lib work in windows.
I kind of skimmed through the code, and confident that it works well, because it doesn't extra errors since it acts like a perfect wrapper for the original tesseract.
Thanks.
The text was updated successfully, but these errors were encountered: