You're just missing some packages:

utils/dgraphics.cc:27:35: error: SDL/SDL_gfxPrimitives.h: No such file
or directory
utils/dgraphics.cc:28:27: error: SDL/SDL_image.h: No such file or
directory
utils/dgraphics.cc:29:33: error: SDL/SDL_imageFilter.h: No such file
or
directory
utils/dgraphics.cc:30:30: error: SDL/SDL_rotozoom.h: No such file or

You can either compile without SDL, or install the development
versions of those packages under Fedora (you can probably search for
packages containing these file names in your package manager).

Tom

On Jul 9, 7:20 pm, "Amy Winder" <[email protected]> wrote:
> Hi,
>
> I'm having problems installing OCRopus 4.0 from the tar ball on Fedora
> 9.  When I go into the iulib and type configure I get this:
>
> [aawin...@localhost iulib]$ configure
>
> checking for a BSD-compatible install... /usr/bin/install -c
>
> checking whether build environment is sane... yes
>
> checking for a thread-safe mkdir -p... /bin/mkdir -p
>
> checking for gawk... gawk
>
> checking whether make sets $(MAKE)... yes
>
> checking for g++... g++
>
> checking for C++ compiler default output file name... a.out
>
> checking whether the C++ compiler works... yes
>
> checking whether we are cross compiling... no
>
> checking for suffix of executables...
>
> checking for suffix of object files... o
>
> checking whether we are using the GNU C++ compiler... yes
>
> checking whether g++ accepts -g... yes
>
> checking for style of include used by make... GNU
>
> checking dependency style of g++... gcc3
>
> checking for gcc... gcc
>
> checking whether we are using the GNU C compiler... yes
>
> checking whether gcc accepts -g... yes
>
> checking for gcc option to accept ISO C89... none needed
>
> checking dependency style of gcc... gcc3
>
> checking for ranlib... ranlib
>
> checking how to run the C preprocessor... gcc -E
>
> checking for grep that handles long lines and -e... /bin/grep
>
> checking for egrep... /bin/grep -E
>
> checking for ANSI C header files... yes
>
> checking for sys/wait.h that is POSIX.1 compatible... yes
>
> checking for sys/types.h... yes
>
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
>
> checking for string.h... yes
>
> checking for memory.h... yes
>
> checking for strings.h... yes
>
> checking for inttypes.h... yes
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> checking float.h usability... yes
>
> checking float.h presence... yes
>
> checking for float.h... yes
>
> checking malloc.h usability... yes
>
> checking malloc.h presence... yes
>
> checking for malloc.h... yes
>
> checking for stdint.h... (cached) yes
>
> checking for stdlib.h... (cached) yes
>
> checking for string.h... (cached) yes
>
> checking for unistd.h... (cached) yes
>
> checking wchar.h usability... yes
>
> checking wchar.h presence... yes
>
> checking for wchar.h... yes
>
> checking for unistd.h... (cached) yes
>
> checking for compress in -lz... yes
>
> checking png.h usability... yes
>
> checking png.h presence... yes
>
> checking for png.h... yes
>
> checking for png_sig_cmp in -lpng... yes
>
> checking jpeglib.h usability... yes
>
> checking jpeglib.h presence... yes
>
> checking for jpeglib.h... yes
>
> checking for jpeg_std_error in -ljpeg... yes
>
> checking for TIFFOpen in -ltiff... yes
>
> checking for SDL_Init in -lSDL... yes
>
> checking for rotozoomSurface in -lSDL_gfx... no
>
> checking how to run the C++ preprocessor... g++ -E
>
> checking ffmpeg/avcodec.h usability... no
>
> checking ffmpeg/avcodec.h presence... no
>
> checking for ffmpeg/avcodec.h... no
>
> checking ffmpeg/avformat.h usability... no
>
> checking ffmpeg/avformat.h presence... no
>
> checking for ffmpeg/avformat.h... no
>
> checking linux/videodev2.h usability... yes
>
> checking linux/videodev2.h presence... yes
>
> checking for linux/videodev2.h... yes
>
> checking for int64_t... yes
>
> checking for pid_t... yes
>
> checking vfork.h usability... no
>
> checking vfork.h presence... no
>
> checking for vfork.h... no
>
> checking for fork... yes
>
> checking for vfork... yes
>
> checking for working fork... yes
>
> checking for working vfork... (cached) yes
>
> checking for dup2... yes
>
> checking for memset... yes
>
> checking for sqrt... yes
>
> checking for strchr... yes
>
> checking for strdup... yes
>
> checking for strrchr... yes
>
> configure: creating ./config.status
>
> config.status: error: cannot find input file: Makefile.in
>
> My thesis advisor suggested a few automake commands to fix the problem
> and this is what I got:
>
> [aawin...@localhost iulib]$ aclocal
> [aawin...@localhost iulib]$ libtoolize --force
> Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.
> Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
> You should update your `aclocal.m4' by running aclocal.        
> [aawin...@localhost iulib]$ autoheader                          
> [aawin...@localhost iulib]$ automake --add-missing              
> automake: no `Makefile.am' found for any configure output      
> [aawin...@localhost iulib]$ autoreconf
> automake: no `Makefile.am' found for any configure output
> autoreconf: automake failed with exit status: 1    
>
> I also tried replacing `AC_PROG_RANLIB' with `AC_PROG_LIBTOOL', but it
> caused more problems and still didn't work.  So, then I tried using
> scons and got this:
>
> [aawin...@localhost iulib]$ scons                      
> scons: Reading SConscript files ...                    
>
> scons: warning: The Options class is deprecated; use the Variables class
> instead.
> File "/usr/local/ocropus-0.4/iulib/SConstruct", line 38, in <module>
>
> compiling with high optimization
>
> Checking for png_byte in C library png... yes
>
> Checking for jpeg_std_error() in C library jpeg... yes
>
> Checking for inflate() in C library tiff... yes
>
> Checking for C++ header file ffmpeg/avcodec.h... no
>
> Checking for C header file linux/videodev2.h... yes
>
> Checking for C++ header file SDL/SDL_gfxPrimitives.h... no
>
> scons: done reading SConscript files.
>
> scons: Building targets ...
>
> g++ -o colib/tests/test-coords.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio colib/tests/test-coords.cc
>
> g++ -o imglib/imgmap.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imglib/imgmap.cc
>
> g++ -o imglib/imggauss.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imggauss.cc
>
> g++ -o imglib/imglabels.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imglabels.cc
>
> g++ -o imglib/imgbrushfire.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imgbrushfire.cc
>
> g++ -o imglib/imgmorph.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imgmorph.cc
>
> g++ -o imglib/imgops.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imglib/imgops.cc
>
> g++ -o imglib/imgfilters.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imgfilters.cc
>
> g++ -o imglib/imgmisc.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imglib/imgmisc.cc
>
> g++ -o imglib/imggraymorph.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imggraymorph.cc
>
> g++ -o imglib/imgtrace.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imgtrace.cc
>
> g++ -o imglib/imgedges.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imgedges.cc
>
> g++ -o imglib/imgthin.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imglib/imgthin.cc
>
> g++ -o imglib/imgrescale.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imglib/imgrescale.cc
>
> g++ -o imgbits/imgbthin.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imgbits/imgbthin.cc
>
> g++ -o imgbits/imgbsmp.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imgbits/imgbsmp.cc
>
> g++ -o imgbits/imgbits.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imgbits/imgbits.cc
>
> g++ -o imgbits/imgblit.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imgbits/imgblit.cc
>
> g++ -o imgbits/imgrle.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imgbits/imgrle.cc
>
> g++ -o imgbits/imgblit_c.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imgbits/imgblit_c.cc
>
> g++ -o imgio/autoinvert.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio imgio/autoinvert.cc
>
> g++ -o imgio/imgio.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imgio/imgio.cc
>
> g++ -o imgio/io_jpeg.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imgio/io_jpeg.cc
> g++ -o imgio/io_pbm.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imgio/io_pbm.cc
> g++ -o imgio/io_png.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imgio/io_png.cc
> g++ -o imgio/io_tiff.o -c -g -O3 -Wall -D__warn_unused_result__=__far__
> -I. -Icolib -Iimglib -Iimgio -Iimgbits -Iutils -Ividio imgio/io_tiff.cc
> imgio/io_tiff.cc: In member function 'void
> iulib::Tiff::getPageRaw(colib::bytearray&, int, bool)':
> imgio/io_tiff.cc:91: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc:100: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc:101: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc: In member function 'void
> iulib::Tiff::getPage(colib::bytearray&, int, bool)':
> imgio/io_tiff.cc:133: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc:134: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc: In member function 'void
> iulib::Tiff::getPageRaw(colib::intarray&, int, bool)':
> imgio/io_tiff.cc:162: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc:167: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc:168: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc: In member function 'void
> iulib::Tiff::getPage(colib::intarray&, int, bool)':
> imgio/io_tiff.cc:196: warning: comparison between signed and unsigned
> integer expressions
> imgio/io_tiff.cc:197: warning: comparison between signed and unsigned
> integer expressions
> g++ -o utils/dgraphics.o -c -g -O3 -Wall
> -D__warn_unused_result__=__far__ -I. -Icolib -Iimglib -Iimgio -Iimgbits
> -Iutils -Ividio utils/dgraphics.cc
> utils/dgraphics.cc:27:35: error: SDL/SDL_gfxPrimitives.h: No such file
> or directory
> utils/dgraphics.cc:28:27: error: SDL/SDL_image.h: No such file or
> directory
> utils/dgraphics.cc:29:33: error: SDL/SDL_imageFilter.h: No such file or
> directory
> utils/dgraphics.cc:30:30: error: SDL/SDL_rotozoom.h: No such file or
> directory
> utils/dgraphics.cc: In function 'void iulib::ArrayBlit(SDL_Surface*,
> SDL_Rect*, colib::bytearray&, double, double, int)':
> utils/dgraphics.cc:72: error: 'rotozoomSurface' was not declared in this
> scope
> utils/dgraphics.cc: In function 'void iulib::ArrayBlit(SDL_Surface*,
> SDL_Rect*, colib::intarray&, double, double, int)':
> utils/dgraphics.cc:84: error: 'rotozoomSurface' was not declared in this
> scope
> scons: *** [utils/dgraphics.o] Error 1
> scons: building terminated because of errors.
>
> Does anyone have any ideas?  I noticed the patch, should I try to
> install the development version instead?  My thesis is to train the
> engine to recognize an old German font.
>
> Thanks,
> Amy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to