因为项目需要使用MP4Box给视频文件加hint,所以需要在linux下编译gpac。
原来在32位系统上./configure make 没啥问题,结果早上换了个64位的机器死活编译不过,
报如下错误:
s.opic -lm -L/usr/local/lib -lz -ljpeg -lpthread -ldl
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libz.a(gzio.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libgpac.so] Error 1
make[1]: Leaving directory `/root/mayl/bin/gpac/src'
make: *** [lib] Error 2
xmidc_dm_nrc1:~/mayl/bin/gpac #
经过多次试验排错,发现链接的时候使用了32位的libz去链接,导致函数地址找不到,链接不成功。
后修改src/Makefile底下的
EXTRALIBS+=-L$(prefix)/lib
改成
EXTRALIBS+=-L$(prefix)/lib64后解决。
具体的出处请参考如下链接
http://www.howtoforge.com/forums/archive/index.php/t-4276.html
分享到:
相关推荐
此代码在0.4.0的基础上进行修改过,可以直接在海思hisiv300工具链编译成功,可以在海思3516A平台上运行。
You may find here some recent GPAC installers for various platforms. These installers are distributed for educational purposes only, and may not be redistributed.
GPAC is a multimedia framework oriented towards rich media and distributed under the LGPL license (see COPYING). GPAC supports many multimedia formats, from simple audiovisual containers (avi, mov, ...
对数据库的使用方式进行了修改,使得开源软件能够支持分布式的访问。
使用gpac库封装H264和H265格式的视频流和AAC格式的音频流,输出mp4文件。版权声明:转载请注明出处,如有错漏之处,敬请指正。 https://blog.csdn.net/weixin_43549602/article/details/84571906
gpac安装包及说明
You may find here some recent GPAC installers for various platforms. These installers are distributed for educational purposes only, and may not be redistributed.
node-gpac-dash, 使用GPAC实现DASH流的NodeJS模块 低延迟网络服务器基于nodejs的代码来运行web服务器以提供mpeg的内容,特别是MP4Box或者DashCast生成的。 服务器能够实现低延迟流。 本文详细介绍了中的。 如果你想...
GPAC.Framework.Setup-0.5.2-DEV-rev29-gf75a006-master-win32
使用gpac库封装H264和H265格式的码流,输出mp4文件,原创资源,谢绝转载,如有疑问,欢迎到LiaoJunXiong的博客留言
gpac 工具gpac_0.5.2-DEV-latest-master_i386.deb
gpac库把H265与AAC封装成MP4的接口(新),https://blog.csdn.net/LLL347/article/details/85886975
x264支持MP4需要的第三方开源库
gpac-0.4.5.tar.gz mp4box 依赖
windows编译的live555库,采用vs2010编译,win32平台,测试使用无问题。
gpac_extra_libs-0.4.5.tar.gz gpac-0.4.5.tar.gz
GPAC的接口函数描述,主要讲述MP4文件格式封装接口
gpac_extra_libs-0.4.5+gpac-0.4.5
基于Hi3510V101的libmp4封装gpac源码例程,实现在Hi3519V101平台下将H264裸流转为mp4文件
gpac_extra_libs-0.4.5.tar.gz。MP4BOX的外部库