#Gosseract Is A PAINNNNNNNNNN
107 messages · Page 1 of 1 (latest)
@echo night I am pretty sure I did it correctly
So what you did
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
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
Then must be environment issue
Restart your terminals and try again
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?
Are you sure it works fine on cmd?
Yes
then where does it don't work
Tesseract works but gosseract does not
I still keep my opinion
??
Check what you need here
Makesure you installed all packages that start with the command RUN apt-get install
BREHJHHHH
lol sorry
but how do u install leptonica on windows
I did that
but I still get this error:
Makesure you are using the correct link path, search how does gcc work
@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
when do I add that?
I recommend you setup the environment variable, so you don't need to pass that each time
I did but I removed it now
THIS IS SOOOO STUPIODDDDDDD
ok I was wrong, you should use -I not -L
So it should be the INCLUDE_PATH not LIBRARY*
@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
go have flag -ldflags
if you set the variable, you will see you need do nothing when using go
Ll
ok
go run main.go -ldflags C:\Users\THUND3RD3V\Desktop\vcpkg\packages\leptonica_x64-windows\include
that command?
-I C:\Users\THUND3RD3V\Desktop\vcpkg\packages\leptonica_x64-windows\include
wrap them in "" and pass to ldflags
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
I read maybe I have to do -gccflags
@echo night I really need help I read it I don't understand
Read the first line
@chilly moat I managed to get that problem fixed another way
buttttt
new error:
#include <tesseract/version.h>
and I installed tesseract
wrong ping
oh yeah sorry
np
@echo night
thx
always install_path issue
check your install path
no matter what you using, your install_path doesn't contains the tesseract's include folder
what call?
I don't use mic, chat here
alr
@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>