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 <[email protected]> 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
>
> "[email protected]" <[email protected]> wrote:
>
> >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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---