Hi everyone.
Last sunday after LONG hours of guessing I did it (Release, v140, CUDA=false) and man, it was a very hard work. Almost cried when done, lol.
Peter's scripts are still very nice tools, but you need to make some changes and follow new instructions because many things changed in libraries since the last release.
This is what I've done (If you have already compiled Tesseract successfuly, ignore #5):
3 - Also, inside
build.ps1, at the "
Copy-Build-Result-To" function, change
openalpr.conf.in to
openalpr.conf.user and the line should be like this:
Copy-Item $OpenALPRDir\config\openalpr.conf.user -Force $DestinationDir\openalpr.conf | Out-Null
4 - In alpr_c.h from .\src\bindings\c, put this at the beggining of EVERY function declaration: OPENALPRC_DLL_EXPORT OPENALPR*
Otherwise, a lot of annoying redefinition erros will come to life.
5 - As there is a dependencies hierarchy {openalpr (needs)-> Tesseract (needs)-> a bunch of libs inside tesseract-ocr\dependencies} you have to compile ALL of them in right-to-left order and play a lot with copy-paste after every compilation. E.g.: Compile zlib, then copy-paste it into Tesseract project, an so on. I believe there is a way to edit build.ps1 to automate this, but I was running out of patience and I made it all manually.
I'm not sure if I'm missing something right now, but in case you guys have any problem let me know and I'll try to help.
Just remember you'll need tons of patience, but the consumed time worth the prize because at the end, you'll have the perfect scenario to compile your own version.
Good luck!!
Joel.