rvsttd: fix build - strip -Werror, add TTS include path
This commit is contained in:
+5
-1
@@ -70,13 +70,17 @@ if [ ! -f "${LIB_DIR}/libmoonshine.so" ]; then
|
|||||||
# Patch CMake minimum version for older distros (Debian 11 ships 3.18)
|
# Patch CMake minimum version for older distros (Debian 11 ships 3.18)
|
||||||
find "${SOURCE_DIR}" -name CMakeLists.txt -exec sed -i 's/cmake_minimum_required(VERSION 3\.22\.1)/cmake_minimum_required(VERSION 3.18.4)/' {} +
|
find "${SOURCE_DIR}" -name CMakeLists.txt -exec sed -i 's/cmake_minimum_required(VERSION 3\.22\.1)/cmake_minimum_required(VERSION 3.18.4)/' {} +
|
||||||
|
|
||||||
|
# Remove -Werror (fails on third-party headers with older compilers)
|
||||||
|
sed -i 's/-Werror//' "${SOURCE_DIR}/core/CMakeLists.txt"
|
||||||
|
|
||||||
mkdir -p "${CMAKE_BUILD}"
|
mkdir -p "${CMAKE_BUILD}"
|
||||||
cd "${CMAKE_BUILD}"
|
cd "${CMAKE_BUILD}"
|
||||||
|
|
||||||
cmake "${SOURCE_DIR}/core" \
|
cmake "${SOURCE_DIR}/core" \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DONNXRUNTIME_LIB_PATH="${ORT_LIB_DIR}/libonnxruntime.so.1" \
|
-DONNXRUNTIME_LIB_PATH="${ORT_LIB_DIR}/libonnxruntime.so.1" \
|
||||||
-DMOONSHINE_TTS_BUILD_ONNX=OFF
|
-DMOONSHINE_TTS_BUILD_ONNX=OFF \
|
||||||
|
-DCMAKE_CXX_FLAGS="-I${SOURCE_DIR}/core/moonshine-tts/src"
|
||||||
|
|
||||||
make -j"$(nproc)" moonshine
|
make -j"$(nproc)" moonshine
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user