Skip to content


x264 compile – isomedia.h not found

Right, so after installing gpac, then you try installing x264. Figure it out that you need to install the gpac libs before compiling x264:

gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_LINUX -DHAVE_PTHREAD -s -fomit-frame-pointer -c -o x264.o x264.c gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86 -DSYS_LINUX -DHAVE_PTHREAD -s -fomit-frame-pointer -c -o muxers.o muxers.c

muxers.c:43:27: error: gpac/isomedia.h: No such file or directory
muxers.c:550: error: syntax error before âGF_ISOFileâ
muxers.c:550: warning: no semicolon at end of struct or union
muxers.c:551: warning: type defaults to âintâ in declaration of âp_configâ
muxers.c:551: warning: data definition has no type or storage class
muxers.c:552: error: syntax error before â*â token
muxers.c:552: warning: type defaults to âintâ in declaration of âp_sampleâ
muxers.c:552: warning: data definition has no type or storage class
muxers.c:561: error: syntax error before â}â token
muxers.c:561: warning: type defaults to âintâ in declaration of âmp4_tâ
muxers.c:561: warning: data definition has no type or storage class
muxers.c:564: error: syntax error before â*â token
muxers.c: In function ârecompute_bitrate_mp4â:
muxers.c:566: error: âu32â undeclared (first use in this function)
muxers.c:566: error: (Each undeclared identifier is reported only once
muxers.c:566: error: for each function it appears in.)
muxers.c:566: error: syntax error before âiâ
muxers.c:567: error: âu64â undeclared (first use in this function)
muxers.c:568: error: âDoubleâ undeclared (first use in this function)
muxers.c:569: error: âGF_ESDâ undeclared (first use in this function)
muxers.c:569: error: âesdâ undeclared (first use in this function)
muxers.c:571: warning: implicit declaration of function âgf_isom_get_esdâ
muxers.c:571: error: âp_fileâ undeclared (first use in this function)
muxers.c:576: error: ârateâ undeclared (first use in this function)
muxers.c:576: error: âtime_wndâ undeclared (first use in this function)
muxers.c:578: error: âtimescaleâ undeclared (first use in this function)

muxers.c:578: warning: implicit declaration of function âgf_isom_get_media_timescaleâ

muxers.c:579: error: âcountâ undeclared (first use in this function)

muxers.c:579: warning: implicit declaration of function âgf_isom_get_sample_countâ

muxers.c:580: error: âiâ undeclared (first use in this function)
muxers.c:581: error: âGF_ISOSampleâ undeclared (first use in this function)
muxers.c:581: error: âsampâ undeclared (first use in this function)

muxers.c:581: warning: implicit declaration of function âgf_isom_get_sample_infoâ

muxers.c:581: error: âdiâ undeclared (first use in this function)
muxers.c:581: error: âoffsetâ undeclared (first use in this function)
muxers.c:594: warning: implicit declaration of function âgf_isom_sample_delâ
muxers.c:597: error: âbrâ undeclared (first use in this function)
muxers.c:597: error: âs64â undeclared (first use in this function)
muxers.c:597: error: syntax error before âgf_isom_get_media_durationâ

muxers.c:604: warning: implicit declaration of function âgf_isom_change_mpeg4_descriptionâ

muxers.c:605: warning: implicit declaration of function âgf_odf_desc_delâ
muxers.c:605: error: âGF_Descriptorâ undeclared (first use in this function)
muxers.c:605: error: syntax error before â)â token
muxers.c: In function âclose_file_mp4â:
muxers.c:611: error: âp_mp4â undeclared (first use in this function)
muxers.c:611: error: syntax error before â)â token
muxers.c:617: warning: implicit declaration of function âgf_odf_avc_cfg_delâ

muxers.c:630: warning: implicit declaration of function âgf_isom_set_pl_indicationâ muxers.c:630: error: âGF_ISOM_PL_VISUALâ undeclared (first use in this function) muxers.c:631: warning: implicit declaration of function âgf_isom_set_storage_modeâ muxers.c:631: error: âGF_ISOM_STORE_FLATâ undeclared (first use in this function)

muxers.c:632: warning: implicit declaration of function âgf_isom_closeâ
muxers.c: In function âopen_file_mp4â:
muxers.c:642: error: âp_mp4â undeclared (first use in this function)
muxers.c:646: error: syntax error before â)â token
muxers.c:650: warning: implicit declaration of function âgf_isom_openâ

muxers.c:650: error: âGF_ISOM_OPEN_WRITEâ undeclared (first use in this function)

muxers.c:652: warning: implicit declaration of function âgf_isom_sample_newâ

muxers.c:658: warning: implicit declaration of function âgf_isom_set_brand_infoâ muxers.c:658: error: âGF_ISOM_BRAND_AVC1â undeclared (first use in this function)

muxers.c: In function âset_param_mp4â:
muxers.c:668: error: âp_mp4â undeclared (first use in this function)
muxers.c:668: error: syntax error before â)â token
muxers.c:670: warning: implicit declaration of function âgf_isom_new_trackâ

muxers.c:670: error: âGF_ISOM_MEDIA_VISUALâ undeclared (first use in this function)

muxers.c:673: warning: implicit declaration of function âgf_odf_avc_cfg_newâ

muxers.c:674: warning: implicit declaration of function âgf_isom_avc_config_newâ muxers.c:677: warning: implicit declaration of function âgf_isom_set_track_enabledâ muxers.c:679: warning: implicit declaration of function âgf_isom_set_visual_infoâ

muxers.c: In function âwrite_nalu_mp4â:
muxers.c:699: error: âp_mp4â undeclared (first use in this function)
muxers.c:699: error: syntax error before â)â token

muxers.c:700: error: âGF_AVCConfigSlotâ undeclared (first use in this function)

muxers.c:700: error: âp_slotâ undeclared (first use in this function)
muxers.c:714: error: syntax error before â)â token
muxers.c:718: warning: implicit declaration of function âgf_list_addâ
muxers.c:728: error: syntax error before â)â token

muxers.c:736: warning: implicit declaration of function âgf_isom_avc_config_updateâ

muxers.c: In function âset_eop_mp4â:
muxers.c:759: error: âp_mp4â undeclared (first use in this function)
muxers.c:759: error: syntax error before â)â token
muxers.c:767: warning: implicit declaration of function âgf_isom_add_sampleâ
make: *** [muxers.o] Error 1

So the thing is :
cd /path/to/gpac
make install-lib
make install
cd /path/to/x264
start recompiling x264 and it works.
Tags: , , , ,

Ar mai trebui sa citesti si ...

Posted in Tutorials - cPanel.

Tagged with , , , .


5 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. latest-mtv says

    Ba tu poti sa lucrezi cu muzica?adica sa cante mzica cand lucrezi?si o dai tare?la casti sau la boxe?…intreb doar din curiozitate :) )..

  2. admin says

    boxe. tare. bass mult.

  3. Programare Sociala says

    Phuaiiii… x264? ?sta e juma de codec, adic? doar ce ?ine de partea de encodare video. Right? :D

  4. Programare Sociala says

    Poate printre 2-3 recompilari de x264 setezi si suport UTF-8 la blog sau baza de date…

  5. admin says

    da mah iti setez suport de utf8 ufffffff



Some HTML is OK

or, reply to this post via trackback.

CommentLuv Enabled