Date: Wed, 18 Feb 2009 01:04:36 +0800 From: darcsis@gmail.com (Denise H. G.) To: Angelo Turetta <aturetta@commit.it> Cc: Oliver Heesakkers <dev2@heesakkers.info>, lwhsu@freebsd.org, multimedia@freebsd.org Subject: Re: gpac-libgpac needs libglut now Message-ID: <86bpt12dwb.fsf@pluton.xbsd.name> In-Reply-To: <4999CE0E.8050000@commit.it> (Angelo Turetta's message of "Mon\, 16 Feb 2009 21\:35\:26 %2B0100") References: <200902161313.59518.dev2@heesakkers.info> <4999CE0E.8050000@commit.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Angelo Turetta <aturetta@commit.it> writes: > Oliver Heesakkers wrote: >> Hello, >> >> I was unable to build gpac-libgpac because I did not have libglut >> installed. Perhaps you need to add a dependency here. > > That's not enough. > > In my PC I have libGL, libGL, libglut installed, but the build stops at: > > cc -O3 -O2 -fno-strict-aliasing -pipe -fPIC -pthread > -fno-strict-aliasing -Wno-pointer-sign > -I/space/usr/ports/multimedia/gpac-libgpac/work/gpac/include -I../ > -DGPAC_HAVE_CONFIG_H -fPIC -DPIC -c compositor/mesh.c -o > compositor/mesh.opic > In file included from compositor/mesh.c:33: > compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory > > The problem seems that this part of src/Makefile apparently is not used: > > # OpenGL support > ifeq ($(HAS_OPENGL),yes) > EXTRALIBS+= $(OGL_LIBS) > COMPOSITOR_CFLAGS+=$(OGL_INCLS) > endif > > config.mak contains: > OGL_INCLS=-I/usr/local/include > OGL_LIBS=-L/usr/local/lib -lGL -lglut > > I hope someone who better understand gmake can > Angelo. I don't know much about gmake, but made a dirty hack and it seemed to work... ---- cut ---- --- src/Makefile.orig 2008-12-02 22:01:08.000000000 +0800 +++ src/Makefile 2009-02-14 16:07:17.228411630 +0800 @@ -2,7 +2,7 @@ vpath %.c $(SRC_PATH)/src -CFLAGS= $(OPTFLAGS) -I$(SRC_PATH)/include +CFLAGS= $(OPTFLAGS) -I$(SRC_PATH)/include -I/usr/local/include ifeq ($(DEBUGBUILD), yes) CFLAGS+=-g @@ -52,6 +52,7 @@ ifeq ($(DISABLE_SVG), no) LIBGPAC_LASER=laser/lsr_enc.o laser/lsr_dec.o laser/lsr_tables.o endif +EXTRALIBS+=-Wl,-soname,$(LIB) ## libgpac objects gathering: la totale ... OBJS=$(LIBGPAC_UTILS) $(LIBGPAC_MCRYPT) $(LIBGPAC_SCENE) $(LIBGPAC_IETF) $(LIBGPAC_BIFS) $(LIBGPAC_ISOM) $(LIBGPAC_ODF) $(LIBGPAC_MEDIATOOLS) $(LIBGPAC_SCENEMANAGER) $(LIBGPAC_TERMINAL) $(LIBGPAC_COMPOSITOR) $(LIBGPAC_LASER) @@ -163,7 +164,7 @@ ##libgpac library output -LIB=libgpac.$(DYN_LIB_SUFFIX) +LIB=libgpac.$(DYN_LIB_SUFFIX).1 ifeq ($(CONFIG_WIN32),yes) #LDFLAGS+=-export-symbols libgpac.def else ---- cut ---- > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" > -- darcsis ZAI gmail DIAN com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bpt12dwb.fsf>