File tree Expand file tree Collapse file tree 2 files changed +42
-14
lines changed Expand file tree Collapse file tree 2 files changed +42
-14
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,31 @@ cd ta-lib-${TALIB_C_VER}
27
27
mkdir -p include/ta-lib/
28
28
cp include/* .h include/ta-lib/
29
29
30
+
31
+
32
+ # for version 0.4.0
33
+ if [ $TALIB_C_VER == " 0.4.0" ]; then
34
+ bash autogen.sh
35
+ # Build TA-Lib using autoconf/configure
36
+ ./configure --prefix=$( pwd) /../ta-lib-install
37
+ if [ $? -ne 0 ]; then
38
+ echo " Configure failed"
39
+ exit 1
40
+ fi
41
+
42
+ else
43
+ # for version 0.6.2
44
+ # Use CMake to configure the build
45
+ cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
46
+ if [ $? -ne 0 ]; then
47
+ echo " CMake configuration failed"
48
+ exit 1
49
+ fi
50
+ fi
30
51
# Create build directory
31
52
mkdir -p _build
32
53
cd _build
33
54
34
- # Use CMake to configure the build
35
- cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
36
- if [ $? -ne 0 ]; then
37
- echo " CMake configuration failed"
38
- exit 1
39
- fi
40
-
41
55
# Compile TA-Lib
42
56
make
43
57
if [ $? -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -27,17 +27,31 @@ cd ta-lib-${TALIB_C_VER}
27
27
mkdir -p include/ta-lib/
28
28
cp include/* .h include/ta-lib/
29
29
30
+
31
+
32
+ # for version 0.4.0
33
+ if [ $TALIB_C_VER == " 0.4.0" ]; then
34
+ bash autogen.sh
35
+ # Build TA-Lib using autoconf/configure
36
+ ./configure --prefix=$( pwd) /../ta-lib-install
37
+ if [ $? -ne 0 ]; then
38
+ echo " Configure failed"
39
+ exit 1
40
+ fi
41
+
42
+ else
43
+ # for version 0.6.2
44
+ # Use CMake to configure the build
45
+ cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
46
+ if [ $? -ne 0 ]; then
47
+ echo " CMake configuration failed"
48
+ exit 1
49
+ fi
50
+ fi
30
51
# Create build directory
31
52
mkdir -p _build
32
53
cd _build
33
54
34
- # Use CMake to configure the build
35
- cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
36
- if [ $? -ne 0 ]; then
37
- echo " CMake configuration failed"
38
- exit 1
39
- fi
40
-
41
55
# Compile TA-Lib
42
56
make
43
57
if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments