Any ideas? I installed the SDL libraries (SDL, SDL_image & SDL_gfx) from the http://sourceware.org/cygwinports/. Tesseract compiled fine.
The command to create the build script for iulib was ./build. iulib compiled fine. The command to create the build script was (I run it in the ocropus subfolder). ./build CPPFLAGS=-I/usr/include\ -I/usr/local/include --with- tesseract=/usr/local --without-leptonica --without-fst LIBS=-L/lib\ -L/ usr/lib\ -L/usr/local/lib For the life of me, I don't understand why the linker is complaining about SDL_init and the other functions because they are there in libSDL.a. g++ -g -O2 -Wall -Wno-sign-compare -Wno-write-strings -Wno-deprecated - g -O2 -L/usr/local/lib -L/usr/local/lib -Wl,-E -o ocropus.exe ocropus.o libocropus.a -lSDL_gfx -lSDL -lblas -lgsl -lgslcblas - ltesseract_full -lpthread -liulib -ltiff -ljpeg -lpng -lz -L/lib -L/ usr/lib -L/usr/local/lib /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib5dinitEiib': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:138: undefined reference to `_SDL_Init' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:139: undefined reference to `_SDL_SetVideoMode' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib6dflushEv': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:223: undefined reference to `_SDL_Flip' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib6dclearEi': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:323: undefined reference to `_SDL_MapRGB' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:324: undefined reference to `_SDL_FillRect' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:325: undefined reference to `_SDL_UpdateRect' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib5dwaitEv': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:335: undefined reference to `_SDL_WaitEvent' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN49_GLOBAL__N_._utils_dgraphics.cc_BDAB8BFC_4E27A4B35debugEPKc': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:62: undefined reference to `_SDL_MapRGB' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:64: undefined reference to `_SDL_FillRect' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN49_GLOBAL__N_._utils_dgraphics.cc_BDAB8BFC_4E27A4B36debugfEPKcS1_z': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:67: undefined reference to `_SDL_UpdateRect' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:74: undefined reference to `_SDL_CreateRGBSurfaceFrom' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib4rectEP11SDL_Surface': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:56: undefined reference to `_SDL_SetAlpha' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:58: undefined reference to `_rotozoomSurface' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib9ParseSpecERdS0_S0_S0_PKc': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:124: undefined reference to `_SDL_SetAlpha' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:124: undefined reference to `_SDL_FreeSurface' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:124: undefined reference to `_SDL_UpperBlit' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:118: undefined reference to `_SDL_FreeSurface' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:109: undefined reference to `_SDL_UpdateRect' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN49_GLOBAL__N_._utils_dgraphics.cc_BDAB8BFC_4E27A4B35debugEPKc': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:62: undefined reference to `_SDL_MapRGB' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:64: undefined reference to `_SDL_FillRect' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN49_GLOBAL__N_._utils_dgraphics.cc_BDAB8BFC_4E27A4B36debugfEPKcS1_z': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:67: undefined reference to `_SDL_UpdateRect' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./colib/ debugf.h:74: undefined reference to `_SDL_CreateRGBSurfaceFrom' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib4rectEP11SDL_Surface': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:56: undefined reference to `_SDL_SetAlpha' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:57: undefined reference to `_rotozoomSurface' /usr/local/lib/libiulib.a(dgraphics.o): In function `_ZN5iulib9ParseSpecERdS0_S0_S0_PKc': /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:92: undefined reference to `_SDL_SetAlpha' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:124: undefined reference to `_SDL_FreeSurface' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:118: undefined reference to `_SDL_UpperBlit' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:124: undefined reference to `_SDL_FreeSurface' /cygdrive/c/development/cpp/build_ocropus/ocropus-0.4/iulib/./utils/ dgraphics.cc:108: undefined reference to `_SDL_UpdateRect' collect2: ld returned 1 exit status make[1]: *** [ocropus.exe] Error 1 make[1]: Leaving directory `/cygdrive/c/development/cpp/build_ocropus/ ocropus-0.4/ocropus' make: *** [all-recursive] Error 1 Please note that if I compile iulib and ocropus with --without-SDL ocropus fails because iulib is missing some functions in dgraphics_nosdl.cc that are in dgraphics.cc and which are referenced in ocropus even though both have been compiled with --without-SDL. Has any one else try to compile this beast on cygwin? I can't believe I am the first one to have these issues. I feel like Sisif. Every time I work out some problem another one just pops up around the corner. It's got to be easier. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
