Skip to content

Commit

Permalink
linux路径修复
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsdamxssjxxdd committed Dec 28, 2024
1 parent db1f396 commit ac86500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ set(version b4393) # 打包版本
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release) # 设置最终eva的输出目录

###################################### 编译选项 ######################################
option(BODY_PACK "pack eva" OFF) # 是否打包
option(BODY_PACK "pack eva" ON) # 是否打包
option(GGML_CUDA "ggml: use CUDA" OFF) # 速度900%
option(GGML_VULKAN "ggml: use Vulkan" OFF) # 速度250%
option(GGML_VULKAN "ggml: use Vulkan" ON) # 速度250%

##################################### 处理编译选项 ####################################
option(BUILD_SHARED_LIBS "build shared libraries" ON) # 都用动态链接
Expand Down
2 changes: 1 addition & 1 deletion ui/expend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ void Expend::recv_speechdecode(QString wavpath, QString out_format) {
QTextCodec* code = QTextCodec::codecForName("GB2312"); // mingw中文路径支持
std::string wav_path_c = code->fromUnicode(wavpath).data();
#elif __linux__
std::string wav_path_c = wav_path.toStdString();
std::string wav_path_c = wavpath.toStdString();
#endif
resampleWav(wav_path_c, wav_path_c);

Expand Down

0 comments on commit ac86500

Please sign in to comment.