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
13a79c75
Commit
13a79c75
authored
May 21, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to TBB4.0 update 4 for Android build
parent
41c932f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
16 deletions
+38
-16
CMakeLists.txt
3rdparty/tbb/CMakeLists.txt
+22
-7
version_string.tmp
3rdparty/tbb/version_string.tmp
+7
-9
version_string.ver
3rdparty/tbb/version_string.ver
+9
-0
No files found.
3rdparty/tbb/CMakeLists.txt
View file @
13a79c75
...
...
@@ -5,20 +5,31 @@ endif()
project
(
tbb
)
# 4.0 update 4 - works fine
set
(
tbb_ver
"tbb40_20120408oss"
)
set
(
tbb_url
"http://threadingbuildingblocks.org/uploads/77/185/4.0%20update%204/tbb40_20120408oss_src.tgz"
)
set
(
tbb_md5
"734b356da7fe0ed308741f3e6018251e"
)
set
(
tbb_version_file
"version_string.ver"
)
# 4.0 update 3 - build broken
#set(tbb_ver "tbb40_20120201oss")
#set(tbb_url "http://threadingbuildingblocks.org/uploads/77/182/4.0%20update%203/tbb40_20120201oss_src.tgz")
#set(tbb_md5 "4669e7d4adee018de7a7b8b972987218")
#set(tbb_version_file "version_string.tmp")
# 4.0 update 2 - works fine
set
(
tbb_ver
"tbb40_20111130oss"
)
set
(
tbb_url
"http://threadingbuildingblocks.org/uploads/77/180/4.0%20update%202/tbb40_20111130oss_src.tgz"
)
set
(
tbb_md5
"1e6926b21e865e79772119cd44fc3ad8"
)
#set(tbb_ver "tbb40_20111130oss")
#set(tbb_url "http://threadingbuildingblocks.org/uploads/77/180/4.0%20update%202/tbb40_20111130oss_src.tgz")
#set(tbb_md5 "1e6926b21e865e79772119cd44fc3ad8")
#set(tbb_version_file "version_string.tmp")
#set(tbb_need_GENERIC_DWORD_LOAD_STORE TRUE)
# 4.0 update 1 - works fine
#set(tbb_ver "tbb40_20111003oss")
#set(tbb_url "http://threadingbuildingblocks.org/uploads/77/177/4.0%20update%201/tbb40_20111003oss_src.tgz")
#set(tbb_md5 "7b5d94eb35a563b29ef402e0fd8f15c9")
#set(tbb_version_file "version_string.tmp")
#set(tbb_need_GENERIC_DWORD_LOAD_STORE TRUE)
set
(
tbb_tarball
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
tbb_ver
}
_src.tgz"
)
set
(
tbb_src_dir
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
tbb_ver
}
"
)
...
...
@@ -92,16 +103,20 @@ list(APPEND lib_srcs "${tbb_src_dir}/src/rml/client/rml_tbb.cpp")
add_definitions
(
-D__TBB_DYNAMIC_LOAD_ENABLED=0
#required
-D__TBB_BUILD=1
#required
-D__TBB_SURVIVE_THREAD_SWITCH=0
#no cilk on Android
-D__TBB_USE_GENERIC_DWORD_LOAD_STORE=1
#needed by TBB 4.0 update 1,2; fixed in TBB 4.0 update 3 but it has 2 new problems
-D__TBB_SURVIVE_THREAD_SWITCH=0
#no cilk on Android ?
-DUSE_PTHREAD
#required
-DTBB_USE_GCC_BUILTINS=1
#required
-DTBB_USE_DEBUG=0
#just
ot
be sure
-DTBB_USE_DEBUG=0
#just
to
be sure
-DTBB_NO_LEGACY=1
#don't need backward compatibility
-DDO_ITT_NOTIFY=0
#it seems that we don't need these notifications
)
add_library
(
tbb STATIC
${
lib_srcs
}
${
lib_hdrs
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/android_additional.h"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/version_string.tmp"
)
if
(
tbb_need_GENERIC_DWORD_LOAD_STORE
)
#needed by TBB 4.0 update 1,2; fixed in TBB 4.0 update 3 but it has 2 new problems
add_definitions
(
-D__TBB_USE_GENERIC_DWORD_LOAD_STORE=1
)
endif
()
add_library
(
tbb STATIC
${
lib_srcs
}
${
lib_hdrs
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/android_additional.h"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
tbb_version_file
}
"
)
target_link_libraries
(
tbb c m dl
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-w -include
\"
${
CMAKE_CURRENT_SOURCE_DIR
}
/android_additional.h
\"
"
)
...
...
3rdparty/tbb/version_string.tmp
View file @
13a79c75
#define __TBB_VERSION_STRINGS \
"TBB: BUILD_HOST
buit as part of OpenCV
" ENDL \
"TBB: BUILD_OS
crosscompiling
" ENDL \
"TBB: BUILD_KERNEL U
NKNOWN
" ENDL \
"TBB: BUILD_HOST
Unknown
" ENDL \
"TBB: BUILD_OS
Android
" ENDL \
"TBB: BUILD_KERNEL U
nknown
" ENDL \
"TBB: BUILD_GCC gcc version 4.4.3" ENDL \
"TBB: BUILD_GLIBC 2.11.1" ENDL \
"TBB: BUILD_LD " ENDL \
"TBB: BUILD_TARGET on " ENDL \
"TBB: BUILD_COMMAND TBD" ENDL \
#define __TBB_DATETIME "Sun Jan 01 00:00:01 UTC 2012"
"TBB: BUILD_GLIBC Unknown" ENDL \
"TBB: BUILD_LD Unknown" ENDL \
"TBB: BUILD_TARGET Unknown" ENDL \
"TBB: BUILD_COMMAND use cv::getBuildInformation() for details" ENDL \
3rdparty/tbb/version_string.ver
0 → 100644
View file @
13a79c75
#define __TBB_VERSION_STRINGS(N) \
#N": BUILD_HOST Unknown" ENDL \
#N": BUILD_OS Android" ENDL \
#N": BUILD_KERNEL Unknown" ENDL \
#N": BUILD_GCC gcc version 4.4.3" ENDL \
#N": BUILD_GLIBC Unknown" ENDL \
#N": BUILD_LD Unknown" ENDL \
#N": BUILD_TARGET Unknown" ENDL \
#N": BUILD_COMMAND use cv::getBuildInformation() for details" ENDL \
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