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
>