作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用linaro-aarch64-2018.05在Windows 10 x64上交叉编译以创建环境,c++ 11
cmake版本3.1.6
当我生成文件时
set GENMAKE_DIR=genmake-cv22-win-Linaro-aarch64
set VERSION=cv22-win-Linaro-aarch64
set CROSSMAKETOOL=cs-make-2013.11-33.exe
..\genmake-tools-win32\genMakefiles-win32.bat
##--- target system
set(CMAKE_SYSTEM_NAME Linux) #--- Name of the OS CMake is building for. (uname -s)
set(CMAKE_SYSTEM_VERSION 4.9.0) #--- OS version CMake is building for. (uname -r)
set(CMAKE_SYSTEM_PROCESSOR unknown) #--- The name of the CPU CMake is building for. (uname -p)
##--- crosstool path
set(CROSSTOOL_DIR c:/arm-linux/linaro-aarch64-2018.05)
set(CROSSTOOL_NAME aarch64-linux-gnu)
set(CROSSTOOL_VER 7.1.1)
#set(OS_DIR d:/s2-sdk/ambarella/kernel/linux)
##--- crosstool compiler
set(CMAKE_C_COMPILER ${CROSSTOOL_DIR}/bin/${CROSSTOOL_NAME}-gcc.exe)
set(CMAKE_CXX_COMPILER ${CROSSTOOL_DIR}/bin/${CROSSTOOL_NAME}-g++.exe)
#--- where is the target environment.
set(CMAKE_FIND_ROOT_PATH ${CROSSTOOL_DIR})
##--- search for programs in the build host directories.
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
#--- for libraries and headers in the target directories
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRATY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
D:\Project\frdatabase\genmake-cv22-win-Linaro-aarch64>copy ..\genmake-tools-win32\make-console.bat ..\build
copy an file
D:\Project\frdatabase\genmake-cv22-win-Linaro-aarch64>copy ..\genmake-tools-win32\sh.exe
..\build\
copy an file
D:\Project\frdatabase\genmake-cv22-win-Linaro-aarch64>copy ..\genmake-tools-win32\cs-make-2013.11-33.exe ..\build\make.exe
copy an file
D:\Project\frdatabase\genmake-cv22-win-Linaro-aarch64>cd ..\build
D:\Project\frdatabase\build>cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-cv22-win-Linaro-aarch64.cmake -G"Unix Makefiles" ../trunk
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "D:/Project/frdatabase/build/CMakeFiles/CMakeOutput.log".
D:\Project\frdatabase\build>cd ..\genmake-cv22-win-Linaro-aarch64
D:\Project\frdatabase\genmake-cv22-win-Linaro-aarch64>pause
The target system is: Linux - 4.9.0 - unknown
The host system is: Windows - 10.0.18362 - AMD64
最佳答案
问题是关于cmake的版本
3.16.0存在此问题,但可以在3.10.3下构建。
关于c++ - CMake错误:CMake无法找到与 “Unix Makefiles”相对应的生成程序。未设置CMAKE_MAKE_PROGRAM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59099924/
现在我正在尝试实现 flash programming specification对于 PIC32MX。我正在使用 PIC32MX512L 和 PIC32MX512H。 PIC32MX512L最终必须
我是一名优秀的程序员,十分优秀!