[Slackbuilds-users] ocropus compilation error
Nikos Skalkotos
skalkoto at gmail.com
Wed Apr 13 21:34:18 UTC 2011
I tried to compile ocropus and I get errors like those below.
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?
Nikos Skalkotos
P.S. I'm using slackware-current and the slackbuilds I used are from
slackbuilds.org 13.1 repository.
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
/usr/lib/libiulib.a(dgraphics.o): In function `iulib::dinit(int, int,
bool)':
dgraphics.cc:(.text+0x1a0): undefined reference to `SDL_Init'
dgraphics.cc:(.text+0x1bc): undefined reference to `SDL_SetVideoMode'
/usr/lib/libiulib.a(dgraphics.o): In function `iulib::dclear(int)':
dgraphics.cc:(.text+0x253): undefined reference to `SDL_MapRGB'
dgraphics.cc:(.text+0x26b): undefined reference to `SDL_FillRect'
dgraphics.cc:(.text+0x298): undefined reference to `SDL_UpdateRect'
/usr/lib/libiulib.a(dgraphics.o): In function `iulib::dwait()':
dgraphics.cc:(.text+0x2cc): undefined reference to `SDL_WaitEvent'
/usr/lib/libiulib.a(dgraphics.o): In function `void iulib::dshow<unsigned
char>(colib::narray<unsigned char>&, char const*, double, int, int)':
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'
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'
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'
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'
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'
dgraphics.cc:(.text._ZN5iulib5dshowIhEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<unsigned char>(colib::narray<unsigned char>&, char const*,
double, int, int)]+0x1fd): undefined reference to `rotozoomSurface'
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'
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'
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'
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'
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'
/usr/lib/libiulib.a(dgraphics.o): In function `void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int, int)':
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x125): undefined reference to `SDL_MapRGB'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x13a): undefined reference to `SDL_FillRect'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x167): undefined reference to `SDL_UpdateRect'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x1c9): undefined reference to `SDL_CreateRGBSurfaceFrom'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x1e4): undefined reference to `SDL_SetAlpha'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x204): undefined reference to `rotozoomSurface'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x21e): undefined reference to `SDL_SetAlpha'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x229): undefined reference to `SDL_FreeSurface'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x25a): undefined reference to `SDL_UpperBlit'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x262): undefined reference to `SDL_FreeSurface'
dgraphics.cc:(.text._ZN5iulib5dshowIiEEvRN5colib6narrayIT_EEPKcdii[void
iulib::dshow<int>(colib::narray<int>&, char const*, double, int,
int)]+0x28f): undefined reference to `SDL_UpdateRect'
collect2: ld returned 1 exit status
make[1]: *** [ocroscript] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20110414/6f15e973/attachment.html>
More information about the SlackBuilds-users
mailing list