Skip to content

SDLPango_Alignment undeclared #241

Closed
YuGiOhJCJ opened this Issue Aug 30, 2012 · 4 comments

2 participants

@YuGiOhJCJ

Hello,

I try to build SDL-2.540 but I got this error :

$ perl Build
[Alien::SDL] Build option used:
Already installed SDL ver=1.2.15 path=/usr
SDL(v1.2.15) SDL_image(v1.2.12) SDL_mixer(v1.2.12) SDL_ttf(v2.0.11) SDL_gfx(v2.0.24) SDL_Pango(v1.3)
Building SDL
cc -Isrc -I/usr/lib/perl5/5.12.3/i486-linux-thread-multi/CORE -DXS_VERSION="2.540" -DVERSION="2.540" -fPIC -DNOSIGCATCH -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/smpeg -I/usr/include -I/usr/X11R6/include -I/usr/include/smpeg -I/usr/local/include -I/usr/include -DHAVE_SDL -DHAVE_SDL_PANGO -DUSE_THREADS -fPIC -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mtune=i686 -o lib/SDL/Pango.o lib/SDL/Pango.c
lib/SDL/Pango.c: In function ‘XS_SDL__Pango_set_text’:
lib/SDL/Pango.c:479:2: error: ‘SDLPango_Alignment’ undeclared (first use in this function)
lib/SDL/Pango.c:479:2: note: each undeclared identifier is reported only once for each function it appears in
lib/SDL/Pango.c:479:21: error: expected ‘;’ before ‘alignment’
lib/SDL/Pango.c:491:6: error: ‘alignment’ undeclared (first use in this function)
lib/SDL/Pango.c:491:18: error: ‘SDLPANGO_ALIGN_LEFT’ undeclared (first use in this function)
error building lib/SDL/Pango.o from 'lib/SDL/Pango.c' at /usr/lib/perl5/5.12.3/ExtUtils/CBuilder/Base.pm line 112.

I am on a GNU/Linux operating system (Slackware).

Do you have any idea on how to resolve this problem?

Thank you.
Regards.

@jtpalmer
PerlGameDev member

Hi @YuGiOhJCJ, did you install SDL_Pango yourself or are you using a package from somewhere? We require a patched version of SDL_Pango that most distros include. You can install SDL (the C library) and some prerequisites if you select that choice when installing Alien::SDL and that will include the patch.

@YuGiOhJCJ

I installed myself SDL_Pango with no patch.
I know SDL_Pango last release is from 2004 and it is old.
So I understand that there are some patches since all this time...
Do you recommend one patch for me?
Why this patch isn't available on the official web site?

@jtpalmer
PerlGameDev member

I don't know the history of SDL_Pango and why the patches never made it to the official version. I don't think it's maintained anymore. You can find all the patches here:

https://github.com/PerlGameDev/Alien-SDL/tree/master/patches

I think you'll need to apply SDL_Pango-0.1.2-API-adds.1.patch and SDL_Pango-0.1.2-API-adds.2.patch. I'm not sure about the others.

@YuGiOhJCJ

Thank you. It solved my problem :)

@YuGiOhJCJ YuGiOhJCJ closed this Sep 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.