PaddleSpeech/demos/TTSArmLinux 编译提示Could NOT find OpenMP_C #3349
Replies: 1 comment
-
这个问题解决了,可以编译成功了。 我理解有问题,这个demo应该是跑在有Ubuntu的arm板子上的,若要在电脑上虚拟机中编译,需要交叉编译,需要修改cmake的配置。cmake -DCMAKE_TOOLCHAIN_FILE=cfg_file_path cmake 会执行 CMAKE_TOOLCHAIN_FILE 需要修改的位置:-DCMAKE_TOOLCHAIN_FILE=/home/paddle/cross-compile/arm-linux-setup.cmake target_include_directories(paddlespeech_tts_demo PRIVATE /home/paddle/PaddleSpeech/demos/TTSArmLinux/src/TTSCppFrontend/third-party/build/include) target_include_directories(paddlespeech_tts_demo PRIVATE /home/paddle/Paddle-Lite/build.lite.linux.armv7hf.gcc/inference_lite_lib.armlinux.armv7hf/cxx/include) PaddleSpeech/demos/TTSCppFrontend: build.sh build-depends.sh third-party/CMakeLists.txt(可能需要增加-DGFLAGS_NAMESPACE=gflags) Paddle-Lite/lite/tools :build_linux.sh cmake的交叉旁边有配置文件: set(TOOLCHAIN_DIR /opt/atk-dlrv1126-toolchain/bin) set(CMAKE_C_COMPILER ${TOOLCHAIN_DIR}/arm-linux-gnueabihf-gcc) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
Beta Was this translation helpful? Give feedback.
-
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindOpenMP.cmake:511 (find_package_handle_standard_args)
CMakeLists.txt:51 (find_package)
请问这个是什么原因造成,一般怎么解决?这个openMP需要自己安装还是系统自带的
Beta Was this translation helpful? Give feedback.
All reactions