Example build error - help needed

PDF-X OCR SDK is a New product from us and intended to compliment our existing PDF and Imaging Tools to provide the Developer with an expanding set of professional tools for Optical Character Recognition tasks

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Example build error - help needed

Post by tomislav »

When I try to build 'OCRTDesigner' from examples it trows a error (bellow). I'm using vs2010 and vc is not my primary language.

Thanks in advance

Tomislav Tadin






1>------ Rebuild All started: Project: OCRTDesigner, Configuration: Release Win32 ------
1>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1200,9): warning : The referenced project '..\dscrt\dscrt.vcxproj' does not exist.
1>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1200,9): warning : The referenced project '..\ocrtools\ocrtools.vcxproj' does not exist.
1>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1200,9): warning : The referenced project '..\pxcview\pxcview.vcxproj' does not exist.
1>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1200,9): warning : The referenced project '..\_Build_All_\_Build_All_.vcxproj' does not exist.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(298,5): warning MSB8004: Intermediate Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Intermediate Directory.
1> stdafx.cpp
1> ChildFrm.cpp
1> FieldListDialog.cpp
1>FieldListDialog.cpp(98): warning C4018: '>' : signed/unsigned mismatch
1> HelpDialog.cpp
1> MainFrm.cpp
1> OCRPropertiesDlg.cpp
1> OCRTDesigner.cpp
1> OCRTDesignerDoc.cpp
1> OCRTDesignerView.cpp
1>OCRTDesignerView.cpp(392): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(392): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(455): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(455): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(463): warning C4305: '*=' : truncation from 'double' to 'float'
1>OCRTDesignerView.cpp(464): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(464): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(498): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(498): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(499): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(499): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(499): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1>OCRTDesignerView.cpp(499): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
1> PageSelectionDialog.cpp
1> PasswordDialog.cpp
1> PropertiesDialog.cpp
1>PropertiesDialog.cpp(112): warning C4244: 'argument' : conversion from 'DWORD' to 'short', possible loss of data
1> UIField.cpp
1>UIField.cpp(50): warning C4244: 'argument' : conversion from 'const double' to 'int', possible loss of data
1>UIField.cpp(50): warning C4244: 'argument' : conversion from 'const double' to 'int', possible loss of data
1>UIField.cpp(50): warning C4244: 'argument' : conversion from 'const double' to 'int', possible loss of data
1>UIField.cpp(50): warning C4244: 'argument' : conversion from 'const double' to 'int', possible loss of data
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_NewInputFields@4
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_LoadTemplateW@8
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_ReleaseInputFields@4
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_NumInputFields@8
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_GetInputFieldByIndex@12
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_SaveTemplateW@8
1>OCRTDesignerDoc.obj : error LNK2001: unresolved external symbol __imp__OCR_AddInputField@52
1>OCRTDesignerView.obj : error LNK2001: unresolved external symbol __imp__OCR_Init@12
1>OCRTDesignerView.obj : error LNK2001: unresolved external symbol __imp__OCR_LoadW@8
1>OCRTDesignerView.obj : error LNK2001: unresolved external symbol __imp__OCR_GetField@64
1>..\..\..\bin\OCRTDesigner.exe : fatal error LNK1120: 10 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Example build error - help needed

Post by Walter-Tracker Supp »

It looks as though there are some project settings that were not set properly. The solution is to create a new project from the existing source files and add appropriate options for linking to the OCR SDK.

I have attached a compiled executable and am creating a ticket for update of the project internally.

-Walter
You do not have the required permissions to view the files attached to this post.
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Example build error - help needed

Post by Walter-Tracker Supp »

Created Internal Ticket #1645 (posting this to facilitate tracking the issue).
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Example build error - help needed

Post by tomislav »

TNX
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7463
Joined: Wed Mar 25, 2009 10:37 pm

Re: Example build error - help needed

Post by Paul - PDF-XChange »

:D
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Example build error - help needed

Post by tomislav »

Sorry but my timeline is little bit short, any news?? :oops:
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19942
Joined: Mon Jan 12, 2009 8:07 am

Re: Example build error - help needed

Post by Stefan - PDF-XChange »

Hi Tomislav,

Walter has provided above a compiled .exe, and will be working on the ticket to include a correct sample project with the next build of our OCR SDK. Until then - please use the advise he gave - and create a new project from scratch using the source files provided.

Best,
Stefan
tomislav
User
Posts: 15
Joined: Wed Sep 12, 2012 5:01 pm

Re: Example build error - help needed

Post by tomislav »

sorry, wrong thread :oops: :oops: :oops: :oops: :oops:
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19942
Joined: Mon Jan 12, 2009 8:07 am

Re: Example build error - help needed

Post by Stefan - PDF-XChange »

Hi Tomislav,

OK :)

Cheers,
Stefan