#Gosseract Is A PAINNNNNNNNNN

107 messages · Page 1 of 1 (latest)

echo night
vast flint
#

@echo night I am pretty sure I did it correctly

echo night
#

I'm pretty sure you didn't do it correctly

#

Just in case to make sure your browser didn't hide any information to you

vast flint
#

Yeah I did that but I installed tesseract but I got confused abt when it said library and headers

#

But tesseract works fine when I run in cmd

echo night
vast flint
#

I did all I restarted my pc and everything

#

Have u tried it?

echo night
#

It works all fine to me

#

I'm not using windows tho

vast flint
#

Well that’s not windows

#

Yeah

#

I think it’s a windows problem idk

#

Is there a way to use a docker as a package?

echo night
#

Are you sure it works fine on cmd?

vast flint
#

Yes

echo night
#

then where does it don't work

vast flint
#

Tesseract works but gosseract does not

echo night
#

I still keep my opinion

vast flint
#

??

echo night
#

Check what you need here

#

Makesure you installed all packages that start with the command RUN apt-get install

vast flint
#

BREHJHHHH

#

lol sorry

#

but how do u install leptonica on windows

#

I did that

#

but I still get this error:

echo night
#

Makesure you are using the correct link path, search how does gcc work

vast flint
#

@echo night

#

are you online

#

I figured 1 thing out

#

I figured that it is something to do with linking

#

cuz even in a test.c file

echo night
#

yeah so pass the correct -L flag

#

or set the env

#

I forgot what's the env called

vast flint
#

@echo night what do you mean by correct -L flag?

#

could u guide me through?

echo night
#

search how does gcc work

vast flint
echo night
#

I recommend you setup the environment variable, so you don't need to pass that each time

vast flint
#

I did but I removed it now

echo night
#

I gtg now

vast flint
#

aww man cyaa

vast flint
#

THIS IS SOOOO STUPIODDDDDDD

echo night
#

ok I was wrong, you should use -I not -L

#

So it should be the INCLUDE_PATH not LIBRARY*

vast flint
#

@echo night what would I do if I do not run it in c but I want to run it in golang?

#

it works on normal c

echo night
#

go have flag -ldflags

#

if you set the variable, you will see you need do nothing when using go

vast flint
#

alr ima try then thankksssss

#

@echo night -Idflags or -Ldflags?

#

i or L

echo night
#

Ll

vast flint
#

ok

#

go run main.go -ldflags C:\Users\THUND3RD3V\Desktop\vcpkg\packages\leptonica_x64-windows\include

#

that command?

echo night
#

no

#

what flag you passed to gcc

vast flint
#

-I C:\Users\THUND3RD3V\Desktop\vcpkg\packages\leptonica_x64-windows\include

echo night
#

wrap them in "" and pass to ldflags

vast flint
#

oh ok

#

go run main.go -ldflags "-I C:\Users\THUND3RD3V\Desktop\vcpkg\packages\leptonica_x64-windows\include"

#

like that?

#

it still gives error

#

@echo night

echo night
#

Read the doc

#

go help run

vast flint
#

I read maybe I have to do -gccflags

vast flint
#

@echo night I really need help I read it I don't understand

vast flint
#

I will just change the code ig

#

for tessbridge

vast flint
#

@chilly moat I managed to get that problem fixed another way

#

buttttt

#

new error:
#include <tesseract/version.h>

#

and I installed tesseract

chilly moat
#

wrong ping

vast flint
#

oh yeah sorry

chilly moat
#

np

vast flint
#

@echo night

vast flint
echo night
#

check your install path

vast flint
#

could we get on a call?

#

I used vcpkg

echo night
#

no matter what you using, your install_path doesn't contains the tesseract's include folder

echo night
vast flint
vast flint
#

ok no mic

echo night
#

I don't use mic, chat here

vast flint
#

alr

echo night
#

@vast flint Forgot to tell, if you want use vs complier, set these go env

CC=<c complier-path / name>
CXX=<c++ complier-path / name>
vast flint
#

Thanks I am deciding to reinstall my compiler using MSYS2

#

I think I can figure this out I was supposed to finish this backend by today but this stupid problem took 4 whole days so idk mate thanks for your help I greatly appreciate it idk what I can do in return for you