我在使用biicode时遇到问题。我有一个主要的简单项目。该项目使用了boost。为了获得使用biicode的提升,我使用了以下cmake文件:
include(biicode/boost/setup)
ADD_BII_TARGETS()
bii_find_boost(COMPONENTS unit_test_framework REQUIRED)
target_include_directories(${BII_BLOCK_TARGET} INTERFACE ${Boost_INCLUDE_DIRS})
target_link_libraries(${BII_BLOCK_TARGET} INTERFACE ${Boost_LIBRARIES})
如果我现在拨打" bii configure",则下载并解压缩(我检查.biicode / boost文件夹)。然而,我得到了一些问题(可以找到跟踪版本here)并且配置过程失败:
$ bii configure --verbose
DEBUG: Everything up to date
DEBUG: No valid files found in d:\C++\Workspace\testx\blocks
INFO: Processing changes...
Running: "cmake" -G "Visual Studio 12" -Wno-dev ..\cmake
BLOCK: user/testx
-----------------------------------------------------------
CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_1111111111):
__func_1111111111 Function invoked with incorrect arguments for function
named: __func_1111111111
Call Stack (most recent call first):
C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:42 (task_run_next)
../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
../deps/boost/install/build_jobs.cmake:1 (include)
../deps/boost/install/install.cmake:2 (include)
../deps/biicode/boost/setup.cmake:1 (include)
../../CMakeLists.txt:1 (include)
CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_6oohAf7Azh):
__func_6oohAf7Azh Function invoked with incorrect arguments for function
named: __func_6oohAf7Azh
Call Stack (most recent call first):
C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
../deps/boost/install/build_jobs.cmake:1 (include)
../deps/boost/install/install.cmake:2 (include)
../deps/biicode/boost/setup.cmake:1 (include)
../../CMakeLists.txt:1 (include)
CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_F9SWokvms4):
__func_F9SWokvms4 Function invoked with incorrect arguments for function
named: __func_F9SWokvms4
Call Stack (most recent call first):
C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
../deps/boost/install/build_jobs.cmake:1 (include)
../deps/boost/install/install.cmake:2 (include)
../deps/biicode/boost/setup.cmake:1 (include)
../../CMakeLists.txt:1 (include)
CMake Error at C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:1 (__func_Grm00gZzHB):
__func_Grm00gZzHB Function invoked with incorrect arguments for function
named: __func_Grm00gZzHB
Call Stack (most recent call first):
C:/Users/Tobi/AppData/Local/Temp/file_make_temporary_m6QEuq5c7B.tmp:4 (include)
../deps/toeb/cmakepp/cmake/task/task_run_next.cmake:34 (eval)
../deps/toeb/cmakepp/cmake/task/task_run_all.cmake:6 (task_run_next)
../deps/toeb/cmakepp/cmakepp.cmake:110 (task_run_all)
../deps/boost/install/build_jobs.cmake:1 (include)
../deps/boost/install/install.cmake:2 (include)
../deps/biicode/boost/setup.cmake:1 (include)
../../CMakeLists.txt:1 (include)
+ LIB: user_testx
+ EXE: user_testx___main
-- No linking type specified. Assuming static linking
-- Setting up biicode Boost configuration...
-- Building Boost 1.57.0 components with toolset msvc-12.0...
Starting unit_test_framework library build job...
Building Boost components, please wait [ ]
Finished building unit_test_framework library
-- Boost version: 1.57.0
-- Boost version: 1.57.0
-- Found the following Boost libraries:
-- unit_test_framework
-- Configuring incomplete, errors occurred!
See also "D:/C++/Workspace/testx/bii/build/CMakeFiles/CMakeOutput.log".
ERROR: CMake failed
答案 0 :(得分:0)
好的我没弄弄出问题是什么,但我修好了^^。问题是二进制符号RS(ascii中的E1(十六进制))放在https://github.com/toeb/cmakepp的一些源文件中(必须是一个cmake问题,因为在删除它们之后它们会在执行cmake后再次出现)。 / p>
从版本3.1.0-rc1
更新cmake后问题消失了 - > 3.3.0-rc3
。