visual studio 2015 and tesseract 3.05 on x64 - c++

well i really need help here.
my problem is how can i add tesseract 3.05 and leptonica 1.73 libraries to visual studio 2015 x64 (windows 10).
i manage to do that last summer with visual studio 2013 and the older version of leptonica and tesseract because it was kinda easy and all includes and lib was there i just had to give the path and download some dll. but now i couldn't even see the right include and lib that i should use. well i'm not pro in those things so please if anyone can help me and give me some steps to do.
some guys post this link:
https://github.com/peirick/leptonica
but no idea how to use it.

Given link working fine, there are few steps; you can compile tesseract and leptonica in visual studio 2015
Step1: Take material provided from this
Step2: Copy files from this into VS2015_Tesseract-master\leptonica\ folder
Step3: Copy files of tesseract from github into VS2015_Tesseract-master\tesseract_3.04 folder
Step4: Compile libtesseract or tesseract in x64 platform
Done!!

Today I built Tesseract 3.05
Windows 10 64 bit
Visual Studio 2015
I cloned this Repository:
https://github.com/peirick/VS2015_Tesseract
In the resulting directory ... VS2015_Tesseract I deleted
subdirectory leptonica
subdirectory tesseract_3.05
Then I opened a command prompt as administrator in VS2015_Tesseract and executed
build_tesseract.bat
1501 warnings
0 errors
To get the API work, I needed to add dependencies:
tesseract.lib;openjpeg.lib;libwebp.lib;libtiff.lib;libtesseract.lib;libpng.lib;liblept.lib;libjpeg.lib;jbig2enc.lib;giflib.lib;zlib.lib;

Related

Build OpenCascade for VS2017

Usecase: I intend to use the OpenCascade C++ library in my C++ project. I need to do simple polyline offsetting and polygon scaling down.
So I am attempting to install the OpenCascade C++ library on my Windows 10 64bit machine to use in Visual Studio 17. My first attempt was to use the windows installer then run the batch files (env.bat, custom.bat). But I have read on this forum that the windows installer wont work for Visual Studio 2017 - is that correct?
So I have now followed the build instructions here. And now I have opened the sample projects in Visual Studio 2017. When I try to build the project I get the following errors for each of the sample projects:
Error MSB8036 The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". TKQADraw C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\v141\Toolset.targets 36
Any advice on what I have done wrong? Maybe I didn't build it properly following these steps? Also, given my usecase above, do I need to do all this if I just want to use OpenCascade in a limited way?
Is there documentation or a link on how I create a new Visual Studio C++ project and link all the OpenCascade libraries?
As the error says, you haven't installed the correct SDK version, or maybe the version you installed is out dated. Check the SDK install and try again.

How to set up project with mongodb-cxx-driver in Visual Studio

I have successfully built the new libmongo-cxx-driver on Windows with Visual Studio, but I fail understanding how I can set up a project in VS 2015 to link to it. I would appreciate some help on that.
Vcpkg helps you get C and C++ libraries on Windows.
if someone still finding a solution by 2017.
here is the new way of compiling libraries
Download vcpkg follow the instructions as mentioned on git. https://github.com/Microsoft/vcpkg
Step 1 C:\vcpkg>.\vcpkg search mongodb
you will see something like this
mongo-c-driver 1.6.2-1 Client library written in C for MongoDB.
mongo-cxx-driver 3.1.1-1 MongoDB C++ Driver.
Step 2 C:.\vcpkg install mongo-cxx-driver
then grab a cup of coffee ...
Step 3
C:\vcpkg>.\vcpkg integrate install
Done..
Note Prerequisites:
Windows 10, 8.1, or 7
Visual Studio 2017 or Visual Studio 2015 Update 3
Answered by #JoyoWaseem
How can I build a program using c++ driver of MongoDB?

How to configure and build Tesseract OCR C++ using Visual Studio 2015 x64 on Windows 10

I am trying to run the VS2015_Tesseract example in Tesseract OCR Library.
I always get the following error when I try to open the file:
Could not find a part of the path
Currently I am working with Visual Studio 2015 on Windows 10 (64 bit).
Please provide the full information on how I can configure the Tesseract OCR C++ library on Visual Studio 2015 Windows 10 (64 bit).
You also can provide any reference tutorial links.
You have to download the vs2015_Tesseract or simply run the following git command in working directory:
git clone https://github.com/peirick/VS2015_Tesseract.git
Run the build_tesseract.bat file.
Activate tesseract as the startup project.

How to fix error MSVCP120D.dll in Visual Studio 2015?

Hello I have downloaded and unzipped OpenCV-2.4.10.exe on my PC. Then created a new Win32 Console application project in VS 2015, set all the Paths in Project properties, set the environmental variables in Win8.1. When I'm trying to start the program in debugging mode I get the "The program can't start because MSVCP120D.dll is missing from your computer. Try reinstalling the program to fix this problem".
Then, I downloaded the Visual C++ redistributable for Visual Studio 2015 But the problem still remains. What should I do to use OpenCV in VS 2015?
OpenCV-2.4.10.exe comes with runtime binary dlls built to work with runtimes from vc10 (vs2010), vc11 (vs2012) and vc12 (vs2013).
These DLL files use MSVCP100.dll, MSVCP110.dll and MSVCP120.dll respectively, and if you have installed Visual Studio 2015 you should find them in your System32 (or SysWOW64) directory.
The MSVCP120D.dll error appears when your application tries to load the DEBUG version of the DLL binaries. You do not have MSVCP120D.dll unless you have Visual Studio 2013 installed on your system. To solve this problem, use the Release runtime instead of the Debug runtime.
All you need to do is exclude the DEBUG lib files from your project. This means including only the lib files without the suffix 'd'. (ie. include opencv_core2410.lib instead of opencv_core2410d.lib)
HTH
Extras:
You don't really need to load the Debug binaries, unless you need to debug openCV's source code. If you do, there's still a way. Download the openCV source code, use CMake to create a VS2015 project. You can then build your own dll binaries using the latest runtime from VS2015.
VS2015 uses vc14 while OpenCV2.4.10 doesn't come with pre-built binaries associated with vc14. This answer should help you to understand. Accordingly you should choose the right folder (vc14) for Linker>General>Additional Library Directories in project properties.
You can use cmake to build binaries using VS2015 or you can download a later version of OpenCV which has prebuilt binaries for vc14.

Open CV 2.2 Include Directory Missing

I have several Windows 7 64bit systems with OpenCV 2.2 installed on them using CMake and Visual Studio 2008 Standard. CMake generates everything in C:\libs\OpenCV-2.2.0\build just fine and Visual Studio 2008 compiles everything without complaint.
However, every time I do this process on various machines I find that the include directory (C:\libs\OpenCV-2.2.0\build\include\opencv2) is either empty or nearly so. I usually end up thrashing around compiling different versions and poking on random project files until it appears and every time I think I have it figured out. However, with each new install I'm back to the begining.
Is this a known issue for 64bit build of OpenCV 2.2 on Windows 7 64bit using Visual Studio 2008 and is there a known workaround?
Various questions here seem to be hinting at the same thing and guides online are either old or don't reference the problem at all.
To solve this problem compile everything in release and debug then right click the INSTALL project in Visual Studio 2008 and choose Build. This will "install" numerous files and move all the include files into the proper location.
Now /include will contain subfolders
opencv
opencv2
and /include/opencv2 will contain numerous subfolders:
calib3d
contrib
core
feature2d
flann
gpu
highgui
imgproc
legacy
ml
objdetect
video
I just had the same problem. The Answer which explains that you have to rightclick and build the "INSTALL" project after you have built the debug/release works for me now. BUT: for me it was not a "build" folder which was created, but a folder called "install". Inside of that folder there is a include folder now which contains all the stuff you need for the include. The OpenCV version im using is OpenCV v3.2.
well i have the same problem with visual studio 2010,
and the answer
""To solve this problem compile everything in release and debug then right click the INSTALL project in Visual Studio 2008 and choose Build. This will "install" numerous files and move all the include files into the proper location""
cannot work on this. because when you choose 2010 visual configuration
there are no option to do debg or release. u do this afterwars from visual studio
when complile in debug or release mod. has one anny answer.
you my friend that have managed to create a full buld properly
can you please make one with qt support ,and with examples and docs cmake configuration amd please e mail it to me??
it wont take you more than some minutes
and this will be a great help because i try many days to solve it
How are you making \build\ ?
I didn't think opencv did out-of-source builds properly. At least I've never got them to work - have you tried setting the build dir to a completely separate tree?