Trying to build with OpenMP

23 views
Skip to first unread message

Jerry Andersson

unread,
Mar 17, 2020, 5:15:15 AM3/17/20
to tesseract-ocr
Hello, I am trying to build with openmp and sw on a windows 7 machine but I get the following cmake error:

 add_library cannot create imported target "OpenMP::OpenMP_CXX" because
 another target with the same name already exists.

I use the following command:
cmake .. -G "Visual Studio 16 2019" -Ax64 -DOPENMP_BUILD=ON -DCPPAN_BUILD=OFF -DSW_BUILD=ON

My specs:
- Windows 7
- Visual Studio 2019
- SW installed and in path
- CMake 3.16

Zdenko Podobny

unread,
Mar 17, 2020, 12:02:56 PM3/17/20
to tesser...@googlegroups.com
Which version you try build (master) ?
Did you search issue tracker / forum for problems with openmp? (There is a reason why it is turn off by default).

Zdenko


ut 17. 3. 2020 o 10:15 Jerry Andersson <labu...@gmail.com> napísal(a):
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/615f77f8-6b73-4645-a2b4-1de6df0378b3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages