Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6dec76e

Browse files
author
zhangdanfeng
committed
ocv build
Signed-off-by: zhangdanfeng <craft.zhang@space-t.cn>
1 parent b1432f3 commit 6dec76e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
#
3+
# This source code is licensed under the BSD-style license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
# OpenCV v4.6.x tested
6+
7+
set -e
8+
9+
mkdir -p build_cv
10+
11+
CMAKE_ARGS=()
12+
13+
# CMake-level configuration
14+
CMAKE_ARGS+=("-DCMAKE_MAKE_PROGRAM=make")
15+
CMAKE_ARGS+=("-DCMAKE_CROSSCOMPILING=1")
16+
CMAKE_ARGS+=("-DCMAKE_TOOLCHAIN_FILE=$(pwd)/scripts/tf/cmake/riscv64.JDSK.toolchain.cmake")
17+
CMAKE_ARGS+=("-DCMAKE_BUILD_TYPE=RelWithDebInfo")
18+
CMAKE_ARGS+=("-DBUILD_SHARED_LIBS=OFF")
19+
CMAKE_ARGS+=("-DOPENCL_FOUND=OFF")
20+
CMAKE_ARGS+=("-DBUILD_PERF_TESTS=OFF")
21+
CMAKE_ARGS+=("-DBUILD_TESTS=OFF")
22+
CMAKE_ARGS+=("-DBUILD_opencv_apps=OFF")
23+
CMAKE_ARGS+=("-DBUILD_opencv_calib3d=OFF")
24+
CMAKE_ARGS+=("-DBUILD_opencv_gapi=OFF")
25+
26+
# install
27+
# CMAKE_INSTALL_PREFIX
28+
29+
# Use-specified CMake arguments go last to allow overridding defaults
30+
CMAKE_ARGS+=($@)
31+
32+
pushd build_cv
33+
34+
# change to your path
35+
ccmake ../../../gem5/opencv/ "${CMAKE_ARGS[@]}"
36+
37+
cmake --build .
38+
39+
popd
40+
41+
# cp

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /