Using cmake to build standalone executable (statically-linked) ?

76 views
Skip to first unread message

Teddy Zzang

unread,
Nov 27, 2019, 12:00:54 AM11/27/19
to tesseract-ocr

I'm currently using cmake following to build tesseract

cmake tesseract
cmake --build . --config Release

which ends up in dynamically-linked libraries.

2019-11-26 16_25_46-mRemoteNG - confCons.xml - OCR_New(AVX512).png



Is there anyway to build a standalone executable? (statically-linked libraries)

Ideally, I want to generate a single tesseract.exe in the end.

Lack of my expertise in cmake is giving me hard time :(

Zdenko Podobny

unread,
Nov 27, 2019, 8:35:26 AM11/27/19
to tesser...@googlegroups.com
AFAIK vckg produces static build of tesseract.

st 27. 11. 2019 o 6:00 Teddy Zzang <xpels...@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/b0658cda-825e-4015-a8e4-e058fa88495b%40googlegroups.com.

Teddy Zzang

unread,
Nov 28, 2019, 11:54:05 AM11/28/19
to tesseract-ocr
Problem is I'm making some changes to cmake file and to source code as well.
From my understanding, vcpkg builds based on tesseract master branch, isn't it?

It would be great if I can just tweak the "CMakeLists.txt" to generate executable, but no luck so far with what I've tried.

Is there any CMake expert I can reach out to? 


On Wednesday, 27 November 2019 08:35:26 UTC-5, zdenop wrote:
AFAIK vckg produces static build of tesseract.

st 27. 11. 2019 o 6:00 Teddy Zzang <xpels...@gmail.com> napísal(a):

I'm currently using cmake following to build tesseract

cmake tesseract
cmake --build . --config Release

which ends up in dynamically-linked libraries.

2019-11-26 16_25_46-mRemoteNG - confCons.xml - OCR_New(AVX512).png



Is there anyway to build a standalone executable? (statically-linked libraries)

Ideally, I want to generate a single tesseract.exe in the end.

Lack of my expertise in cmake is giving me hard time :(

--
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 tesser...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages