Compiling GPAC on Debian and Ubuntu (and other Unix distros)

Updated May 13th 2016

Introduction

Starting from a fresh Ubuntu 10.10, Ubuntu 12.04 or Debian testing 6 (Wheezy), the following steps will provide you with a fully working GPAC.

Get the source code

Deprecated (not updated since 2014):

Get the dependencies

The instructions differ depending on the linux distribution.

Ubuntu 10.10

Modify the file /etc/ld.so.conf (you must be in the sudoers list), to help GPAC find Mozilla JavaScript dynamic library, by adding the line at the beginning of the file:

Note:Inserting the line at the end of the file may result in broken libxul dependencies since firefox 11 and the introduction of libssl3 in mozilla’s build.
Note:Ubuntu may update the xulrunner packages. Replace 1.9.2.16 by whatever your xulrunner version is.

Ubuntu 11.10

Compared to Ubuntu 10.10, the xulrunner-dev package must be replaced by firefox-dev.
Modify the file /etc/ld.so.conf setting

The firefox version must be the same as installed on your system (it is possible that no version is included in the path, e.g. only /usr/lib/firefox/ is present) and run ldconfig to update the libraries:

Ubuntu 12.04

Ubuntu 14.04

Debian testing 6 (Wheezy)

Other Unix distros

Note: we provide specific build instructions to build on MacOS X.

If the FFmpeg packages lead to errors, consider rebuilding with Zenbuild or other scripts.

We provide the extra libs as an zip package. Download it and run the compile.sh script. If you encounter an issue, please report a bug.

Compilation

Now you should be able to run MP4Box, MP4Client and all other apps.

