gpt4 book ai didi

ubuntu - 在 Ubuntu 上为 mingw 安装 ncurses

转载 作者:行者123 更新时间:2023-12-04 19:11:37 26 4
gpt4 key购买 nike

我有一个项目可以很好地编译 g++ .我试过 cross-compile它与 x86_64-w64-mingw32-g++
但显然 cmake找不到 ncurses对于这个编译器。 ncurses使用 sudo apt install libncurses5-dev 安装(在 Ubuntu 18 上)。输出 cmake给出的是:

-- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindCurses.cmake:245 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
alphabetic/demos/XT9Simple/CMakeLists.txt:36 (find_package)


-- Configuring incomplete, errors occurred!

问:我应该如何安装 ncurses所以它适用于 mingw编译器?

最佳答案

基本上,您必须为 mingw 交叉编译 ncurses 并从中制作/安装一个包。 ncurses 源具有可用的 deb/rpm 包脚本...

关于ubuntu - 在 Ubuntu 上为 mingw 安装 ncurses,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54042606/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com