ocr-autoclean/ocr-orientation.cc

3 views
Skip to first unread message

ferna...@googlemail.com

unread,
Jun 2, 2009, 7:29:35 AM6/2/09
to ocropus
Hi!
I am trying to compile ocropus on cygwin but I get an error about ocr-
autoclean:
make[1]: *** No rule to make target `ocr-autoclean/ocr-
orientation.cc', needed by `ocr-orientation.o'. Stop.
make[1]: Leaving directory `/cygdrive/f/Dokumente und Einstellungen/
f.benites/work/patternrecognition/mercurial/ocropus'
I found the entries in the Makefile but i can't find the files:
find| grep orientation
./.deps/main-ocr-orientation.Po
./.deps/ocr-orientation.Po
./.hg/store/data/ocr-autoclean/main-ocr-orientation.cc.i
./.hg/store/data/ocr-autoclean/ocr-orientation.cc.i
./.hg/store/data/ocr-autoclean/ocr-orientation.h.i
./.hg/store/data/ocr-cleaning/main-ocr-orientation.cc.i
./.hg/store/data/ocr-cleaning/ocr-orientation.cc.i
./.hg/store/data/ocr-cleaning/ocr-orientation.h.i

I am not aware if i should reconstruct the files from the mercurial
repository.

Thx,
Fernando Benites

Tom

unread,
Jun 2, 2009, 8:34:51 AM6/2/09
to ferna...@googlemail.com, ocropus
Those files have been removed for now (they still need more work).

You probably need to run the ./build script again so that your autoconf knows not to use them. Or, if you're on Ubuntu, try building with scons.

Tom

ferna...@googlemail.com

unread,
Jun 3, 2009, 7:44:13 AM6/3/09
to ocropus
Hi Tom!

Scons work better, although it warns, that it isnt the supported way.
I have difficulty build without SDL:
i added some empty function to dgraphics_nosdl.cc in iulib and I
changed scons so the libs png, tiff, jpeg are added after blas (or
leptonica), else it won't link, since it didn't find the right
libraries.
I also put away endiantest.c from leptonica-1.61 library. It was
linking it to liblept.a but it has a main function, so it was
complaining about mulitple occurences of main when linking ocropus.exe

I changed also the Sconstruct of ocropus:
if sys.platform == 'cygwin':
targetext = '.exe'
else:
targetext = ''
...
env.Install(bindir,re.sub('.cc$',targetext,cmd))

My g++ version is:
g++ --version
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

dgraphics_nosdl.cc changes:
--- a/utils/dgraphics_nosdl.cc Sun May 31 21:51:55 2009 +0200
+++ b/utils/dgraphics_nosdl.cc Wed Jun 03 13:34:52 2009 +0200
@@ -63,6 +63,14 @@
void dshow1d(floatarray &data,const char *spec) {
}

+ bool dactive() {
+ return false;
+ }
+
+ const char *dsection_set(const char *section) {
+ return "none";
+ }
+
void dclear(int rgb) {
}

Hope this helps others.

Fernando


I tryied
On Jun 2, 2:34 pm, Tom <tmb...@gmail.com> wrote:
> Those files have been removed for now (they still need more work).
>
> You probably need to run the ./build script again so that your autoconf knows not to use them.  Or, if you're on Ubuntu, try building with scons.
>
> Tom
>

Marcello Nuccio

unread,
Jun 4, 2009, 12:18:16 PM6/4/09
to ocropus
For a successful build on Ubuntu 9.04 I need to use:

./configure --with-fst --without-tesseract

If I use scons, I get the following warning:
scons: Reading SConscript files ...

**********************************************
*** SConstruct is unsupported. ***
*** The official build system is autoconf. ***
**********************************************

Is this warning obsolete?

thanks,
Marcello

On 2 Giu, 14:34, Tom <tmb...@gmail.com> wrote:
> Those files have been removed for now (they still need more work).
>
> You probably need to run the ./build script again so that your autoconf knows not to use them.  Or, if you're on Ubuntu, try building with scons.
>
> Tom
>

Tom

unread,
Jun 4, 2009, 2:08:51 PM6/4/09
to Marcello Nuccio, ocropus
Well, scons is what we use for development on Ubunu 9.04. Autoconf is for all other platforms.

If you're on Ubuntu 9.04, scons is probably the easiest to use.

Reply all
Reply to author
Forward
0 new messages