gpac-libgpac needs libglut now
Denise H. G.
darcsis at gmail.com
Tue Feb 17 09:37:59 PST 2009
Angelo Turetta <aturetta at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe at freebsd.org"
>
--
darcsis ZAI gmail DIAN com
More information about the freebsd-multimedia
mailing list