[Slackbuilds-users] ocropus compilation error

Pierre Cazenave pwcazenave at gmail.com
Thu Apr 14 14:54:06 UTC 2011


On 13/04/2011 22:34, Nikos Skalkotos wrote:
> 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?
>

On -current, it looks like iulib requires SDL_gfx. It didn't on 13.1, 
for some reason.

It seems some of the dependencies (which I also maintain) are a bit out 
of date. I have attached some updated SlackBuilds for ocropus (v0.4) and 
iulib (v0.4). I have a new tesseract build waiting, but you can't build 
ocropus against the new version of tesseract -- too many things have 
changed, it seems. I also have a leptonica build (which can be used by 
both tesseract and ocropus) but seemingly leptonica is too up to date 
for them.

So, to summarise, if you build the following in this order, you should 
be fine on -current:

1. SDL_gfx (from SBo)
2. iulib (v0.4 attached)
3. tesseract (from SBo)
4. gsl (SBo)
5. ocropus (v0.4 attached)

Pierre

> 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
>
>
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: iulib.tar.bz2
Type: application/octet-stream
Size: 3088 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20110414/d0d34362/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ocropus.tar.bz2
Type: application/octet-stream
Size: 3300 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20110414/d0d34362/attachment-0003.obj>


More information about the SlackBuilds-users mailing list