Openalpr: Error: Build a release build for x64 targeting toolchain v140

Created on 29 Dec 2015  Â·  5Comments  Â·  Source: openalpr/openalpr

I'm trying to install openalpr in Windows 10 (x64) laptop. I needed to change the toolchain to v140 because I have installed Visual Studio 2015 with PlatformToolset v140. Then when I compile it's perfect, expect for one thing that exit with an error: it can't find libtesseract.vcxproj.

Here is the message log of the error:

Get-Content : Cannot find path
'C:\openalpr\openalpr\windows\tesseract-ocr\src\vs2010\libtesseract\libtesseract.vcxproj' because it does not exist.
At C:\openalpr\openalpr\windows\build.ps1:264 char:16
+     $Content = Get-Content $Project
+                ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\openalpr\ope...sseract.vcxproj:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Exception calling "LoadXml" with "1" argument(s): "Root element is missing."
At C:\openalpr\openalpr\windows\build.ps1:266 char:5
+     $Xml.LoadXml($Content)
+     ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.
At C:\openalpr\openalpr\windows\build.ps1:272 char:5
+     $Nodes = $Root.SelectNodes($Xpath, $NamespaceManager)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\openalpr\openalpr\windows\build.ps1:274 char:5
+     $Properties = @{
+     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Cannot find path 
'C:\openalpr\openalpr\windows\tesseract-ocr\src\vs2010\libtesseract\libtesseract.vcxproj' because it does not exist.
At C:\openalpr\openalpr\windows\build.ps1:264 char:16
+     $Content = Get-Content $Project
+                ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\openalpr\ope...sseract.vcxproj:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Exception calling "LoadXml" with "1" argument(s): "Root element is missing."
At C:\openalpr\openalpr\windows\build.ps1:266 char:5
+     $Xml.LoadXml($Content)
+     ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.
At C:\openalpr\openalpr\windows\build.ps1:272 char:5
+     $Nodes = $Root.SelectNodes($Xpath, $NamespaceManager)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\openalpr\openalpr\windows\build.ps1:274 char:5
+     $Properties = @{
+     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Cannot find path 
'C:\openalpr\openalpr\windows\tesseract-ocr\src\vs2010\libtesseract\libtesseract.vcxproj' because it does not exist.
At C:\openalpr\openalpr\windows\build.ps1:264 char:16
+     $Content = Get-Content $Project
+                ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\openalpr\ope...sseract.vcxproj:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Exception calling "LoadXml" with "1" argument(s): "Root element is missing."
At C:\openalpr\openalpr\windows\build.ps1:266 char:5
+     $Xml.LoadXml($Content)
+     ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

You cannot call a method on a null-valued expression.
At C:\openalpr\openalpr\windows\build.ps1:272 char:5
+     $Nodes = $Root.SelectNodes($Xpath, $NamespaceManager)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\openalpr\openalpr\windows\build.ps1:274 char:5
+     $Properties = @{
+     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Then seems it finish that part and my PowerShell do this:

MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\openalpr\openalpr\windows\tesseract-ocr\src\vs2010\libtesseract\libtesseract.vcxproj

Die : C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe returned a non-zero exit code
At C:\openalpr\openalpr\windows\build.ps1:194 char:9
+         Die ("{0} returned a non-zero exit code" -f $Filename)
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Die

So I need to solve this issue (both of them depends on that file. I already checked that tesseract is installed (that was my first idea).

All 5 comments

I too, am facing this issue.

When I checked the src folder, no vs2010 folder existed. I simply have a tesseract304.x64.support.diff folder.

I'm facing the same issue. Anoyone has fixed it or have any solution?

I am having this problem. Does anybody have a fix?

I am also having this problem. Does anybody have a fix?
I am trying [ https://github.com/peters/openalpr-windows/issues/6 ]

Instructions SHOULD BE

git clone https://github.com/openalpr/openalpr.git
• cd openalpr
• git clone https://github.com/peters/openalpr-windows.git windows
• cd windows
• git submodule update --init --recursive

it does seem to hang or take a long time ???

Thank you for your instruction.
I fixed the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

warpdriv picture warpdriv  Â·  3Comments

moeiscool picture moeiscool  Â·  11Comments

laplasz picture laplasz  Â·  4Comments

Lepiloff picture Lepiloff  Â·  6Comments

zohaib-novaturesol picture zohaib-novaturesol  Â·  3Comments