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
01a980aa
Commit
01a980aa
authored
Feb 17, 2014
by
Alexander Karsakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compilation with IPP on Linux. Added linking with Intel compiler runtime libraries.
parent
e0d991cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
6 deletions
+33
-6
OpenCVFindIPP.cmake
cmake/OpenCVFindIPP.cmake
+33
-6
No files found.
cmake/OpenCVFindIPP.cmake
View file @
01a980aa
...
...
@@ -163,9 +163,16 @@ function(set_ipp_new_libraries _LATEST_VERSION)
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
IPPCV
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
IPPI
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
IPPS
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
IPPCORE
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
PARENT_SCOPE
)
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
IPPCORE
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
if
(
UNIX
)
set
(
IPP_LIBRARIES
${
IPP_LIBRARIES
}
${
IPP_LIB_PREFIX
}
irc
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
${
IPP_LIB_PREFIX
}
imf
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
${
IPP_LIB_PREFIX
}
svml
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
)
endif
()
set
(
IPP_LIBRARIES
${
IPP_LIBRARIES
}
PARENT_SCOPE
)
return
()
endfunction
()
...
...
@@ -208,18 +215,38 @@ function(set_ipp_variables _LATEST_VERSION)
set
(
IPP_INCLUDE_DIRS
${
IPP_ROOT_DIR
}
/include PARENT_SCOPE
)
if
(
APPLE
)
set
(
IPP_LIBRARY_DIRS
${
IPP_ROOT_DIR
}
/lib
PARENT_SCOPE
)
set
(
IPP_LIBRARY_DIRS
${
IPP_ROOT_DIR
}
/lib
)
elseif
(
IPP_X64
)
if
(
NOT EXISTS
${
IPP_ROOT_DIR
}
/lib/intel64
)
message
(
SEND_ERROR
"IPP EM64T libraries not found"
)
endif
()
set
(
IPP_LIBRARY_DIRS
${
IPP_ROOT_DIR
}
/lib/intel64
PARENT_SCOPE
)
set
(
IPP_LIBRARY_DIRS
${
IPP_ROOT_DIR
}
/lib/intel64
)
else
()
if
(
NOT EXISTS
${
IPP_ROOT_DIR
}
/lib/ia32
)
message
(
SEND_ERROR
"IPP IA32 libraries not found"
)
endif
()
set
(
IPP_LIBRARY_DIRS
${
IPP_ROOT_DIR
}
/lib/ia32 PARENT_SCOPE
)
set
(
IPP_LIBRARY_DIRS
${
IPP_ROOT_DIR
}
/lib/ia32
)
endif
()
if
(
UNIX
)
get_filename_component
(
INTEL_COMPILER_LIBRARY_DIR
${
IPP_ROOT_DIR
}
/../lib REALPATH
)
if
(
IPP_X64
)
if
(
NOT EXISTS
${
INTEL_COMPILER_LIBRARY_DIR
}
/intel64
)
message
(
SEND_ERROR
"Intel compiler EM64T libraries not found"
)
endif
()
set
(
IPP_LIBRARY_DIRS
${
IPP_LIBRARY_DIRS
}
${
INTEL_COMPILER_LIBRARY_DIR
}
/intel64
)
else
()
if
(
NOT EXISTS
${
INTEL_COMPILER_LIBRARY_DIR
}
/ia32
)
message
(
SEND_ERROR
"Intel compiler IA32 libraries not found"
)
endif
()
set
(
IPP_LIBRARY_DIRS
${
IPP_LIBRARY_DIRS
}
${
INTEL_COMPILER_LIBRARY_DIR
}
/ia32
)
endif
()
endif
()
set
(
IPP_LIBRARY_DIRS
${
IPP_LIBRARY_DIRS
}
PARENT_SCOPE
)
# set IPP_LIBRARIES variable (7.x or 8.x lib names)
set_ipp_new_libraries
(
${
_LATEST_VERSION
}
)
...
...
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