Skip to content

Commit 48484e2

Browse files
committed
doc: linking issue on linux
1 parent cd657d7 commit 48484e2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/BuildQtAV-zh_CN.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ unix shell环境下的 gcc (也包括环境中有sh.exe的mingw环境):
1919
export CPATH=ffmpeg_path/include:portaudio_path/include:$CPATH
2020
export LIBRARY_PATH=ffmpeg_path/include:portaudio_path/lib:$LIBRARY_PATH
2121

22+
由于包含 libQtAV.pri 的工程不会添加 FFmpeg 等相关的链接参数,所以链接器可能会从 $LD_LIBRARY_PATH 中去找 QtAV 库的依赖库:
23+
24+
export LD_LIBRARY_PATH=ffmpeg_path/lib:portaudio_path/lib:$LD_LIBRARY_PATH
25+
2226
windows 无sh.exe的环境下的 gcc
2327

2428
set CPATH=ffmpeg_path\include;portaudio_path\include;%CPATH%

doc/BuildQtAV.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ gcc in unix shell environment(including mingw with sh.exe):
1919
export CPATH=ffmpeg_path/include:portaudio_path/include:$CPATH
2020
export LIBRARY_PATH=ffmpeg_path/include:portaudio_path/lib:$LIBRARY_PATH
2121

22+
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:
23+
24+
export LD_LIBRARY_PATH=ffmpeg_path/lib:portaudio_path/lib:$LD_LIBRARY_PATH
25+
2226
gcc in windows cmd environment without sh.exe
2327

2428
set CPATH=ffmpeg_path\include;portaudio_path\include;%CPATH%

0 commit comments

Comments
 (0)