我正在尝试用Biicode编译我的nana gui库代码。https://www.biicode.com/qiangwu/qiangwu/nana/master/0/biicode.conf
# Biicode configuration file migrated from old config files
[requirements]
qiangwu/nana: 0
[parent]
[paths]
[dependencies]
include/nana/config.hpp + build/cmake/config.hpp
[mains]
[hooks]
[includes]
[data]命令后的bii build输出为:
H:\na4\nana>bii build
INFO: Processing changes...
WARN: user/nana/biicode.conf, [dependencies] include/nana/config.hpp + build/cmake/config.hpp
There are no files matching pattern include/nana/config.hpp
Building: "cmake" --build .
BLOCK: qiangwu/nana
-----------------------------------------------------------
CMake Error at H:/na4/nana/bii/deps/qiangwu/nana/CMakeLists.txt:19 (list):
list sub-command REMOVE_ITEM requires two or more arguments.
Error copying file (if different) from "H:/na4/nana/bii/deps/qiangwu/nana/build/cmake/config.hpp" to "H:/na4/nana/bii/deps/qiangwu/nana/include/nana/".
+ LIB: qiangwu_nana
BLOCK: user/nana
-----------------------------------------------------------
+ LIB: user_nana
+ EXE: user_nana_main
-- Configuring incomplete, errors occurred!
See also "H:/na4/nana/bii/build/CMakeFiles/CMakeOutput.log".
See also "H:/na4/nana/bii/build/CMakeFiles/CMakeError.log".
mingw32-make.exe: *** [cmake_check_build_system] Error 1
ERROR: Build failedCmakeLists.txt:
if(NOT BIICODE)
project(nana)
cmake_minimum_required(VERSION 2.8)
else()
set(LIB_SRC ${BII_LIB_SRC})
foreach(cpp ${BII_LIB_SRC})
if(${cpp} MATCHES "(include/nana|source)/detail/[A-Za-z0-9_]+/.+$")
list(APPEND trash_files ${cpp})
endif()
endforeach()
list(REMOVE_ITEM BII_LIB_SRC ${trash_files})
endif()第19行是:“list(REMOVE_ITEM BII_LIB_SRC ${trash_files})”
发布于 2015-04-12 07:44:49
它似乎与biicode无关,但与CMake相关。您的${trash_files}变量实际上是空的,然后REMOVE_ITEM列表函数就会失败。在常规CMakeLists.txt中检查以下代码:
SET(MY_VAR a b c)
SET(TRASH_FILES )
SET(MY_LIST a b c d)
foreach(cpp ${MY_VAR})
if(${cpp} MATCHES d)
list(APPEND trash_files ${cpp})
endif()
endforeach()
list(REMOVE_ITEM MY_LIST ${trash_files})如果您认为在此类操作中某个变量可能为空,请使用以下条件保护该代码:
if(trash_files)
list(REMOVE_ITEM MY_LIST ${trash_files})
endif()发布于 2015-04-16 00:25:16
最近,这是一个解决这个问题的更新。
在GitHub中,您需要使用分支develop
https://stackoverflow.com/questions/29576877
复制相似问题