Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
85edb9e9
Commit
85edb9e9
authored
Jun 04, 2014
by
Roman Donchenko
Committed by
OpenCV Buildbot
Jun 04, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1552 from Exocoder:gtk3
parents
607cd37b
f0887a99
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
6 deletions
+29
-6
CMakeLists.txt
CMakeLists.txt
+9
-2
OpenCVFindLibsGUI.cmake
cmake/OpenCVFindLibsGUI.cmake
+18
-3
OpenCVMinDepVersions.cmake
cmake/OpenCVMinDepVersions.cmake
+1
-0
CMakeLists.txt
modules/highgui/CMakeLists.txt
+1
-1
window_gtk.cpp
modules/highgui/src/window_gtk.cpp
+0
-0
No files found.
CMakeLists.txt
View file @
85edb9e9
...
...
@@ -127,6 +127,7 @@ OCV_OPTION(WITH_FFMPEG "Include FFMPEG support" ON
OCV_OPTION
(
WITH_GSTREAMER
"Include Gstreamer support"
ON
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_GSTREAMER_0_10
"Enable Gstreamer 0.10 support (instead of 1.x)"
OFF
)
OCV_OPTION
(
WITH_GTK
"Include GTK support"
ON
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_GTK_2_X
"Use GTK version 2"
OFF
IF
(
UNIX AND NOT APPLE AND NOT ANDROID
)
)
OCV_OPTION
(
WITH_IPP
"Include Intel IPP support"
ON
IF
(
NOT IOS
)
)
OCV_OPTION
(
WITH_JASPER
"Include JPEG2K support"
ON
IF
(
NOT IOS
)
)
OCV_OPTION
(
WITH_JPEG
"Include JPEG support"
ON
)
...
...
@@ -747,8 +748,14 @@ else()
status
(
" Cocoa:"
YES
)
endif
()
else
()
status
(
" GTK+ 2.x:"
HAVE_GTK THEN
"YES (ver
${
ALIASOF_gtk+-2.0_VERSION
}
)"
ELSE NO
)
status
(
" GThread :"
HAVE_GTHREAD THEN
"YES (ver
${
ALIASOF_gthread-2.0_VERSION
}
)"
ELSE NO
)
if
(
HAVE_GTK3
)
status
(
" GTK+ 3.x:"
HAVE_GTK THEN
"YES (ver
${
ALIASOF_gtk+-3.0_VERSION
}
)"
ELSE NO
)
elseif
(
HAVE_GTK
)
status
(
" GTK+ 2.x:"
HAVE_GTK THEN
"YES (ver
${
ALIASOF_gtk+-2.0_VERSION
}
)"
ELSE NO
)
else
()
status
(
" GTK+:"
NO
)
endif
()
status
(
" GThread :"
HAVE_GTHREAD THEN
"YES (ver
${
ALIASOF_gthread-2.0_VERSION
}
)"
ELSE NO
)
status
(
" GtkGlExt:"
HAVE_GTKGLEXT THEN
"YES (ver
${
ALIASOF_gtkglext-1.0_VERSION
}
)"
ELSE NO
)
endif
()
endif
()
...
...
cmake/OpenCVFindLibsGUI.cmake
View file @
85edb9e9
...
...
@@ -39,11 +39,26 @@ if(WITH_QT)
endif
()
# --- GTK ---
ocv_clear_vars
(
HAVE_GTK HAVE_GTHREAD HAVE_GTKGLEXT
)
ocv_clear_vars
(
HAVE_GTK HAVE_GT
K3 HAVE_GT
HREAD HAVE_GTKGLEXT
)
if
(
WITH_GTK AND NOT HAVE_QT
)
CHECK_MODULE
(
gtk+-2.0 HAVE_GTK
)
if
(
NOT WITH_GTK_2_X
)
CHECK_MODULE
(
gtk+-3.0 HAVE_GTK3
)
if
(
HAVE_GTK3
)
set
(
HAVE_GTK TRUE
)
endif
()
endif
()
if
(
NOT HAVE_GTK
)
CHECK_MODULE
(
gtk+-2.0 HAVE_GTK
)
if
(
HAVE_GTK
AND
(
ALIASOF_gtk+-2.0_VERSION VERSION_LESS MIN_VER_GTK
))
message
(
FATAL_ERROR
"GTK support requires a minimum version of
${
MIN_VER_GTK
}
(
${
ALIASOF_gtk+-2.0_VERSION
}
found)"
)
set
(
HAVE_GTK FALSE
)
endif
()
endif
()
CHECK_MODULE
(
gthread-2.0 HAVE_GTHREAD
)
if
(
WITH_OPENGL
)
if
(
HAVE_GTK AND NOT HAVE_GTHREAD
)
message
(
FATAL_ERROR
"gthread not found. This library is required when building with GTK support"
)
endif
()
if
(
WITH_OPENGL AND NOT HAVE_GTK3
)
CHECK_MODULE
(
gtkglext-1.0 HAVE_GTKGLEXT
)
endif
()
endif
()
...
...
cmake/OpenCVMinDepVersions.cmake
View file @
85edb9e9
...
...
@@ -2,3 +2,4 @@ set(MIN_VER_CMAKE 2.8.7)
set
(
MIN_VER_CUDA 4.2
)
set
(
MIN_VER_PYTHON 2.6
)
set
(
MIN_VER_ZLIB 1.2.3
)
set
(
MIN_VER_GTK 2.18.0
)
modules/highgui/CMakeLists.txt
View file @
85edb9e9
...
...
@@ -112,7 +112,7 @@ elseif(HAVE_QT)
endif
()
elseif
(
HAVE_WIN32UI
)
list
(
APPEND highgui_srcs src/window_w32.cpp
)
elseif
(
HAVE_GTK
)
elseif
(
HAVE_GTK
OR HAVE_GTK3
)
list
(
APPEND highgui_srcs src/window_gtk.cpp
)
elseif
(
HAVE_CARBON
)
list
(
APPEND highgui_srcs src/window_carbon.cpp
)
...
...
modules/highgui/src/window_gtk.cpp
View file @
85edb9e9
This diff is collapsed.
Click to expand it.
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