Skip to content

Commit

Permalink
doc: linking issue on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Jun 24, 2013
1 parent cd657d7 commit 48484e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/BuildQtAV-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 19,10 @@ unix shell环境下的 gcc (也包括环境中有sh.exe的mingw环境):
export CPATH=ffmpeg_path/include:portaudio_path/include:$CPATH
export LIBRARY_PATH=ffmpeg_path/include:portaudio_path/lib:$LIBRARY_PATH

由于包含 libQtAV.pri 的工程不会添加 FFmpeg 等相关的链接参数,所以链接器可能会从 $LD_LIBRARY_PATH 中去找 QtAV 库的依赖库:

export LD_LIBRARY_PATH=ffmpeg_path/lib:portaudio_path/lib:$LD_LIBRARY_PATH

windows 无sh.exe的环境下的 gcc

set CPATH=ffmpeg_path\include;portaudio_path\include;%CPATH%
Expand Down
4 changes: 4 additions & 0 deletions doc/BuildQtAV.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 19,10 @@ gcc in unix shell environment(including mingw with sh.exe):
export CPATH=ffmpeg_path/include:portaudio_path/include:$CPATH
export LIBRARY_PATH=ffmpeg_path/include:portaudio_path/lib:$LIBRARY_PATH

The project includes libQtAV.pri will not add linking options about FFmpeg etc., so the linker may find the depended libraries from $LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=ffmpeg_path/lib:portaudio_path/lib:$LD_LIBRARY_PATH

gcc in windows cmd environment without sh.exe

set CPATH=ffmpeg_path\include;portaudio_path\include;%CPATH%
Expand Down

0 comments on commit 48484e2

Please sign in to comment.