Skip to content

for var-som-mx8m-plus #4977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/feature-proposal-discussion.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/kaldi10-issue.md

This file was deleted.

29 changes: 0 additions & 29 deletions .github/stale.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/c-cpp.yml

This file was deleted.

192 changes: 0 additions & 192 deletions .github/workflows/docker-images.yml

This file was deleted.

40 changes: 4 additions & 36 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.18)
cmake_minimum_required(VERSION 3.13)
project(kaldi)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Expand All @@ -20,25 +20,7 @@ if(CONDA_ROOT)

endif()

option(BuildForFedora "Build for Fedora. Means that everything is build with Border tools" NO)

if(BuildForFedora)

# You also need to install sudo dnf install lapack-devel openfst-devel
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

#find_package(PkgConfig REQUIRED)

#pkg_check_modules(FST REQUIRED fst)

else()
include(third_party/get_third_party)

include(cmake/third_party/openfst.cmake)
endif()

include(third_party/get_third_party)

find_package(PythonInterp)
if(NOT PYTHON_EXECUTABLE)
Expand All @@ -59,11 +41,8 @@ execute_process(COMMAND ${PYTHON_EXECUTABLE}
)
unset(IS_LIB_SHARE)

if(BuildForFedora)
else()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_INSTALL_MESSAGE LAZY) # hide "-- Up-to-date: ..."
if(BUILD_SHARED_LIBS)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down Expand Up @@ -247,19 +226,8 @@ endif()
# PATHS "${CMAKE_CURRENT_SOURCE_DIR}/tools/openfst/include"
# REQUIRED)

if(BuildForFedora)
# Version used used by Fedora 41 is 1.83
# TODO: Detect the right version and put it here.
add_definitions(-DOPENFST_VER=18300)
# link_directories(/usr/lib64)
# include_directories(/usr/include/fst)
endif()

link_libraries(fst)




# add all native libraries
add_subdirectory(src/base) # NOTE, we need to patch the target with version from outside
set_property(TARGET kaldi-base PROPERTY COMPILE_DEFINITIONS "KALDI_VERSION=\"${KALDI_VERSION}\"")
Expand Down
Loading