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

Appearance settings

Latest commit

 

History

History
History
53 lines (43 loc) · 1.09 KB

File metadata and controls

53 lines (43 loc) · 1.09 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
TALIB_C_VER="${TALIB_C_VER:=0.6.4}"
CMAKE_GENERATOR="Unix Makefiles"
CMAKE_BUILD_TYPE=Release
CMAKE_CONFIGURATION_TYPES=Release
# Download TA-Lib C Library
curl -L -o talib-${TALIB_C_VER}.zip https://github.com/TA-Lib/ta-lib/archive/refs/tags/v${TALIB_C_VER}.zip
if [ $? -ne 0 ]; then
echo "Failed to download TA-Lib C library"
exit 1
fi
# Unzip TA-Lib C
unzip -q talib-${TALIB_C_VER}.zip
if [ $? -ne 0 ]; then
echo "Failed to extract TA-Lib C library"
exit 1
fi
# cd to TA-Lib C
cd ta-lib-${TALIB_C_VER}
# Copy TA-Lib C headers to TA-Lib Python
mkdir -p include/ta-lib/
cp include/*.h include/ta-lib/
# Create build directory
mkdir -p _build
cd _build
# Use CMake to configure the build
cmake -G "$CMAKE_GENERATOR" -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
if [ $? -ne 0 ]; then
echo "CMake configuration failed"
exit 1
fi
# Compile TA-Lib
make
if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi
make install
if [ $? -ne 0 ]; then
echo "Install failed"
exit 1
fi
echo "TA-Lib build completed successfully!"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.