Re: [tesseract-ocr] Unable to use tesseract api installed with a nuget pkg

2018-03-27 Thread ShreeDevi Kumar
I don't use visual studio. However I know that we support vs installation
via cppan cmake. Please follow those directions.

On Tue 27 Mar, 2018, 9:24 PM sonu sainju,  wrote:

> 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?
>
> On Sunday, March 25, 2018 at 5:46:06 PM UTC-7, shree wrote:
>>
>> Did you build using cppan and cmake?
>>
>> On Mon 26 Mar, 2018, 1:50 AM sonu sainju,  wrote:
>>
>>> 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?
>>>
>>> --
>>> 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.
>>>
>> --
> 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-ocr+unsubscr...@googlegroups.com.
> To post to this group, send email to tesseract-ocr@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/e3c24332-bca3-4969-b290-80f3e3054b7a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@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/CAG2NduWU3xhTZG5hi5D4OX7QCpP%3DweRTU20ckDvb72guNmWcAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Unable to use tesseract api installed with a nuget pkg

2018-03-27 Thread sonu sainju
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?

On Sunday, March 25, 2018 at 5:46:06 PM UTC-7, shree wrote:
>
> Did you build using cppan and cmake?
>
> On Mon 26 Mar, 2018, 1:50 AM sonu sainju,  > wrote:
>
>> 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?
>>
>> -- 
>> 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.
>>
>

-- 
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-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@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/e3c24332-bca3-4969-b290-80f3e3054b7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.