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

Unable to add Tesseract 4.0 in C# project and build in Visual studio because of below issue. #9

Open
ksaikrishna opened this issue Sep 17, 2018 · 2 comments

Comments

@ksaikrishna
Copy link

Unable to add Tesseract 4.0 in C# project and build in Visual studio because of below issue.

Tesseract.dll and Tesseract.exe have same names.

@tdhintz
Copy link
Owner

tdhintz commented Sep 17, 2018 via email

@amitbsconcept
Copy link

Well - i am sorry to be commenting things out to you ..
i may be very new to Visual Studio environments - but i managed to work around creating the DLL / EXE post following the below set steps..

i did the following steps
delete the following folders "C:\Users\emz\tesseract" , "C:\Users\emz.cppan".
launch cmd from run and execute the following:
git clone https://github.com/tesseract-ocr/tesseract.git
cd tesseract
cppan
mkdir build
cd build
cmake .. -G "Visual Studio 14 2015" -DCPPAN_USE_CACHE=0
OR
cmake .. -G "Visual Studio 15 2017" -DCPPAN_USE_CACHE=0

For x64 this worked for me:
cd tesseract
cppan
mkdir build_x64
cd build_x64
cmake .. -G "Visual Studio 14 2015 Win64" -DCPPAN_USE_CACHE=0
OR
cmake .. -G "Visual Studio 15 2017 Win64" -DCPPAN_USE_CACHE=0

Post that - opened the solutions file created - made changes relevant to our projects and then built the solution - and it worked out for me properly.

May be this can help you find the solution relevant to your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants