Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link error LNK1120 with text2image.exe #4219

Open
YouSyd opened this issue Apr 3, 2024 · 0 comments
Open

link error LNK1120 with text2image.exe #4219

YouSyd opened this issue Apr 3, 2024 · 0 comments

Comments

@YouSyd
Copy link

YouSyd commented Apr 3, 2024

Current Behavior

My complier linker(MSVC) :
>link -version
Microsoft (R) Incremental Linker Version 14.16.27043.0
Copyright (C) Microsoft Corporation. All rights reserved.
tesseract version:
tesseract-5.3.4
I use cmake to generate msvc makefile , and use nmake all try to complier the Tesseract libs and includes for dev. An error occurred when linking libs/objs to generate text2image.exe.

Now the linker echo like link_echo.txt:
(I added some LR to make it more clear , and no more alteration)
LNK1120 means something about symbols went wrong , so far as I know , It may caused by libs missing or something like that.
Things wired here is that the echo seems not complete , error LNK2019: ..\..\bin\text2image.exe: fatal error LNK1120: 1, that is the exact echo back. So , which symbol ? which function or variable ?

Expected Behavior

I have done this for a while , now have no clue anymore. the bin folder has a tesseract.exe generated , but no lib path generated . I'm sure the complier is not done yet. What's wrong with this text2image.exe generation ? which symbol was missing ?

Suggested Fix

No response

tesseract -v

It seems I can do tesseract -v :
tesseract 5.3.4
leptonica-1.84.1 (Apr 3 2024, 15:07:14) [MSC v.1916 LIB Release x64]
libgif 5.2.1 : libjpeg 9f : libpng 1.6.43 : libtiff 4.6.0 : zlib 1.3.1 : libwebp 1.3.2 : libopenjp2 2.5.2
Found AVX2
Found AVX
Found FMA
Found SSE4.1

Operating System

Windows 10

Other Operating System

No response

uname -a

NOT supported

Compiler

Microsoft (R) Incremental Linker Version 14.16.27043.0

CPU

No response

Virtualization / Containers

No response

Other Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant