FFMPEG Understanding(7. How to solve the issue of searching path?)
来源:互联网 发布:arduino串口发送数据 编辑:程序博客网 时间:2024/05/16 01:00
FFMPEG Understanding(7. How to solve theissue of searching path?)
How tobuild the environment of MSYS for the crossing compiler? has described theway to build the MSYS, and it is well to deal with the compiling issue ofFFMPEG. However, it has natural flaw to integrate multi-gcc compiler in thesame time, so How tobuild the environment of MSYS in the windows? provides a better solution toovercome the form disadvantages. For a good sample of the above article, thereare PKG_CONFIG_PATH and PERLIB environment variables to be declaredfor the appropriate searching path.
StepD03: Edit /etc/profile and add “exportPKG_CONFIG_PATH=/lib/pkgconfig:/mingw/lib/pkgconfig:$PKG_CONFIG_PATH”
StepD04: Edit /etc/profile and add "exportPERLLIB=/usr/share/autoconf/Autom4te:/usr/share/automake-1.9:$PERLLIB"
The same situation is found when buildingFFMPEG because it depends on the extension libraries located in the ‘/lib’folder, but unfortunately, it does not been included to search in the GCC.
How to add theadditional path for searching?
1. Use parameters of configuration. Fox example,--extra-cflags=’-I/include’ --extra-ldflags=’-L/lib’ --extra-libs=’-lXXX’ whenexecuting configurecommand.
It seems that it is good solution to fix it, but I do notlike typing so many characters when compiling all programs utilizing the ‘/lib’folder.
Now, the problem is whether I can take a better measure todo it once for ever! Yes, please refer to solution 2.
2. Add the environment variables to notify of GCC wherethere are.
Open ‘/etc/profile’, and add two entries asfollows.
export C_INCLUDE_PATH=.:/include:/mingw/include:$C_INCLUDE_PATH
export LIBRARY_PATH=.:/lib:/mingw/lib:$LIBRARY_PATH
--- C_INCLUDE_PATH indicates where the header files are.
--- LIBRARY_PATH points out the home of the libraries ofheader files.
Here, compiling it again. What’s happen:- )?
[Summarization]
1. The two solutions are based on the MSY established by How tobuild the environment of MSYS in the windows?. If the configuration isdifferent, maybe there are no any issues in these aspects.
2. When the alternative is available, we should select themore valuable option for future. In our case, I prefer option2.
3. Familiar with GCC is very important to set theenvironment variables. It needs track GCC to gain more in our daily activities.Simple words – constantly self-building!
- FFMPEG Understanding(7. How to solve the issue of searching path?)
- How to solve the issue of RSARTE's starting problem
- How to solve this issue?
- TO SOLVE THE ISSUE OF MySQLStartupItem.pkg missing from MySQL DMG
- FFmpeg Understanding(6.How to compile and install external libs of FFMPEG?)
- How to solve performance issue while inquiring material transaction distribution?
- FFmpeg Understanding(2. Where to download the source code of FFMPEG?)
- How to solve issues of configuring osg
- how to solve the problem we met?
- How to solve the Candy problem?
- FFmpeg Understanding(3. How to compile FFMPEG in Windows?)
- FFmpeg Understanding(5. How to install GSM lib for FFMPEG?)
- Tips: How to resolve the issue of MySQL about abnormal login after system launched.
- How to solve the "undefined reference to '__sync_sub_and_fetch_4'" compilation problem
- How to solve the "undefined reference to '__sync_sub_and_fetch_4'" compilation problem
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- Solve the issue: ORA-29701 :unable to connect to Cluster Manager
- Oracle数据导入导出imp/exp命令 10g以上expdp/impdp命令
- 原子性
- Java 面试题及其答案2009-8-5
- tomcat下jsp嵌入applet找不着类的解决方案
- 关闭指定的窗口 from Visual Studio论坛
- FFMPEG Understanding(7. How to solve the issue of searching path?)
- 一个格式化CSS的好网站
- 急性生理学与慢性健康状况评分
- 马云 + 史玉柱的40条经典语录
- 分页查询&&top后面的参数
- struts技巧集锦
- IE6 png 透明 (三种解决方法)
- 中文拼音排序
- asp.net 回发或回调参数无效。在配置中使用 或在页面中使用 启用了事件验证。出于安全目的