Hello, did you build leptonica and tesseract from source? I did so with leptonica 1.73 and the master branch of tesseract, in debian jessie, and g++ -o basicexample basicexample.cpp -llept -ltesseract just compiled and running ./basicexample works.
Am Samstag, 7. Mai 2016 21:06:55 UTC+2 schrieb [email protected]: > > Hello everyone, > > Forgive me if I sound irritated, but that's precisely what I am. I'm on a > Linux mint machine and I have installed tesseract through apt-get. > > The program works just fine through the command line, but I need to use > the C++ API, so I tried following along here: > > https://github.com/tesseract-ocr/tesseract/wiki/APIExample. > > > The problem is, I literally cannot even get the simple example program to > compile past the first line when I try to include baseapi.h. > > I have copies of all the header files from the api/ , ccutil/ , ccmain/ , > and ccstruct/ directories in the same directory as my program.cpp file, > > but when I try to compile, I still get errors, namely: > > /usr/bin/ld: cannot find -llept > /usr/bin/ld: cannot find -ltesseract. > > > Guys, I love Tesseract and am forever grateful to the people who are > working on this and who make it freely available to the world, but all I > want to do is use tesseract's API. > > I'm not asking for a lot. Instead, I have to fight with the software and > spend hours figuring out a ridiculously complex setup process that should > be simple and properly documented. > > I realize this is open-source software and that this is how it is > sometimes, but the extent to which developers are expected to just figure > this stuff out and spend hours researching how to get started is absurd. > > Again, forgive me for complaining, but I had to let out some steam. I > appreciate any help you guys can give. > > Thanks! > > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/fc48d0bc-bb86-4914-8021-a6a7a24e3a15%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

