I tried to compile ocropus and I get errors like those below.<br>ocropus states iulib as it's dependency. It looks like iulib needs an SDL library, maybe SDL_image, but iulib's README file does not state anything about this and I can't find an SlackBuild script for it. Any Hints? Am I doing something wrong?<br>
<br>Nikos Skalkotos<br><br>P.S. I'm using slackware-current and the slackbuilds I used are from <a href="http://slackbuilds.org">slackbuilds.org</a> 13.1 repository.<br><br><br><br>g++ -O2 -march=i486 -mtune=i686 -Wl,-E -L/usr/lib -L/usr/lib -o ocroscript ocroscript.o ocrotoplevel.o -ltiff -lpng -ljpeg ./../ext/lua/liblua.a libocroscript.a ./../libocropus.a ./../ext/tolua++/libtolua++.a -ltesseract_full -lpthread -liulib -ltiff -ljpeg -lpng -lz <br>
/usr/lib/libiulib.a(dgraphics.o): In function `iulib::dinit(int, int, bool)':<br>dgraphics.cc:(.text+0x1a0): undefined reference to `SDL_Init'<br>dgraphics.cc:(.text+0x1bc): undefined reference to `SDL_SetVideoMode'<br>
/usr/lib/libiulib.a(dgraphics.o): In function `iulib::dclear(int)':<br>dgraphics.cc:(.text+0x253): undefined reference to `SDL_MapRGB'<br>dgraphics.cc:(.text+0x26b): undefined reference to `SDL_FillRect'<br>dgraphics.cc:(.text+0x298): undefined reference to `SDL_UpdateRect'<br>
/usr/lib/libiulib.a(dgraphics.o): In function `iulib::dwait()':<br>dgraphics.cc:(.text+0x2cc): undefined reference to `SDL_WaitEvent'<br>/usr/lib/libiulib.a(dgraphics.o): In function `void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)':<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x125): undefined reference to `SDL_MapRGB'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x13a): undefined reference to `SDL_FillRect'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x167): undefined reference to `SDL_UpdateRect'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x1c2): undefined reference to `SDL_CreateRGBSurfaceFrom'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x1dd): undefined reference to `SDL_SetAlpha'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x1fd): undefined reference to `rotozoomSurface'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x217): undefined reference to `SDL_SetAlpha'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x222): undefined reference to `SDL_FreeSurface'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x253): undefined reference to `SDL_UpperBlit'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x25b): undefined reference to `SDL_FreeSurface'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*, double, int, int)]+0x288): undefined reference to `SDL_UpdateRect'<br>
/usr/lib/libiulib.a(dgraphics.o): In function `void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)':<br>dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x125): undefined reference to `SDL_MapRGB'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x13a): undefined reference to `SDL_FillRect'<br>dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x167): undefined reference to `SDL_UpdateRect'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x1c9): undefined reference to `SDL_CreateRGBSurfaceFrom'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x1e4): undefined reference to `SDL_SetAlpha'<br>dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x204): undefined reference to `rotozoomSurface'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x21e): undefined reference to `SDL_SetAlpha'<br>dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x229): undefined reference to `SDL_FreeSurface'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x25a): undefined reference to `SDL_UpperBlit'<br>dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x262): undefined reference to `SDL_FreeSurface'<br>
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)]+0x28f): undefined reference to `SDL_UpdateRect'<br>collect2: ld returned 1 exit status<br>
make[1]: *** [ocroscript] Error 1<br><br>