Skip to content

Commit

Permalink
fix(scripts): update scripts for build and run
Browse files Browse the repository at this point in the history
  • Loading branch information
MakarenkoAI committed Nov 11, 2024
1 parent 594c9d6 commit 4d19da9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
9 changes: 2 additions & 7 deletions ostis-metasystem.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ max_events_and_agents_threads = 32
dump_memory_period = 3600
dump_memory_statistics_period = 1800

repo_path = kb.bin
extensions_path = bin/extensions
storage = kb.bin
extensions = bin/extensions

log_type = Console
log_file = sc-memory.log
Expand All @@ -31,11 +31,6 @@ log_type = File
log_file = sc-server.log
log_level = Info

[sc-builder]
log_file = scripts/sc_builder.log

input_path = repo.path

[sc-component-manager]
knowledge_base_components_path = sc-models/knowledge-base
problem_solver_components_path = platform-dependent-components/problem-solver
Expand Down
4 changes: 3 additions & 1 deletion scripts/build_kb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ then
source "$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)/set_vars.sh"
fi

"${PLATFORM_PATH}/scripts/build_kb.sh" "$@"
# "${PLATFORM_PATH}/scripts/build_kb.sh" "$@"

./bin/sc-builder -i ./repo.path -o ./kb.bin --clear -c ./ostis-metasystem.ini
5 changes: 4 additions & 1 deletion scripts/build_platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ then
source "$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"/set_vars.sh
fi

"${PLATFORM_PATH}/scripts/build_platform.sh" "$@"
#"${PLATFORM_PATH}/scripts/build_platform.sh" "$@"

cmake -B build -DCMAKE_BUILD_TYPE=Release # use Debug for debug build
cmake --build build -j$(nproc)
3 changes: 2 additions & 1 deletion scripts/run_cxx_ps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ then
source "$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"/set_vars.sh
fi

"${PLATFORM_PATH}/scripts/run_sc_machine.sh" "$@"
# "${PLATFORM_PATH}/scripts/run_sc_machine.sh" "$@"
./bin/sc-machine -c ./ostis-metasystem.ini

0 comments on commit 4d19da9

Please sign in to comment.