Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
29c3d42b
Commit
29c3d42b
authored
17 years ago
by
Víctor Paesa
Browse files
Options
Downloads
Patches
Plain Diff
Leverage MinGW's llrint() in Cygwin compilations.
Originally committed as revision 10878 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e76e2bbc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/general.texi
+13
-4
13 additions, 4 deletions
doc/general.texi
with
13 additions
and
4 deletions
doc/general.texi
+
13
−
4
View file @
29c3d42b
...
...
@@ -530,27 +530,36 @@ Then you can easily test FFmpeg with Wine
@subsection Compilation under Cygwin
Cygwin works very much like Unix.
The main issue with Cygwin is that newlib, its C library, does not
contain llrint
()
. However, it is possible to leverage the
implementation in MinGW.
Just install your Cygwin with all the "Base" packages, plus the
following "Devel" ones:
@example
binutils, gcc
-
core, make, subversion
binutils, gcc
-
core, make, subversion
, mingw
-
runtime
@end example
Do not install binutils
-
20060709
-
1
(
they are buggy on shared builds
)
;
use binutils
-
20050610
-
1
instead.
Then create a small library that just contains llrint
()
:
@example
ar x
/
usr
/
lib
/
mingw
/
libmingwex.a llrint.o
ar cq
/
usr
/
local
/
lib
/
libllrint.a llrint.o
@end example
Then run
@example
.
/
configure
--
enable
-
static
--
disable
-
shared
.
/
configure
--
enable
-
static
--
disable
-
shared
--
extra
-
ldflags
=
'
-
L
/
usr
/
local
/
lib'
--
extra
-
libs
=
'
-
l llrint'
@end example
to make a static build or
@example
.
/
configure
--
enable
-
shared
--
disable
-
static
.
/
configure
--
enable
-
shared
--
disable
-
static
--
extra
-
ldflags
=
'
-
L
/
usr
/
local
/
lib'
--
extra
-
libs
=
'
-
l llrint'
@end example
to build shared libraries.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment