Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b34ce5a2
Commit
b34ce5a2
authored
Jul 11, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faq: explain dependency problems with static libs.
parent
30549294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
faq.texi
doc/faq.texi
+18
-0
No files found.
doc/faq.texi
View file @
b34ce5a2
...
...
@@ -383,6 +383,24 @@ Yes, as long as the code is optional and can easily and cleanly be placed
under #if CONFIG
_
GPL without breaking anything. So, for example, a new codec
or filter would be OK under GPL while a bug fix to LGPL code would not.
@section I'm using FFmpeg from within my C application but the linker complains about missing symbols from the libraries themselves.
FFmpeg builds static libraries by default. In static libraries, dependencies
are not handled. That has two consequences. First, you must specify the
libraries in dependency order: @code
{
-lavdevice
}
must come before
@code
{
-lavformat
}
, @code
{
-lavutil
}
must come after everything else, etc.
Second, external libraries that are used in FFmpeg have to be specified too.
An easy way to get the full list of required libraries in dependency order
is to use @code
{
pkg-config
}
.
@example
c99 -o program program.c
$
(
pkg
-
config
--
cflags
--
libs libavformat libavcodec
)
@end example
See @file
{
doc
/
example
/
Makefile
}
and @file
{
doc
/
example
/
pc
-
uninstalled
}
for
more details.
@section I'm using FFmpeg from within my C
++
application but the linker complains about missing symbols which seem to be available.
FFmpeg is a pure C project, so to use the libraries within your C
++
application
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment