-
Notifications
You must be signed in to change notification settings - Fork 0
/
do-build
executable file
·35 lines (24 loc) · 1022 Bytes
/
do-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/bash
#this script builds the opencv for host and target. the outputs are in the folders build-target and build-host
make clean || true
target_dir=build-target
host_dir=build-host
cp_folders="3rdparty apps autotools data include interfaces samples src tests utils"
# target
rm -r $target_dir || true
mkdir -p $target_dir
cp * $target_dir
cp -r $cp_folders $target_dir
cd $target_dir
./configure --host=bfin-uclinux --without-octave --without-gtk --without-v4l --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps --disable-openmp LDFLAGS=-mfast-fp
make
cd ..
# host
rm -r $host_dir || true
mkdir -p $host_dir
cp * $host_dir
cp -r $cp_folders $host_dir
cd $host_dir
./configure --without-octave --without-gtk --without-v4l --without-carbon --without-quicktime --without-1394libs --without-ffmpeg --without-python --without-swig --enable-static --disable-shared --disable-apps --disable-openmp
make
cd ..