Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
1b14c4ee
Commit
1b14c4ee
authored
Mar 25, 2010
by
Dave Partyka
Browse files
BUG: attempting to fix issues reported by Sven and Arnaud.
parent
e4cc341d
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMake/FindFFMPEG.cmake
View file @
1b14c4ee
...
...
@@ -54,7 +54,7 @@ ENDIF( NOT FFMPEG_INCLUDE_DIR )
# we want the -I include line to use the parent directory of ffmpeg as
# ffmpeg uses relative includes such as <ffmpeg/avformat.h> or <libavcodec/avformat.h>
get_filename_component
(
FFMPEG_INCLUDE_DIR
${
FFMPEG_INCLUDE_DIR
}
PATH
)
get_filename_component
(
FFMPEG_INCLUDE_DIR
${
FFMPEG_INCLUDE_DIR
}
ABSOLUTE
)
FIND_LIBRARY
(
FFMPEG_avformat_LIBRARY avformat
/usr/local/lib
...
...
CMake/vtkTestFFMPEG.cmake
View file @
1b14c4ee
IF
(
FFMPEG_INCLUDE_DIR
)
#
IF("VTK_FFMPEG_HAS_OLD_HEADER" MATCHES "^VTK_FFMPEG_HAS_OLD_HEADER$" OR NOT "VTK_FFMPEG_CACHED_INCLUDE" MATCHES "^${FFMPEG_INCLUDE_DIR}$")
IF
(
"VTK_FFMPEG_HAS_OLD_HEADER"
MATCHES
"^VTK_FFMPEG_HAS_OLD_HEADER$"
OR NOT
"VTK_FFMPEG_CACHED_INCLUDE"
MATCHES
"^
${
FFMPEG_INCLUDE_DIR
}
$"
)
IF
(
EXISTS
${
FFMPEG_INCLUDE_DIR
}
/ffmpeg
)
SET
(
VTK_FFMPEG_HAS_OLD_HEADER
"TRUE"
CACHE INTERNAL
"Is the FFMPEG include in the old location"
FORCE
)
ELSE
(
EXISTS
${
FFMPEG_INCLUDE_DIR
}
/ffmpeg
)
...
...
@@ -11,9 +11,9 @@ IF (FFMPEG_INCLUDE_DIR)
MESSAGE
(
STATUS
"Checking if FFMPEG uses old style header files - no"
)
ENDIF
(
VTK_FFMPEG_HAS_OLD_HEADER
)
SET
(
VTK_FFMPEG_CACHED_INCLUDE
${
FFMPEG_INCLUDE_DIR
}
CACHE INTERNAL
"Previous value of FFMPEG_INCLUDE_DIR"
FORCE
)
#
ENDIF("VTK_FFMPEG_HAS_OLD_HEADER" MATCHES "^VTK_FFMPEG_HAS_OLD_HEADER$" OR NOT "VTK_FFMPEG_CACHED_INCLUDE" MATCHES "^${FFMPEG_INCLUDE_DIR}$")
ENDIF
(
"VTK_FFMPEG_HAS_OLD_HEADER"
MATCHES
"^VTK_FFMPEG_HAS_OLD_HEADER$"
OR NOT
"VTK_FFMPEG_CACHED_INCLUDE"
MATCHES
"^
${
FFMPEG_INCLUDE_DIR
}
$"
)
#
IF("VTK_FFMPEG_HAS_IMG_CONVERT" MATCHES "^VTK_FFMPEG_HAS_IMG_CONVERT$" OR NOT "VTK_FFMPEG_CACHED_AVCODEC" MATCHES "^${FFMPEG_avcodec_LIBRARY}$")
IF
(
"VTK_FFMPEG_HAS_IMG_CONVERT"
MATCHES
"^VTK_FFMPEG_HAS_IMG_CONVERT$"
OR NOT
"VTK_FFMPEG_CACHED_AVCODEC"
MATCHES
"^
${
FFMPEG_avcodec_LIBRARY
}
$"
)
IF
(
VTK_FFMPEG_HAS_OLD_HEADER
)
SET
(
VTK_FFMPEG_CDEFS
"HAS_OLD_HEADER"
)
ELSE
(
VTK_FFMPEG_HAS_OLD_HEADER
)
...
...
@@ -41,10 +41,9 @@ IF (FFMPEG_INCLUDE_DIR)
ENDIF
(
VTK_FFMPEG_HAS_IMG_CONVERT
)
ENDIF
(
FFMPEG_avcodec_LIBRARY
)
SET
(
VTK_FFMPEG_CACHED_AVCODEC
${
FFMPEG_avcodec_LIBRARY
}
CACHE INTERNAL
"Previous value of FFMPEG_avcodec_LIBRARY"
FORCE
)
#
ENDIF("VTK_FFMPEG_HAS_IMG_CONVERT" MATCHES "^VTK_FFMPEG_HAS_IMG_CONVERT$" OR NOT "VTK_FFMPEG_CACHED_AVCODEC" MATCHES "^${FFMPEG_avcodec_LIBRARY}$")
ENDIF
(
"VTK_FFMPEG_HAS_IMG_CONVERT"
MATCHES
"^VTK_FFMPEG_HAS_IMG_CONVERT$"
OR NOT
"VTK_FFMPEG_CACHED_AVCODEC"
MATCHES
"^
${
FFMPEG_avcodec_LIBRARY
}
$"
)
SET
(
VTK_FFMPEG_OLD_URL_FCLOSE
"VTK_FFMPEG_OLD_URL_FCLOSE"
)
#IF("VTK_FFMPEG_OLD_URL_FCLOSE" MATCHES "^VTK_FFMPEG_OLD_URL_FCLOSE$" OR NOT "VTK_FFMPEG_CACHED_AVFORMAT" MATCHES "^${FFMPEG_avformat_LIBRARY}$")
IF
(
"VTK_FFMPEG_OLD_URL_FCLOSE"
MATCHES
"^VTK_FFMPEG_OLD_URL_FCLOSE$"
OR NOT
"VTK_FFMPEG_CACHED_AVFORMAT"
MATCHES
"^
${
FFMPEG_avformat_LIBRARY
}
$"
)
IF
(
VTK_FFMPEG_HAS_OLD_HEADER
)
SET
(
VTK_FFMPEG_CDEFS
"HAS_OLD_HEADER"
)
ELSE
(
VTK_FFMPEG_HAS_OLD_HEADER
)
...
...
@@ -72,9 +71,9 @@ IF (FFMPEG_INCLUDE_DIR)
"
${
OUTPUT
}
\n\n
"
)
ENDIF
(
VTK_FFMPEG_OLD_URL_FCLOSE
)
ENDIF
(
FFMPEG_avformat_LIBRARY
)
#
ENDIF("VTK_FFMPEG_OLD_URL_FCLOSE" MATCHES "^VTK_FFMPEG_OLD_URL_FCLOSE$" OR NOT "VTK_FFMPEG_CACHED_AVFORMAT" MATCHES "^${FFMPEG_avformat_LIBRARY}$")
ENDIF
(
"VTK_FFMPEG_OLD_URL_FCLOSE"
MATCHES
"^VTK_FFMPEG_OLD_URL_FCLOSE$"
OR NOT
"VTK_FFMPEG_CACHED_AVFORMAT"
MATCHES
"^
${
FFMPEG_avformat_LIBRARY
}
$"
)
#
IF("VTK_FFMPEG_NEW_ALLOC" MATCHES "^VTK_FFMPEG_NEW_ALLOC$" OR NOT "VTK_FFMPEG_CACHED_AVFORMAT" MATCHES "^${FFMPEG_avformat_LIBRARY}$")
IF
(
"VTK_FFMPEG_NEW_ALLOC"
MATCHES
"^VTK_FFMPEG_NEW_ALLOC$"
OR NOT
"VTK_FFMPEG_CACHED_AVFORMAT"
MATCHES
"^
${
FFMPEG_avformat_LIBRARY
}
$"
)
IF
(
VTK_FFMPEG_HAS_OLD_HEADER
)
SET
(
VTK_FFMPEG_CDEFS
"HAS_OLD_HEADER"
)
ELSE
(
VTK_FFMPEG_HAS_OLD_HEADER
)
...
...
@@ -103,5 +102,5 @@ IF (FFMPEG_INCLUDE_DIR)
ENDIF
(
VTK_FFMPEG_NEW_ALLOC
)
ENDIF
(
FFMPEG_avformat_LIBRARY
)
SET
(
VTK_FFMPEG_CACHED_AVFORMAT
${
FFMPEG_avformat_LIBRARY
}
CACHE INTERNAL
"Previous value of FFMPEG_avformat_LIBRARY"
FORCE
)
#
ENDIF("VTK_FFMPEG_NEW_ALLOC" MATCHES "^VTK_FFMPEG_NEW_ALLOC$" OR NOT "VTK_FFMPEG_CACHED_AVFORMAT" MATCHES "^${FFMPEG_avformat_LIBRARY}$")
ENDIF
(
"VTK_FFMPEG_NEW_ALLOC"
MATCHES
"^VTK_FFMPEG_NEW_ALLOC$"
OR NOT
"VTK_FFMPEG_CACHED_AVFORMAT"
MATCHES
"^
${
FFMPEG_avformat_LIBRARY
}
$"
)
ENDIF
(
FFMPEG_INCLUDE_DIR
)
Write
Preview
Supports
Markdown
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