Unable to use tesseract api installed with a nuget pkg

75 views
Skip to first unread message

sonu sainju

unread,
Mar 25, 2018, 4:20:56 PM3/25/18
to tesseract-ocr
Hi,

I followed instruction in https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows to build tesseract and use it in vs2015 project. After installing tesseract via vcpkg, I exported it as a nuget pkg and added it to my project like any other nuget pkg but I am getting link errors like:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol closesocket Project1 c:\Users\sonu's\documents\visual studio 2015\Projects\Project1\Project1\tesseract305.lib(svutil.cpp.obj) 1
Error LNK2001 unresolved external symbol connect Project1 c:\Users\sonu's\documents\visual studio 2015\Projects\Project1\Project1\tesseract305.lib(svutil.cpp.obj) 1
Error LNK2001 unresolved external symbol htons Project1 c:\Users\sonu's\documents\visual studio 2015\Projects\Project1\Project1\tesseract305.lib(svutil.cpp.obj) 1
...

Is there something I have missed? Has anybody tried using tesseract api this way in vs 2015?

ShreeDevi Kumar

unread,
Mar 25, 2018, 8:46:06 PM3/25/18
to tesser...@googlegroups.com
Did you build using cppan and cmake?

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/d662f3a8-31d9-4100-bd44-7943444e01db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sonu sainju

unread,
Mar 27, 2018, 11:54:00 AM3/27/18
to tesseract-ocr
Hey Shree, Thanks for replying. No I didn't build using cppan and cmake. I used vcpkg install command. Isn't vcpkg supposed to acquire and install everything?

ShreeDevi Kumar

unread,
Mar 27, 2018, 12:25:40 PM3/27/18
to tesser...@googlegroups.com
I don't use visual studio. However I know that we support vs installation via cppan cmake. Please follow those directions.

Reply all
Reply to author
Forward
0 new messages