vlc-0.4.2 does not work with sdl on hp-ux
Martin Gansser
mgansser at ngi.de
Sat Jul 20 21:12:07 CEST 2002
> > >> sdl_LDFLAGS = @sdl_LDFLAGS@ -lpthread
> >
> >> That's weird. Doesn't -lpthread already appear in `sdl-config --libs`
?
> >yes it appears; -lpthread ==> isn't neccessary
> >
> >> Have you tried with -lrt instead of -lpthread ?
> >sdl_LDFLAGS = @sdl_LDFLAGS@ -lrt ==>works
>
> And without -lrt ?
the -lrt Option is very important on hp-ux, since otherwise the following
error messages appear:
/usr/ccs/bin/ld: Unsatisfied symbols:
sem_post (first referenced in /opt/SDL/lib/libSDL.a(SDL.o)) (code)
sem_destroy (first referenced in /opt/SDL/lib/libSDL.a(SDL.o)) (code)
sem_getvalue (first referenced in /opt/SDL/lib/libSDL.a(SDL.o)) (code)
sem_trywait (first referenced in /opt/SDL/lib/libSDL.a(SDL.o)) (code)
sem_wait (first referenced in /opt/SDL/lib/libSDL.a(SDL.o)) (code)
sem_init (first referenced in /opt/SDL/lib/libSDL.a(SDL.o)) (code)
collect2: ld returned 1 exit status
more Information can be found on the man page of sem_post ...
> > >> and for configure:
> >>> ==================
> >>> LDFLAGS="-L/opt/SDL/lib -L/usr/lib -lpthread -lrt"
> >
> >> Why do you add /opt/SDL/lib in LDFLAGS ? It should already be in
> >> sdl_LDFLAGS...
> >"-L/opt/SDL/lib" ==> isn't neccessary
>
> OK so basically we just need to add -lrt to LDFLAGS for HP/UX system ?
yes
Martin
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list