43 thoughts on “Compiling GPAC on Debian and Ubuntu (and other Unix distros)

  1. Tried to compile it on 12.04, but got these errors on make:

    scenegraph/vrml_smjs.c: In function ‘gf_sg_ecmascript_new’:
    scenegraph/vrml_smjs.c:337:2: warning: implicit declaration of function ‘JS_ClearContextThread’ [-Wimplicit-function-declaration]
    scenegraph/vrml_smjs.c: In function ‘gf_sg_ecmascript_del’:
    scenegraph/vrml_smjs.c:353:2: warning: implicit declaration of function ‘JS_SetContextThread’ [-Wimplicit-function-declaration]
    scenegraph/vrml_smjs.c: In function ‘image_getProperty’:
    scenegraph/vrml_smjs.c:1702:4: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘array_setElement’:
    scenegraph/vrml_smjs.c:2671:5: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘array_setLength’:
    scenegraph/vrml_smjs.c:2876:4: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘MFVec2fConstructor’:
    scenegraph/vrml_smjs.c:2931:4: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘MFVec3fConstructor’:
    scenegraph/vrml_smjs.c:2960:4: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘MFRotationConstructor’:
    scenegraph/vrml_smjs.c:2989:4: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘MFColorConstructor’:
    scenegraph/vrml_smjs.c:3018:4: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘gf_sg_script_to_smjs_field’:
    scenegraph/vrml_smjs.c:3907:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3918:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3929:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3940:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3951:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3963:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3982:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:3996:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:4010:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:4024:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    scenegraph/vrml_smjs.c:4040:3: error: too many arguments to function ‘JS_ConstructObject’
    /usr/include/firefox/jsapi.h:3733:1: note: declared here
    make[1]: *** [scenegraph/vrml_smjs.o] Error 1
    make[1]: Leaving directory `/home/zare/gpac/src’
    make: *** [all] Error 2

  2. We’re aware of the issue, firefox SMJS APIs are changing every two weeks currently, with no backward compatibility. Hope we’ll have a fix soon

  3. When I try to compile the latest version under Ubuntu 12.04, I get the following errors from make. Could you indicate me what’s missing?

    christian@christian-VirtualBox:~/software/gpac$ ./configure
    Package mozilla-js was not found in the pkg-config search path.
    Perhaps you should add the directory containing mozilla-js.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'mozilla-js' found

    ** System Configuration
    Install prefix: /usr/local
    Source path: /home/christian/software/gpac
    C compiler: gcc
    C++ compiler: g++
    make: make
    CPU: x86
    Big Endian: no

    ** GPAC 0.4.6-DEV rev4036 Core Configuration **
    debug version: no
    GProf enabled: no
    Static build enabled: no
    Memory tracking enabled: no
    Use standard memory allocator: no
    fixed-point version: no
    IPV6 Support: yes

    ** Detected libraries **
    zlib: system
    OSS Audio: yes
    ALSA Audio: yes
    Jack Audio: yes
    PulseAudio Audio: yes
    DirectFB support: no
    X11 Shared Memory support: yes (path: /usr/X11R6)
    X11 XVideo support: yes
    SDL Support: yes
    OpenGL support: yes
    TinyGL support: no
    OpenSSL support: yes
    Mozilla XUL/GECKO support: firefox
    DVB Support: yes
    XMLRPC Support: no
    wxWidgets support: no

    ** Extra Libraries used **
    SpiderMonkey: firefox
    FreeType: system
    JPEG: system
    OpenJPEG: system
    PNG: system
    MAD: system
    FAAD: system
    XVID: system
    FFMPEG: system
    Xiph OGG: system
    Platinum UPnP: no
    AVCap: no
    Xiph Vorbis: system
    Xiph Theora: system
    A52 (AC3): system
    OpenSVCDecoder: no
    Freenect: no

    Creating config.mak
    config.h is unchanged
    Done - type 'make help' for make info, 'make' to build
    christian@christian-VirtualBox:~/software/gpac$ make
    make -C src all
    make[1]: Entering directory
    /home/christian/software/gpac/src’
    ar cr ../bin/gcc/libgpac_static.a utils/os_divers.o utils/os_net.o utils/os_module.o utils/os_thread.o utils/os_config_init.o utils/list.o utils/base_encoding.o utils/bitstream.o utils/color.o utils/configfile.o utils/cache.o utils/downloader.o utils/error.o utils/math.o utils/path2d.o utils/path2d_stroker.o utils/module.o utils/token.o utils/uni_bidi.o utils/url.o utils/utf.o utils/xml_parser.o utils/alloc.o utils/ringbuffer.o utils/unicode.o mcrypt/cbc.o mcrypt/cfb.o mcrypt/ctr.o mcrypt/des.o mcrypt/ecb.o mcrypt/g_crypt.o mcrypt/ncfb.o mcrypt/nofb.o mcrypt/ofb.o mcrypt/rijndael-128.o mcrypt/rijndael-192.o mcrypt/rijndael-256.o mcrypt/stream.o mcrypt/tripledes.o mcrypt/sha1.o scenegraph/base_scenegraph.o scenegraph/mpeg4_animators.o scenegraph/commands.o scenegraph/mpeg4_nodes.o scenegraph/mpeg4_valuator.o scenegraph/vrml_interpolators.o scenegraph/vrml_proto.o scenegraph/vrml_route.o scenegraph/vrml_script.o scenegraph/vrml_smjs.o scenegraph/vrml_tools.o scenegraph/x3d_nodes.o scenegraph/svg_attributes.o scenegraph/svg_types.o scenegraph/svg_smjs.o scenegraph/smil_anim.o scenegraph/smil_timing.o scenegraph/svg_properties.o scenegraph/dom_events.o scenegraph/dom_smjs.o scenegraph/xbl_process.o scenegraph/xml_ns.o ietf/rtcp.o ietf/rtp.o ietf/rtp_packetizer.o ietf/rtp_pck_3gpp.o ietf/rtp_pck_mpeg12.o ietf/rtp_pck_mpeg4.o ietf/rtsp_command.o ietf/rtsp_common.o ietf/rtsp_response.o ietf/rtsp_session.o ietf/sdp.o ietf/rtp_depacketizer.o ietf/rtp_streamer.o bifs/arith_decoder.o bifs/bifs_codec.o bifs/bifs_node_tables.o bifs/com_dec.o bifs/com_enc.o bifs/conditional.o bifs/field_decode.o bifs/field_encode.o bifs/memory_decoder.o bifs/predictive_mffield.o bifs/quantize.o bifs/script_dec.o bifs/script_enc.o bifs/unquantize.o isomedia/avc_ext.o isomedia/box_code_3gpp.o isomedia/box_code_apple.o isomedia/box_code_base.o isomedia/box_code_isma.o isomedia/box_code_meta.o isomedia/box_dump.o isomedia/box_funcs.o isomedia/data_map.o isomedia/hint_track.o isomedia/hinting.o isomedia/isma_sample.o isomedia/isom_intern.o isomedia/isom_read.o isomedia/isom_store.o isomedia/isom_write.o isomedia/media.o isomedia/media_odf.o isomedia/meta.o isomedia/movie_fragments.o isomedia/sample_descs.o isomedia/stbl_read.o isomedia/stbl_write.o isomedia/track.o isomedia/tx3g.o odf/desc_private.o odf/descriptors.o odf/ipmpx_code.o odf/ipmpx_dump.o odf/ipmpx_parse.o odf/oci_codec.o odf/odf_code.o odf/odf_codec.o odf/odf_command.o odf/odf_dump.o odf/odf_parse.o odf/qos.o odf/slc.o media_tools/ait.o media_tools/av_parsers.o media_tools/avilib.o media_tools/dsmcc.o media_tools/dvb.o media_tools/filestreamer.o media_tools/gpac_ogg.o media_tools/img.o media_tools/ismacryp.o media_tools/isom_hinter.o media_tools/isom_tools.o media_tools/media_export.o media_tools/media_import.o media_tools/mpeg2_ps.o media_tools/text_import.o media_tools/saf.o media_tools/mpegts.o media_tools/dvb_mpe.o media_tools/reedsolomon.o media_tools/vobsub.o media_tools/m2ts_mux.o media_tools/m3u8.o media_tools/mpd.o scene_manager/loader_bt.o scene_manager/loader_isom.o scene_manager/loader_qt.o scene_manager/loader_xmt.o scene_manager/scene_dump.o scene_manager/scene_manager.o scene_manager/scene_stats.o scene_manager/swf_parse.o scene_manager/swf_bifs.o scene_manager/text_to_bifs.o scene_manager/scene_engine.o scene_manager/encode_isom.o scene_manager/loader_svg.o terminal/channel.o terminal/clock.o terminal/decoder.o terminal/term_node_init.o terminal/input_sensor.o terminal/media_control.o terminal/media_manager.o terminal/media_memory.o terminal/media_object.o terminal/media_sensor.o terminal/mpeg4_inline.o terminal/network_service.o terminal/object_browser.o terminal/object_manager.o terminal/scene.o terminal/terminal.o terminal/svg_external.o compositor/audio_input.o compositor/audio_mixer.o compositor/audio_render.o compositor/bindable.o compositor/camera.o compositor/compositor.o compositor/compositor_2d.o compositor/compositor_3d.o compositor/compositor_node_init.o compositor/drawable.o compositor/events.o compositor/font_engine.o compositor/hc_flash_shape.o compositor/hardcoded_protos.o compositor/mesh.o compositor/mesh_collide.o compositor/mesh_tesselate.o compositor/mpeg4_animstream.o compositor/mpeg4_audio.o compositor/mpeg4_background.o compositor/mpeg4_background2d.o compositor/mpeg4_bitmap.o compositor/mpeg4_composite.o compositor/mpeg4_form.o compositor/mpeg4_geometry_2d.o compositor/mpeg4_geometry_3d.o compositor/mpeg4_geometry_ifs2d.o compositor/mpeg4_geometry_ils2d.o compositor/mpeg4_gradients.o compositor/mpeg4_grouping.o compositor/mpeg4_grouping_2d.o compositor/mpeg4_grouping_3d.o compositor/mpeg4_layer_2d.o compositor/mpeg4_layer_3d.o compositor/mpeg4_layout.o compositor/mpeg4_lighting.o compositor/mpeg4_path_layout.o compositor/mpeg4_sensors.o compositor/mpeg4_sound.o compositor/mpeg4_text.o compositor/mpeg4_textures.o compositor/mpeg4_timesensor.o compositor/mpeg4_viewport.o compositor/navigate.o compositor/offscreen_cache.o compositor/svg_base.o compositor/svg_filters.o compositor/svg_font.o compositor/svg_geometry.o compositor/svg_grouping.o compositor/svg_media.o compositor/svg_paint_servers.o compositor/svg_text.o compositor/texturing.o compositor/texturing_gl.o compositor/visual_manager.o compositor/visual_manager_2d.o compositor/visual_manager_2d_draw.o compositor/visual_manager_3d.o compositor/visual_manager_3d_gl.o compositor/x3d_geometry.o laser/lsr_enc.o laser/lsr_dec.o laser/lsr_tables.o
    ranlib ../bin/gcc/libgpac_static.a
    gcc -shared “-Wl,-soname,libgpac.so.2” -Wl,–warn-common -Wl,-z,defs -o ../bin/gcc/libgpac.so utils/os_divers.o utils/os_net.o utils/os_module.o utils/os_thread.o utils/os_config_init.o utils/list.o utils/base_encoding.o utils/bitstream.o utils/color.o utils/configfile.o utils/cache.o utils/downloader.o utils/error.o utils/math.o utils/path2d.o utils/path2d_stroker.o utils/module.o utils/token.o utils/uni_bidi.o utils/url.o utils/utf.o utils/xml_parser.o utils/alloc.o utils/ringbuffer.o utils/unicode.o mcrypt/cbc.o mcrypt/cfb.o mcrypt/ctr.o mcrypt/des.o mcrypt/ecb.o mcrypt/g_crypt.o mcrypt/ncfb.o mcrypt/nofb.o mcrypt/ofb.o mcrypt/rijndael-128.o mcrypt/rijndael-192.o mcrypt/rijndael-256.o mcrypt/stream.o mcrypt/tripledes.o mcrypt/sha1.o scenegraph/base_scenegraph.o scenegraph/mpeg4_animators.o scenegraph/commands.o scenegraph/mpeg4_nodes.o scenegraph/mpeg4_valuator.o scenegraph/vrml_interpolators.o scenegraph/vrml_proto.o scenegraph/vrml_route.o scenegraph/vrml_script.o scenegraph/vrml_smjs.o scenegraph/vrml_tools.o scenegraph/x3d_nodes.o scenegraph/svg_attributes.o scenegraph/svg_types.o scenegraph/svg_smjs.o scenegraph/smil_anim.o scenegraph/smil_timing.o scenegraph/svg_properties.o scenegraph/dom_events.o scenegraph/dom_smjs.o scenegraph/xbl_process.o scenegraph/xml_ns.o ietf/rtcp.o ietf/rtp.o ietf/rtp_packetizer.o ietf/rtp_pck_3gpp.o ietf/rtp_pck_mpeg12.o ietf/rtp_pck_mpeg4.o ietf/rtsp_command.o ietf/rtsp_common.o ietf/rtsp_response.o ietf/rtsp_session.o ietf/sdp.o ietf/rtp_depacketizer.o ietf/rtp_streamer.o bifs/arith_decoder.o bifs/bifs_codec.o bifs/bifs_node_tables.o bifs/com_dec.o bifs/com_enc.o bifs/conditional.o bifs/field_decode.o bifs/field_encode.o bifs/memory_decoder.o bifs/predictive_mffield.o bifs/quantize.o bifs/script_dec.o bifs/script_enc.o bifs/unquantize.o isomedia/avc_ext.o isomedia/box_code_3gpp.o isomedia/box_code_apple.o isomedia/box_code_base.o isomedia/box_code_isma.o isomedia/box_code_meta.o isomedia/box_dump.o isomedia/box_funcs.o isomedia/data_map.o isomedia/hint_track.o isomedia/hinting.o isomedia/isma_sample.o isomedia/isom_intern.o isomedia/isom_read.o isomedia/isom_store.o isomedia/isom_write.o isomedia/media.o isomedia/media_odf.o isomedia/meta.o isomedia/movie_fragments.o isomedia/sample_descs.o isomedia/stbl_read.o isomedia/stbl_write.o isomedia/track.o isomedia/tx3g.o odf/desc_private.o odf/descriptors.o odf/ipmpx_code.o odf/ipmpx_dump.o odf/ipmpx_parse.o odf/oci_codec.o odf/odf_code.o odf/odf_codec.o odf/odf_command.o odf/odf_dump.o odf/odf_parse.o odf/qos.o odf/slc.o media_tools/ait.o media_tools/av_parsers.o media_tools/avilib.o media_tools/dsmcc.o media_tools/dvb.o media_tools/filestreamer.o media_tools/gpac_ogg.o media_tools/img.o media_tools/ismacryp.o media_tools/isom_hinter.o media_tools/isom_tools.o media_tools/media_export.o media_tools/media_import.o media_tools/mpeg2_ps.o media_tools/text_import.o media_tools/saf.o media_tools/mpegts.o media_tools/dvb_mpe.o media_tools/reedsolomon.o media_tools/vobsub.o media_tools/m2ts_mux.o media_tools/m3u8.o media_tools/mpd.o scene_manager/loader_bt.o scene_manager/loader_isom.o scene_manager/loader_qt.o scene_manager/loader_xmt.o scene_manager/scene_dump.o scene_manager/scene_manager.o scene_manager/scene_stats.o scene_manager/swf_parse.o scene_manager/swf_bifs.o scene_manager/text_to_bifs.o scene_manager/scene_engine.o scene_manager/encode_isom.o scene_manager/loader_svg.o terminal/channel.o terminal/clock.o terminal/decoder.o terminal/term_node_init.o terminal/input_sensor.o terminal/media_control.o terminal/media_manager.o terminal/media_memory.o terminal/media_object.o terminal/media_sensor.o terminal/mpeg4_inline.o terminal/network_service.o terminal/object_browser.o terminal/object_manager.o terminal/scene.o terminal/terminal.o terminal/svg_external.o compositor/audio_input.o compositor/audio_mixer.o compositor/audio_render.o compositor/bindable.o compositor/camera.o compositor/compositor.o compositor/compositor_2d.o compositor/compositor_3d.o compositor/compositor_node_init.o compositor/drawable.o compositor/events.o compositor/font_engine.o compositor/hc_flash_shape.o compositor/hardcoded_protos.o compositor/mesh.o compositor/mesh_collide.o compositor/mesh_tesselate.o compositor/mpeg4_animstream.o compositor/mpeg4_audio.o compositor/mpeg4_background.o compositor/mpeg4_background2d.o compositor/mpeg4_bitmap.o compositor/mpeg4_composite.o compositor/mpeg4_form.o compositor/mpeg4_geometry_2d.o compositor/mpeg4_geometry_3d.o compositor/mpeg4_geometry_ifs2d.o compositor/mpeg4_geometry_ils2d.o compositor/mpeg4_gradients.o compositor/mpeg4_grouping.o compositor/mpeg4_grouping_2d.o compositor/mpeg4_grouping_3d.o compositor/mpeg4_layer_2d.o compositor/mpeg4_layer_3d.o compositor/mpeg4_layout.o compositor/mpeg4_lighting.o compositor/mpeg4_path_layout.o compositor/mpeg4_sensors.o compositor/mpeg4_sound.o compositor/mpeg4_text.o compositor/mpeg4_textures.o compositor/mpeg4_timesensor.o compositor/mpeg4_viewport.o compositor/navigate.o compositor/offscreen_cache.o compositor/svg_base.o compositor/svg_filters.o compositor/svg_font.o compositor/svg_geometry.o compositor/svg_grouping.o compositor/svg_media.o compositor/svg_paint_servers.o compositor/svg_text.o compositor/texturing.o compositor/texturing_gl.o compositor/visual_manager.o compositor/visual_manager_2d.o compositor/visual_manager_2d_draw.o compositor/visual_manager_3d.o compositor/visual_manager_3d_gl.o compositor/x3d_geometry.o laser/lsr_enc.o laser/lsr_dec.o laser/lsr_tables.o -lm -L/usr/local/lib -lGL -lGLU -lX11 -lz -lssl -lcrypto -lnssutil3 -L/usr/lib/firefox/ -lxul -lmozsqlite3 -lmozalloc -lnssutil3 -lnss3 -lnspr4 -lsmime3 -lssl3 -ljpeg -lpng -lpthread -ldl
    mv ../bin/gcc/libgpac.so ../bin/gcc/libgpac.so.2.0.0
    ln -sf libgpac.so.2.0.0 ../bin/gcc/libgpac.so.2
    ln -sf libgpac.so.2.0.0 ../bin/gcc/libgpac.so
    make[1]: Leaving directory /home/christian/software/gpac/src'
    make -C applications all
    make[1]: Entering directory
    /home/christian/software/gpac/applications’
    set -e; for i in mp4client mp4box mp42ts ; do make -C $i all; done
    make[2]: Entering directory /home/christian/software/gpac/applications/mp4client'
    gcc -Wl,--warn-common -Wl,-z,defs -o ../../bin/gcc/MP4Client main.o extract.o -L../../bin/gcc -lgpac -lpthread -ldl
    /usr/bin/ld: warning: libxul.so, needed by ../../bin/gcc/libgpac.so, not found (try using -rpath or -rpath-link)
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewCompartmentAndGlobalObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GC'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_ConvertStub’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetRuntimeThread'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_LookupProperty’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddValueRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_StrictPropertyStub’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ShutDown'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_RemoveGCThingRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JSVAL_NULL'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddObjectRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetProperty'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_InitStandardClasses’
    ../../bin/gcc/libgpac.so: undefined reference to JS_CompileFunction'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_CallFunction’
    ../../bin/gcc/libgpac.so: undefined reference to JS_NewStringCopyZ'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DefineFunctions’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddNamedObjectRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_InitClass’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ClearPendingException'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetFunctionId’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ComputeThis'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetOptions’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToFunction'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetPendingException’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddNamedGCThingRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_RemoveObjectRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_RemoveValueRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_RemoveStringRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToString'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetElement’
    ../../bin/gcc/libgpac.so: undefined reference to JS_Init'
    ../../bin/gcc/libgpac.so: undefined reference to
    JSVAL_VOID’
    ../../bin/gcc/libgpac.so: undefined reference to JS_EnumerateStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetContextPrivate’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddGCThingRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_free’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ObjectIsFunction'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddNamedValueRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_IdToValue'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetContextPrivate’
    ../../bin/gcc/libgpac.so: undefined reference to JS_BeginRequest'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetArrayLength’
    ../../bin/gcc/libgpac.so: undefined reference to JS_FinalizeStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_CallFunctionName’
    ../../bin/gcc/libgpac.so: undefined reference to JS_InstanceOf'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewArrayObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_EvaluateScript'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DecompileFunction’
    ../../bin/gcc/libgpac.so: undefined reference to JS_PropertyStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewObjectForConstructor’
    ../../bin/gcc/libgpac.so: undefined reference to JS_DefineProperties'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddNamedStringRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetElement'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_IsExceptionPending’
    ../../bin/gcc/libgpac.so: undefined reference to JS_NewObject'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DestroyContext’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ResolveStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_Finish’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ClearRuntimeThread'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetGlobalObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToNumber'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddStringRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_DefineObject'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_ReportPendingException’
    ../../bin/gcc/libgpac.so: undefined reference to JS_IsRunning'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_EncodeString’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetParent'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewContext’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetPrivate'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DefineProperty’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetPrivate'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_CallFunctionValue’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToObject'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetOptions’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetArrayLength'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_EndRequest’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetErrorReporter'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_ConstructObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_HasProperty'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetClass’
    collect2: ld returned 1 exit status
    make[2]: *** [MP4Client] Error 1
    make[2]: Leaving directory /home/christian/software/gpac/applications/mp4client'
    make[1]: *** [apps] Error 2
    make[1]: Leaving directory
    /home/christian/software/gpac/applications’
    make: *** [all] Error 2

  4. Check that your /etc/ld.so.conf file includes the path to firefox binaries (/usr/lib/firefox), and that this path is the first in the file.

  5. I have followed the above instructions in the post and comments, but I still get the following:
    anders@ubuntu:~/gpac$ ./configure
    Package mozilla-js was not found in the pkg-config search path.
    Perhaps you should add the directory containing `mozilla-js.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘mozilla-js’ found

    System: Ubuntu 12.04

    What should I do?

  6. the same problem with Anders Branderud
    check ~/gpac/config.mak <- seems already link with firefox…

    what should I do?
    —–
    INSTFLAGS=
    CONFIG_JS=firefox
    JS_FLAGS=-DUSE_FFDEV_12 -DSPIDERMONKEY_NEW_API -DXP_UNIX -I/usr/include/firefox
    JS_LIBS=-lnssutil3 -L/usr/lib/firefox/ -lxul -lmozsqlite3 -lmozalloc -lnssutil3 -lnss3 -lnspr4 -lsmime3 -lssl3

  7. i added this:

    -rpath=/usr/lib/firefox

    to LDFLAGS in config.mak and it finally compiled.

  8. As said in this post, you must make sure that your path to libmozjs.so or libxul.so (depending on your FF version) is setup in your LD config (/etc/ld.so.conf). You should set the path to this library BEFORE any other line in the file.

  9. Hello,

    I’ve been trying to install mp4box in my ubuntu 12.04 x86_64 so I followed the procedure outlined here.

    Can’t get a successful make.

    Here’s where make exits with errors:

    make[2]: Entering directory /home/crisr/gpac/modules/sdl_out'
    gcc -shared -Wl,--warn-common -Wl,-z,defs -o ../../bin/gcc/gm_sdl_out.so sdl_out.o audio.o video.o -L/usr/lib/x86_64-linux-gnu -lSDL -L../../bin/gcc -lgpac
    video.o: In function
    SDLVid_Setup’:
    video.c:(.text+0x937): undefined reference to gf_log_tool_level_on'
    video.o: In function
    SDLVid_ProcessEvent’:
    video.c:(.text+0x1aa4): undefined reference to gf_log_tool_level_on'
    video.c:(.text+0x1bfb): undefined reference to
    gf_log_tool_level_on’
    collect2: ld returned 1 exit status
    make[2]: *** [gm_sdl_out.so] Error 1
    make[2]: Leaving directory /home/crisr/gpac/modules/sdl_out'
    make[1]: *** [plugs] Error 2
    make[1]: Leaving directory
    /home/crisr/gpac/modules’
    make: *** [all] Error 2

    Can any one shed a light into the subject?

    Thanks in advance

  10. When I was compiling, I got this error, what shall I do?
    CC ffmpeg_load.c
    /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer’ can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib/libavformat.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status

  11. I tried to follow all guidelines above but ended up with the errors below. If anybody has any suggestion on how to proceed please let me know. Thanks and keep up the great work.
    – Ubuntu 12.04
    angelo@ubuntu:~/gpac$ sudo find / -name libxul.so
    /usr/lib/firefox/libxul.so
    /usr/lib/firefox-devel/sdk/lib/libxul.so
    /usr/lib/thunderbird/libxul.so

    angelo@ubuntu:~/gpac$ cat /etc/ld.so.conf
    include /usr/lib/thunderbird/
    include /usr/lib/firefox
    include /etc/ld.so.conf.d/*.conf

    ERRORS:
    make[2]: Leaving directory /home/angelo/gpac/modules/alsa'
    make[2]: Entering directory
    /home/angelo/gpac/modules/jack’
    make[2]: Leaving directory /home/angelo/gpac/modules/jack'
    make[2]: Entering directory
    /home/angelo/gpac/modules/sdl_out’
    video.o: In function SDLVid_Setup':
    video.c:(.text+0xf7e): undefined reference to
    gf_log_tool_level_on’
    video.o: In function SDLVid_ProcessEvent':
    video.c:(.text+0x222e): undefined reference to
    gf_log_tool_level_on’
    video.c:(.text+0x2370): undefined reference to gf_log_tool_level_on'
    collect2: ld returned 1 exit status
    make[2]: *** [gm_sdl_out.so] Error 1
    make[2]: Leaving directory
    /home/angelo/gpac/modules/sdl_out’
    make[1]: *** [plugs] Error 2
    make[1]: Leaving directory `/home/angelo/gpac/modules’
    make: *** [all] Error 2

  12. I received the same error as zare and Christian.

    I altered the config.mak file with (-rpath=/usr/lib/firefox) so that it read: LDFLAGS= -Wl,–warn-common -Wl,-z,defs -rpath=/usr/lib/firefox
    and it returned an error,
    I also put the firefox version number like the instructions for 11.10 say with no success.

    Jean: Im not sure I understand your instruction, is “/etc/ld.so.conf” a file like “config.mak” that ‘bob the builder’ mentioned that can be edited?
    And if so how do I access it? And how do I set up the path to “libmozjs.so” or “libxul.so”

    I am new to Linux so don’t yet understand/know the commands that do these probably quite simple things, but I am learning 🙂

  13. Hmm this is strange I cannot reproduce this on ubuntu 12.04 32bit / 64bit with the current SVN. Can you give more details on your setup ?

  14. Hi Jean,

    First of all thanks a lot for the DASH tool.
    When I try to compile GPAC with the -rpath=/usr/lib/firefox in the LDFLAGS in config.mak file I get the following error –
    mv ../bin/gcc/libgpac.so ../bin/gcc/libgpac.so…
    ln -sf libgpac.so… ../bin/gcc/libgpac.so.
    ln -sf libgpac.so… ../bin/gcc/libgpac.so
    make[1]: Leaving directory /home/geetha/gpac/src'
    make -C applications all
    make[1]: Entering directory
    /home/geetha/gpac/applications’
    set -e; for i in mp4client mp4box mp42ts ; do make -C $i all; done
    make[2]: Entering directory /home/geetha/gpac/applications/mp4client'
    make[2]: Leaving directory
    /home/geetha/gpac/applications/mp4client’
    make[2]: Entering directory /home/geetha/gpac/applications/mp4box'
    main.c: In function ‘PrintVersion’:
    main.c:172:43: error: expected ‘)’ before ‘GPAC_FULL_VERSION’
    make[2]: *** [main.o] Error 1
    make[2]: Leaving directory
    /home/geetha/gpac/applications/mp4box’
    make[1]: *** [apps] Error 2
    make[1]: Leaving directory `/home/geetha/gpac/applications’
    make: *** [all] Error 2

  15. Hi Jean,

    gcc version – gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
    OS – Linux Ubuntu 12.04

    If I do not use rpath I get the below error during ‘make’

    mv ../bin/gcc/libgpac.so ../bin/gcc/libgpac.so…
    ln -sf libgpac.so… ../bin/gcc/libgpac.so.
    ln -sf libgpac.so… ../bin/gcc/libgpac.so
    make[1]: Leaving directory /home/geetha/gpac/src'
    make -C applications all
    make[1]: Entering directory
    /home/geetha/gpac/applications’
    set -e; for i in mp4client mp4box mp42ts ; do make -C $i all; done
    make[2]: Entering directory /home/geetha/gpac/applications/mp4client'
    /usr/bin/ld: warning: libxul.so, needed by ../../bin/gcc/libgpac.so, not found (try using -rpath or -rpath-link)
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewCompartmentAndGlobalObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GC'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_ConvertStub’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetRuntimeThread'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_LookupProperty’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddValueRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_StrictPropertyStub’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ShutDown'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_RemoveGCThingRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JSVAL_NULL'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddObjectRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetProperty'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_InitStandardClasses’
    ../../bin/gcc/libgpac.so: undefined reference to JS_CompileFunction'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_CallFunction’
    ../../bin/gcc/libgpac.so: undefined reference to JS_NewStringCopyZ'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DefineFunctions’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddNamedObjectRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_InitClass’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ClearPendingException'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetFunctionId’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ComputeThis'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetOptions’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToFunction'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetPendingException’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddNamedGCThingRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_RemoveObjectRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_RemoveValueRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_RemoveStringRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToString'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetElement’
    ../../bin/gcc/libgpac.so: undefined reference to JS_Init'
    ../../bin/gcc/libgpac.so: undefined reference to
    JSVAL_VOID’
    ../../bin/gcc/libgpac.so: undefined reference to JS_EnumerateStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetContextPrivate’
    ../../bin/gcc/libgpac.so: undefined reference to JS_AddGCThingRoot'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_free’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ObjectIsFunction'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddNamedValueRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_IdToValue'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetContextPrivate’
    ../../bin/gcc/libgpac.so: undefined reference to JS_BeginRequest'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetArrayLength’
    ../../bin/gcc/libgpac.so: undefined reference to JS_FinalizeStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_CallFunctionName’
    ../../bin/gcc/libgpac.so: undefined reference to JS_InstanceOf'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewArrayObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_EvaluateScript'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DecompileFunction’
    ../../bin/gcc/libgpac.so: undefined reference to JS_PropertyStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewObjectForConstructor’
    ../../bin/gcc/libgpac.so: undefined reference to JS_DefineProperties'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddNamedStringRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetElement'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_IsExceptionPending’
    ../../bin/gcc/libgpac.so: undefined reference to JS_NewObject'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DestroyContext’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ResolveStub'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_Finish’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ClearRuntimeThread'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetGlobalObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToNumber'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_AddStringRoot’
    ../../bin/gcc/libgpac.so: undefined reference to JS_DefineObject'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_ReportPendingException’
    ../../bin/gcc/libgpac.so: undefined reference to JS_IsRunning'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_EncodeString’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetParent'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_NewContext’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetPrivate'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_DefineProperty’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetPrivate'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_CallFunctionValue’
    ../../bin/gcc/libgpac.so: undefined reference to JS_ValueToObject'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_SetOptions’
    ../../bin/gcc/libgpac.so: undefined reference to JS_GetArrayLength'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_EndRequest’
    ../../bin/gcc/libgpac.so: undefined reference to JS_SetErrorReporter'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_ConstructObject’
    ../../bin/gcc/libgpac.so: undefined reference to JS_HasProperty'
    ../../bin/gcc/libgpac.so: undefined reference to
    JS_GetClass’
    collect2: ld returned 1 exit status
    make[2]: *** [MP4Client] Error 1
    make[2]: Leaving directory /home/geetha/gpac/applications/mp4client'
    make[1]: *** [apps] Error 2
    make[1]: Leaving directory
    /home/geetha/gpac/applications’
    make: *** [all] Error 2

  16. Hi, and I must apologise because I only found out a moment ago that I had an answer from you.

    Well, to be honest I am not quite sure of what was causing those errors. Maybe, a buggy implementation of my system back then, who knows?

    I suspect that what was interfering was ATI brewn drivers.

    Now I use xorg’s edgers (among other things) and… guess what? it compiled and installed (but not until I added the rpath variable to the LDFLAGS macro (???), following the advice from another user up here.

    Either way I am going to post my config.mak file (after addition of rpath).

    Cheers!

    # Automatically generated by configure - do not modify
    GPAC_CONFIGURATION=
    prefix=/usr/local
    DESTDIR=
    moddir=/usr/local/lib/gpac
    moddir_path=/usr/local/lib/gpac
    mandir=/usr/local/man
    tinygl_target_bin_dir=-gcc
    MAKE=make
    CC=@gcc
    AR=@ar
    RANLIB=@ranlib
    STRIP=@strip
    INSTALL=install
    LIBTOOL=libtool
    INSTFLAGS=-p
    OPTFLAGS=-O3 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -fvisibility="hidden" -DGPAC_HAVE_CONFIG_H -I"/home/cris/gpac/gpac"
    CPPFLAGS= -Wall -fno-strict-aliasing -fPIC -DPIC
    LDFLAGS= -Wl,--warn-common -Wl,-z,defs,-rpath=/usr/lib/firefox
    SHFLAGS=-shared
    libdir=lib
    EXTRALIBS=-lm
    VERSION=0.5.1-DEV
    VERSION_MAJOR=2
    VERSION_SONAME=2.0.0
    CONFIG_LINUX=yes
    CONFIG_OS=CONFIG_LINUX
    GPAC_SH_FLAGS=-lpthread -ldl
    DYN_LIB_SUFFIX=so
    INSTFLAGS=
    CONFIG_JS=firefox
    JS_FLAGS=-DUSE_FFDEV_15 -DSPIDERMONKEY_NEW_API -DXP_UNIX -I/usr/include/firefox
    JS_LIBS=-lnssutil3 -L/usr/lib/firefox/ -lxul -lmozsqlite3 -lmozalloc -lnssutil3 -lnss3 -lnspr4 -lsmime3 -lssl3
    CONFIG_ZLIB=system
    CONFIG_FT=system
    CONFIG_JPEG=system
    CONFIG_PNG=system
    CONFIG_JP2=system
    CONFIG_FAAD=system
    CONFIG_MAD=system
    CONFIG_XVID=system
    CONFIG_OGG=system
    CONFIG_VORBIS=system
    CONFIG_THEORA=system
    CONFIG_FFMPEG=system
    ffmpeg_cflags=-I/usr/local/include
    ffmpeg_lflags=-L/usr/local/lib -lavcodec -lavformat -lswscale -lavutil
    CONFIG_FFMPEG_OLD=no
    CONFIG_OSS_AUDIO=yes
    CONFIG_ALSA=yes
    CONFIG_JACK=no
    CONFIG_A52=system
    CONFIG_PULSEAUDIO=yes
    CONFIG_FREENECT=no
    DISABLE_PLAYER=no
    DISABLE_STREAMING=no
    DISABLE_SVG=no
    DISABLE_LASER=no
    DISABLE_SAF=no
    DISABLE_BIFS=no
    DISABLE_SENG=no
    DISABLE_LOADER_ISOFF=no
    DISABLE_LOADER_BT=no
    DISABLE_LOADER_XMT=no
    DISABLE_LOADER_QTVR=no
    DISABLE_LOADER_SWF=no
    DISABLE_SCENE_STATS=no
    DISABLE_SCENE_DUMP=no
    DISABLE_SCENE_ENCODE=no
    DISABLE_SCENEGRAPH=no
    DISABLE_MCRYPT=no
    DISABLE_DVBX=yes
    DISABLE_AVILIB=no
    DISABLE_M2PS=no
    DISABLE_OGG=no
    DISABLE_ISOFF_HINT=no
    DISABLE_VOBSUB=no
    DISABLE_TTXT=no
    DISABLE_SMGR=no
    DISABLE_AV_PARSERS=no
    DISABLE_MEDIA_IMPORT=no
    DISABLE_MEDIA_EXPORT=no
    DISABLE_MPD=no
    DISABLE_DASH_CLIENT=no
    DISABLE_CORE_TOOLS=no
    DISABLE_OD_DUMP=no
    DISABLE_OD_PARSE=no
    MINIMAL_OD=no
    DISABLE_M2TS_MUX=no
    DISABLE_M2TS=no
    GPAC_USE_TINYGL=no
    OGL_INCLS=
    DISABLE_ISOFF=no
    HAS_OPENGL=yes
    OGL_LIBS=-lGL -lGLU -lX11
    ENABLE_JOYSTICK=no
    HAS_OPENSSL=yes
    SSL_LIBS=-lssl -lcrypto
    CONFIG_SDL=yes
    SDL_CFLAGS=-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
    SDL_LIBS=-L/usr/lib/x86_64-linux-gnu -lSDL
    FT_CFLAGS=-I/usr/include/freetype2
    FT_LIBS=-L/usr/lib/x86_64-linux-gnu -lfreetype -lz
    CONFIG_AMR_NB=no
    CONFIG_AMR_NB_FT=no
    CONFIG_AMR_WB_FT=no
    DEBUGBUILD=no
    GPROFBUILD=no
    STATICBUILD=no
    CONFIG_IPV6=yes
    USE_WXWIDGETS=no
    CONFIG_PLATINUM=no
    CONFIG_AVCAP=no
    CONFIG_OPENSVC=no
    MOZILLA_DIR=local
    CONFIG_XUL=no
    LINUX_DVB=yes
    XMLRPC_INC=no
    OSS_INC_TYPE=yes
    OSS_CFLAGS=
    OSS_LDFLAGS=
    CONFIG_DIRECTFB=no
    DIRECTFB_INC_PATH=/usr/include/directfb
    DIRECTFB_LIB=-ldirectfb -lfusion -ldirect
    CONFIG_X11=yes
    USE_X11_SHM=yes
    USE_X11_XV=yes
    X11_LIB_PATH=/usr/X11R6/lib
    X11_INC_PATH=/usr/X11R6/include
    MP4BOX_STATIC=no
    RENOIR_ENABLE=no
    GPAC_ENST=no
    GPAC_ENST_INC=no
    SRC_LOCAL_PATH=yes
    SRC_PATH=/home/cris/gpac/gpac
    LOCAL_INC_PATH=/home/cris/gpac/gpac/extra_lib/include
    %.opic : %.c
    @echo " CC $<"
    $(CC) $(CFLAGS) $(PIC_CFLAGS) -c $< -o $@
    %.o : %.c
    @echo " CC $<"
    $(CC) $(CFLAGS) -c -o $@ $<
    %.o: %.cpp
    @echo " CC $<"
    $(CXX) $(CFLAGS) -c -o $@ $<

  17. I am compiling ffmpeg using these instructions:
    http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide#ffmpeg

    I have tried using –enable-pic or –with-pic options for all the encoders and ffmpeg, but still cannot get gpac to make correctly.

    The last error was:
    /usr/bin/ld: /usr/local/lib/libavcodec.a(lpc.o): relocation R_X86_64_PC32 against symbol `ff_pd_1′ can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value

    Any suggestions? I have tried on two different Ubuntu 12.04 installations.

  18. I got some problem when I compile the gpac. I use Ubuntu12.04 and fallow the step.
    Is there someone know how to fix it?
    This is my error message.
    Thank you

    Linking libgpac
    scenegraph/vrml_smjs.o:vrml_smjs.c:function image_getProperty: error: undefined reference to ‘JS_ConstructObject’
    scenegraph/vrml_smjs.o:vrml_smjs.c:function MFColorConstructor: error: undefined reference to ‘JS_ConstructObject’
    scenegraph/vrml_smjs.o:vrml_smjs.c:function MFRotationConstructor: error: undefined reference to ‘JS_ConstructObject’
    scenegraph/vrml_smjs.o:vrml_smjs.c:function MFVec3fConstructor: error: undefined reference to ‘JS_ConstructObject’
    scenegraph/vrml_smjs.o:vrml_smjs.c:function gf_sg_js_global_object: error: undefined reference to ‘JS_NewCompartmentAndGlobalObject’
    scenegraph/vrml_smjs.o:vrml_smjs.c:function gf_sg_script_init_sm_api: error: undefined reference to ‘JS_NewCompartmentAndGlobalObject’
    collect2: ld returned 1 exit status
    make[1]: *** [libgpac.so] Error 1
    make[1]: Leaving directory `/home/odtone/gpac/src’
    make: *** [all] Error 2

  19. It fix now!!But I got another problem. The problem is same as Cristiano.

    video.o:video.c:function SDLVid_Setup: error: undefined reference to ‘gf_log_tool_level_on’
    video.o:video.c:function SDLVid_ProcessEvent: error: undefined reference to ‘gf_log_tool_level_on’
    video.o:video.c:function SDLVid_ProcessEvent: error: undefined reference to ‘gf_log_tool_level_on’
    collect2: ld returned 1 exit status
    make[2]: *** [gm_sdl_out.so] Error 1
    make[2]: Leaving directory /home/odtone/Desktop/gpac/modules/sdl_out'
    make[1]: *** [plugs] Error 2
    make[1]: Leaving directory
    /home/odtone/Desktop/gpac/modules’
    make: *** [all] Error 2

  20. Hi,

    I am having the following problem when trying to install gpac:

    /usr/include/firefox/jsapi.h:4484:1: note: expected ‘uint32_t’ but argument is of type ‘struct JSFunctionSpec *’
    scenegraph/vrml_smjs.c:4602:57: error: too few arguments to function ‘JS_GetElement’
    /usr/include/firefox/jsapi.h:4484:1: note: declared here
    scenegraph/vrml_smjs.c:4602:8: warning: statement with no effect [-Wunused-value]
    scenegraph/vrml_smjs.c:4604:9: warning: passing argument 1 of ‘JS_GetPrivate’ from incompatible pointer type [enabled by default]
    /usr/include/firefox/jsapi.h:4151:1: note: expected ‘struct JSObject *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c:4604:9: error: too many arguments to function ‘JS_GetPrivate’
    /usr/include/firefox/jsapi.h:4151:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘gf_sg_handle_dom_event_for_vrml’:
    scenegraph/vrml_smjs.c:4657:2: warning: passing argument 1 of ‘JS_GetPrivate’ from incompatible pointer type [enabled by default]
    /usr/include/firefox/jsapi.h:4151:1: note: expected ‘struct JSObject *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c:4657:2: error: too many arguments to function ‘JS_GetPrivate’
    /usr/include/firefox/jsapi.h:4151:1: note: declared here
    scenegraph/vrml_smjs.c:4666:2: warning: passing argument 1 of ‘JS_SetPrivate’ from incompatible pointer type [enabled by default]
    /usr/include/firefox/jsapi.h:4154:1: note: expected ‘struct JSObject *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c:4666:2: error: too many arguments to function ‘JS_SetPrivate’
    /usr/include/firefox/jsapi.h:4154:1: note: declared here
    scenegraph/vrml_smjs.c:4669:2: warning: passing argument 1 of ‘JS_SetPrivate’ from incompatible pointer type [enabled by default]
    /usr/include/firefox/jsapi.h:4154:1: note: expected ‘struct JSObject *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c:4669:2: error: too many arguments to function ‘JS_SetPrivate’
    /usr/include/firefox/jsapi.h:4154:1: note: declared here
    scenegraph/vrml_smjs.c:4686:2: warning: passing argument 1 of ‘JS_SetPrivate’ from incompatible pointer type [enabled by default]
    /usr/include/firefox/jsapi.h:4154:1: note: expected ‘struct JSObject *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c:4686:2: error: too many arguments to function ‘JS_SetPrivate’
    /usr/include/firefox/jsapi.h:4154:1: note: declared here
    scenegraph/vrml_smjs.c: In function ‘gf_sg_js_get_node’:
    scenegraph/vrml_smjs.c:4719:3: warning: passing argument 1 of ‘JS_GetPrivate’ from incompatible pointer type [enabled by default]
    /usr/include/firefox/jsapi.h:4151:1: note: expected ‘struct JSObject *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c:4719:3: error: too many arguments to function ‘JS_GetPrivate’
    /usr/include/firefox/jsapi.h:4151:1: note: declared here
    scenegraph/vrml_smjs.c: At top level:
    scenegraph/vrml_smjs.c:686:13: warning: ‘on_route_to_object’ defined but not used [-Wunused-function]
    make[1]: *** [scenegraph/vrml_smjs.o] Error 1
    make[1]: Leaving directory `/home/zanetworker/DASHEncoder/gpac/src’
    make: *** [all] Error 2

    P.S: I cropped the first part of the output

  21. Hello team, thanks for your work.

    I’m trying to compile on Debian Squeeze with xulrunner-18.0/iceweasel, libmozjs-dev from backports and I’m getting this with the latest source from svn (by the way, I have manage to compile and install IceCat 17 -latest- also, I don’t know if this may interfere in any way):

    $ make
    make -C src all
    make[1]: Entering directory /usr/local/src/gpac/src'
    CC scenegraph/dom_smjs.c
    scenegraph/dom_smjs.c: In function ‘gf_sg_js_event_add_listener’:
    scenegraph/dom_smjs.c:564: warning: implicit declaration of function ‘JSVAL_IS_OBJECT’
    scenegraph/dom_smjs.c: In function ‘xml_http_constructor’:
    scenegraph/dom_smjs.c:2540: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘struct GF_JSClass *’
    scenegraph/dom_smjs.c: In function ‘xml_http_getProperty’:
    scenegraph/dom_smjs.c:3136: error: incompatible type for argument 2 of ‘JS_PropertyStub’
    /usr/include/mozjs/jsapi.h:4254: note: expected ‘JSHandleObject’ but argument is of type ‘struct JSObject *’
    scenegraph/dom_smjs.c:3136: error: incompatible type for argument 3 of ‘JS_PropertyStub’
    /usr/include/mozjs/jsapi.h:4254: note: expected ‘JSHandleId’ but argument is of type ‘jsid’
    scenegraph/dom_smjs.c:3136: error: incompatible type for argument 4 of ‘JS_PropertyStub’
    /usr/include/mozjs/jsapi.h:4254: note: expected ‘JSMutableHandleValue’ but argument is of type ‘union jsval *’
    scenegraph/dom_smjs.c: In function ‘dcci_getProperty’:
    scenegraph/dom_smjs.c:3263: error: incompatible type for argument 2 of ‘JS_PropertyStub’
    /usr/include/mozjs/jsapi.h:4254: note: expected ‘JSHandleObject’ but argument is of type ‘struct JSObject *’
    scenegraph/dom_smjs.c:3263: error: incompatible type for argument 3 of ‘JS_PropertyStub’
    /usr/include/mozjs/jsapi.h:4254: note: expected ‘JSHandleId’ but argument is of type ‘jsid’
    scenegraph/dom_smjs.c:3263: error: incompatible type for argument 4 of ‘JS_PropertyStub’
    /usr/include/mozjs/jsapi.h:4254: note: expected ‘JSMutableHandleValue’ but argument is of type ‘union jsval *’
    scenegraph/dom_smjs.c: In function ‘storage_constructor’:
    scenegraph/dom_smjs.c:3462: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘struct GF_JSClass *’
    scenegraph/dom_smjs.c: In function ‘dom_js_load’:
    scenegraph/dom_smjs.c:3484: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3484: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3484: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3485: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3485: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3485: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3487: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3487: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3489: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3489: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3489: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3491: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3491: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3494: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3494: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3494: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3495: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3495: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3495: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3496: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3496: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3496: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3498: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3498: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3498: warning: assignment from incompatible pointer type
    scenegraph/dom_smjs.c:3508: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3508: warning: (near initialization for ‘nodeFuncs[0].call’)
    scenegraph/dom_smjs.c:3508: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3509: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3510: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3511: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3513: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3515: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3517: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3518: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3519: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3520: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3521: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3523: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3524: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3525: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3526: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3530: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3530: warning: (near initialization for ‘nodeProps[0].getter’)
    scenegraph/dom_smjs.c:3569: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3569: warning: (near initialization for ‘documentFuncs[0].call’)
    scenegraph/dom_smjs.c:3569: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3571: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3572: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3573: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3574: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3575: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3576: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3577: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3578: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3579: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3580: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3581: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3582: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3583: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3585: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3587: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3587: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3587: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3587: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3587: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3589: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3594: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3594: warning: (near initialization for ‘documentProps[0].getter’)
    scenegraph/dom_smjs.c:3613: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3613: warning: (near initialization for ‘elementFuncs[0].call’)
    scenegraph/dom_smjs.c:3613: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3614: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3615: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3616: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3617: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3618: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3619: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3620: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3621: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3622: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3623: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3624: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3625: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3626: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3627: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3628: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3629: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3630: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3632: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3632: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3632: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3632: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3632: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3637: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3637: warning: (near initialization for ‘elementProps[0].getter’)
    scenegraph/dom_smjs.c:3657: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3657: warning: (near initialization for ‘textFuncs[0].call’)
    scenegraph/dom_smjs.c:3660: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3660: warning: (near initialization for ‘textProps[0].getter’)
    scenegraph/dom_smjs.c:3674: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3674: warning: (near initialization for ‘eventFuncs[0].call’)
    scenegraph/dom_smjs.c:3684: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3684: warning: (near initialization for ‘eventProps[0].getter’)
    scenegraph/dom_smjs.c:3753: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3753: warning: (near initialization for ‘nodeListFuncs[0].call’)
    scenegraph/dom_smjs.c:3753: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3757: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3757: warning: (near initialization for ‘nodeListProps[0].getter’)
    scenegraph/dom_smjs.c:3766: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3766: warning: (near initialization for ‘xmlHTTPRequestClassProps[0].getter’)
    scenegraph/dom_smjs.c:3775: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3775: warning: (near initialization for ‘xmlHTTPRequestClassFuncs[0].call’)
    scenegraph/dom_smjs.c:3775: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3776: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3780: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3790: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3790: warning: (near initialization for ‘storageClassProps[0].getter’)
    scenegraph/dom_smjs.c:3793: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3793: warning: (near initialization for ‘storageClassFuncs[0].call’)
    scenegraph/dom_smjs.c:3813: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3813: warning: (near initialization for ‘DCCIClassProps[0].getter’)
    scenegraph/dom_smjs.c:3823: warning: missing braces around initializer
    scenegraph/dom_smjs.c:3823: warning: (near initialization for ‘DCCIClassFuncs[0].call’)
    scenegraph/dom_smjs.c:3823: warning: initialization makes pointer from integer without a cast
    scenegraph/dom_smjs.c:3824: warning: initialization makes pointer from integer without a cast
    make[1]: *** [scenegraph/dom_smjs.o] Error 1
    make[1]: Leaving directory
    /usr/local/src/gpac/src’
    make: *** [all] Error 2

    I also tried downloading the tarball from sourceforge (0.5.0) and it was kinda the same. Although I know very little about this, it seems that it went even worst (it stops a couple of dozen of lines before):

    $ make
    make -C src all
    make[1]: Entering directory /usr/local/src/gpac/src'
    gcc -O3 -Wall -fno-strict-aliasing -Wno-pointer-sign -fvisibility="hidden" -DGPAC_HAVE_CONFIG_H -I"/usr/local/src/gpac" -I"/usr/local/src/gpac/include" -DUSE_FFDEV_12 -DSPIDERMONKEY_NEW_API -DXP_UNIX -DJS_THREADSAFE -I/usr/include/mozjs -I/usr/include/nspr -c -o scenegraph/vrml_smjs.o scenegraph/vrml_smjs.c
    scenegraph/vrml_smjs.c: In function ‘gf_js_remove_root’:
    scenegraph/vrml_smjs.c:95: error: void value not ignored as it ought to be
    scenegraph/vrml_smjs.c:98: error: void value not ignored as it ought to be
    scenegraph/vrml_smjs.c:101: error: void value not ignored as it ought to be
    scenegraph/vrml_smjs.c:104: error: void value not ignored as it ought to be
    scenegraph/vrml_smjs.c: In function ‘gf_sg_js_global_object’:
    scenegraph/vrml_smjs.c:117: warning: implicit declaration of function ‘JS_NewCompartmentAndGlobalObject’
    scenegraph/vrml_smjs.c:117: warning: return makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘gf_sg_js_has_instance’:
    scenegraph/vrml_smjs.c:381: warning: implicit declaration of function ‘JSVAL_IS_OBJECT’
    scenegraph/vrml_smjs.c: In function ‘gf_sg_js_call_gc’:
    scenegraph/vrml_smjs.c:417: warning: passing argument 1 of ‘JS_GC’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:3915: note: expected ‘struct JSRuntime *’ but argument is of type ‘struct JSContext *’
    scenegraph/vrml_smjs.c: In function ‘SFNodeConstructor’:
    scenegraph/vrml_smjs.c:1373: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:1373: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘SFImageConstructor’:
    scenegraph/vrml_smjs.c:1675: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:1675: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘image_getProperty’:
    scenegraph/vrml_smjs.c:1702: warning: implicit declaration of function ‘JS_ConstructObject’
    scenegraph/vrml_smjs.c:1702: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘SFVec2fConstructor’:
    scenegraph/vrml_smjs.c:1791: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:1791: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘SFVec3fConstructor’:
    scenegraph/vrml_smjs.c:1980: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:1980: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘SFRotationConstructor’:
    scenegraph/vrml_smjs.c:2193: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2193: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘SFColorConstructor’:
    scenegraph/vrml_smjs.c:2425: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2425: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFBoolConstructor’:
    scenegraph/vrml_smjs.c:2545: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2545: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFInt32Constructor’:
    scenegraph/vrml_smjs.c:2549: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2549: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFFloatConstructor’:
    scenegraph/vrml_smjs.c:2553: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2553: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFTimeConstructor’:
    scenegraph/vrml_smjs.c:2557: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2557: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFStringConstructor’:
    scenegraph/vrml_smjs.c:2561: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2561: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFURLConstructor’:
    scenegraph/vrml_smjs.c:2565: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2565: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘MFNodeConstructor’:
    scenegraph/vrml_smjs.c:2569: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2569: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c: In function ‘array_setElement’:
    scenegraph/vrml_smjs.c:2671: warning: passing argument 1 of ‘OBJECT_TO_JSVAL’ makes pointer from integer without a cast
    /usr/include/mozjs/jsapi.h:2210: note: expected ‘struct JSObject *’ but argument is of type ‘int’
    scenegraph/vrml_smjs.c: In function ‘array_setLength’:
    scenegraph/vrml_smjs.c:2876: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘MFVec2fConstructor’:
    scenegraph/vrml_smjs.c:2923: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2923: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c:2931: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘MFVec3fConstructor’:
    scenegraph/vrml_smjs.c:2950: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2950: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c:2960: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘MFRotationConstructor’:
    scenegraph/vrml_smjs.c:2979: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:2979: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c:2989: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘MFColorConstructor’:
    scenegraph/vrml_smjs.c:3008: warning: passing argument 2 of ‘JS_NewObjectForConstructor’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:6231: note: expected ‘struct JSClass *’ but argument is of type ‘union jsval *’
    scenegraph/vrml_smjs.c:3008: error: too few arguments to function ‘JS_NewObjectForConstructor’
    scenegraph/vrml_smjs.c:3018: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘gf_sg_script_init_sm_api’:
    scenegraph/vrml_smjs.c:3071: error: ‘JS_FinalizeStub’ undeclared (first use in this function)
    scenegraph/vrml_smjs.c:3071: error: (Each undeclared identifier is reported only once
    scenegraph/vrml_smjs.c:3071: error: for each function it appears in.)
    scenegraph/vrml_smjs.c:3071: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3074: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3077: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3080: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3080: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3080: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3080: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3083: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3083: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3083: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3083: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3086: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3086: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3086: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3086: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3089: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3089: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3089: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3089: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3092: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3092: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3092: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3092: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3095: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3095: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3095: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3095: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3098: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3098: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3098: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3098: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3101: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3101: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3101: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3101: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3104: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3104: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3104: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3104: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3107: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3107: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3107: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3107: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3110: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3110: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3110: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3110: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3113: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3113: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3113: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3113: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3116: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3116: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3116: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3116: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3119: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3119: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3119: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3119: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3122: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3122: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3122: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3122: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3125: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3125: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3125: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3125: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3128: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3128: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3128: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3128: warning: assignment from incompatible pointer type
    scenegraph/vrml_smjs.c:3138: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3138: warning: (near initialization for ‘globalFunctions[0].call’)
    scenegraph/vrml_smjs.c:3158: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3158: warning: (near initialization for ‘browserFunctions[0].call’)
    scenegraph/vrml_smjs.c:3163: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3164: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3165: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3166: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3167: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3168: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3169: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3170: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3171: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3174: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3175: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3183: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3183: warning: (near initialization for ‘SFNodeMethods[0].call’)
    scenegraph/vrml_smjs.c:3186: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3187: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3188: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3189: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3190: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3195: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3195: warning: (near initialization for ‘SFNodeProps[0].getter’)
    scenegraph/vrml_smjs.c:3202: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3202: warning: (near initialization for ‘SFVec2fProps[0].getter’)
    scenegraph/vrml_smjs.c:3207: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3207: warning: (near initialization for ‘SFVec2fMethods[0].call’)
    scenegraph/vrml_smjs.c:3207: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3208: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3209: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3211: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3213: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3222: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3222: warning: (near initialization for ‘SFVec3fProps[0].getter’)
    scenegraph/vrml_smjs.c:3228: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3228: warning: (near initialization for ‘SFVec3fMethods[0].call’)
    scenegraph/vrml_smjs.c:3228: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3229: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3230: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3232: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3234: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3235: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3244: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3244: warning: (near initialization for ‘SFRotationProps[0].getter’)
    scenegraph/vrml_smjs.c:3251: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3251: warning: (near initialization for ‘SFRotationMethods[0].call’)
    scenegraph/vrml_smjs.c:3251: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3252: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3253: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3255: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3264: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3264: warning: (near initialization for ‘SFColorProps[0].getter’)
    scenegraph/vrml_smjs.c:3270: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3270: warning: (near initialization for ‘SFColorMethods[0].call’)
    scenegraph/vrml_smjs.c:3270: warning: initialization makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3279: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3279: warning: (near initialization for ‘SFImageProps[0].getter’)
    scenegraph/vrml_smjs.c:3290: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3290: warning: (near initialization for ‘MFArrayProp[0].getter’)
    scenegraph/vrml_smjs.c:3290: warning: initialization from incompatible pointer type
    scenegraph/vrml_smjs.c:3290: warning: initialization from incompatible pointer type
    scenegraph/vrml_smjs.c:3291: warning: initialization from incompatible pointer type
    scenegraph/vrml_smjs.c:3291: warning: initialization from incompatible pointer type
    scenegraph/vrml_smjs.c:3295: warning: missing braces around initializer
    scenegraph/vrml_smjs.c:3295: warning: (near initialization for ‘MFArrayMethods[0].call’)
    scenegraph/vrml_smjs.c: In function ‘gf_sg_script_to_smjs_field’:
    scenegraph/vrml_smjs.c:3907: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3918: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3929: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3940: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3951: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3963: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3982: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:3996: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:4010: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:4024: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c:4040: warning: assignment makes pointer from integer without a cast
    scenegraph/vrml_smjs.c: In function ‘JS_InitScriptFields’:
    scenegraph/vrml_smjs.c:4239: warning: passing argument 6 of ‘JS_DefineProperty’ from incompatible pointer type
    /usr/include/mozjs/jsapi.h:4458: note: expected ‘JSStrictPropertyOp’ but argument is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, jsid, JSBool, union jsval *)’
    make[1]: *** [scenegraph/vrml_smjs.o] Error 1
    make[1]: Leaving directory
    /usr/local/src/gpac/src’
    make: *** [all] Error 2

    Any kind of help will be greatly appreciated.

  22. I got this error while palying .mp4 file in MP4Client
    can help me what is the correct solution ??
    MP4Box is working fine.

    maheshv@maheshv:~$ MP4Client canvas.mp4
    Using config file in /home/maheshv directory
    Loading modules
    Modules Found (27 in dir /usr/lib/gpac)
    Loading GPAC Terminal
    [Core] Plugin X11 Video Output not found in 27 modules.
    Failed to load module X11 Video Output, no video driver.
    Failed to create compositor->video_out, did not find any suitable driver.[Compositor] Failed to initialize compositor: I/O Error
    GF_COMPOSITOR_THREAD_INIT_FAILED : Deleting compositor.
    [Terminal] Failed to create Compositor.

    Init error – check you have at least one video out and one rasterizer…
    Found modules:
    Available modules:
    gm_bifs_dec.so
    gm_soft_raster.so
    gm_alsa.so
    gm_isom_in.so
    gm_jack.so
    gm_timedtext.so
    gm_ffmpeg_in.so
    gm_ogg_xiph.so
    gm_saf_in.so
    gm_ctx_load.so
    gm_raw_out.so
    gm_laser_dec.so
    gm_rtp_in.so
    gm_aac_in.so
    gm_ismacryp.so
    gm_mp3_in.so
    gm_ft_font.so
    gm_img_in.so
    gm_mpegts_in.so
    gm_xvid_dec.so
    gm_sdl_out.so
    gm_svg_in.so
    gm_x11_out.so
    gm_odf_dec.so
    gm_oss_audio.so
    gm_dummy_in.so
    gm_ac3_in.so

    FYI:
    GPAC source
    1. svn co https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac gpac
    2. copied libjs.a to ../gpac/extra_lib/lib/gcc
    3.ldconfig
    4../configure
    5.make
    6.make install

    Thanks..

  23. I got this error while playing .mp4 file in MP4Client
    can help me what is the correct solution ??
    MP4Box is working fine.

    maheshv@maheshv:~$ MP4Client canvas.mp4
    Using config file in /home/maheshv directory
    Loading modules
    Modules Found (27 in dir /usr/lib/gpac)
    Loading GPAC Terminal
    [Core] Plugin X11 Video Output not found in 27 modules.
    Failed to load module X11 Video Output, no video driver.
    Failed to create compositor->video_out, did not find any suitable driver.[Compositor] Failed to initialize compositor: I/O Error
    GF_COMPOSITOR_THREAD_INIT_FAILED : Deleting compositor.
    [Terminal] Failed to create Compositor.

    Init error – check you have at least one video out and one rasterizer…
    Found modules:
    Available modules:
    gm_bifs_dec.so
    gm_soft_raster.so
    gm_alsa.so
    gm_isom_in.so
    gm_jack.so
    gm_timedtext.so
    gm_ffmpeg_in.so
    gm_ogg_xiph.so
    gm_saf_in.so
    gm_ctx_load.so
    gm_raw_out.so
    gm_laser_dec.so
    gm_rtp_in.so
    gm_aac_in.so
    gm_ismacryp.so
    gm_mp3_in.so
    gm_ft_font.so
    gm_img_in.so
    gm_mpegts_in.so
    gm_xvid_dec.so
    gm_sdl_out.so
    gm_svg_in.so
    gm_x11_out.so
    gm_odf_dec.so
    gm_oss_audio.so
    gm_dummy_in.so
    gm_ac3_in.so

    FYI:
    using Ubuntu 11.10 64-bit
    maheshv@maheshv:~$cat .gpacrc
    [General]
    ModulesDirectory = /usr/lib/gpac
    CacheDirectory=/tmp
    StartupFile=/usr/local/share/gpac/gui/gui.bt
    [Compositor]
    Raster2D=GPAC 2D Raster
    AntiAlias=All
    FrameRate=30.0
    EmulatePOW2=yes
    ScalableZoom=yes
    DrawMode=defer
    BoundingVolume=None
    DepthScale=100
    DepthType=VertexArray
    NumViews=1
    StereoType=none
    CameraLayout=OffAxis
    EyeSeparation=6.3
    FocusDistance=0
    ——–
    GPAC source
    1. svn co https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac gpac
    2. I copied libjs.a to ../gpac/extra_lib/lib/gcc
    3.ldconfig
    4../configure
    5.make
    6.make install

    Thanks..

  24. Hello, My errors are as follows in ubuntu 12.04:
    ffmpeg_in.h:123:17: 错误: ‘AVCODEC_MAX_AUDIO_FRAME_SIZE’未声明(不在函数内)
    What should I do now?Please help me, thanks a lot!!!

  25. Hello.when I compile GPAC with make, the errors are as follows:
    ffmpeg_in.h:123:17: error: ‘AVCODEC_MAX_AUDIO_FRAME_SIZE’undefined(not within the function)
    what should I do now?Please help me ,thanks a lot .

  26. I am Getting following errors while compiling.
    user@ubuntu:~/gpac$ ./configure
    Package no was not found in the pkg-config search path.
    Perhaps you should add the directory containing no.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'no' found
    Package no was not found in the pkg-config search path.
    Perhaps you should add the directory containing
    no.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘no’ found
    error: zlib not found on system or in local libs

  27. Hi,

    I installed :
    – ffmpeg using git (version N-54232-g7eb6eb0)
    – gpac using svn (revision 4614)

    When running the make command, I got errors :
    libav/include/libavformat/avformat.h:403:18: error: field ‘audio_codec’ has incomplete type
    libav/include/libavformat/avformat.h:404:18: error: field ‘video_codec’ has incomplete type
    libav/include/libavformat/avformat.h:427:18: error: field ‘subtitle_codec’ has incomplete type
    In file included from audio_decoder.h:29:0,
    from audio_decoder.c:26:
    libav/include/libavformat/avformat.h:1029:18: error: field ‘video_codec_id’ has incomplete type
    libav/include/libavformat/avformat.h:1035:18: error: field ‘audio_codec_id’ has incomplete type
    libav/include/libavformat/avformat.h:1041:18: error: field ‘subtitle_codec_id’ has incomplete type

    Any help would be very appreciated.

    Thanks,
    Chris

Comments are closed.