1

我在使用 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”,则会下载并提取 boost(我检查了 .biicode/boost 文件夹)。尽管如此,我还是遇到了一些奇怪的错误(可以在此处找到跟踪版本)并且配置过程失败:

$ 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
4

1 回答 1

0

好的,我没弄清楚问题是什么,但我修复了它^^。问题在于二进制符号 RS(ascii 中的 E1(十六进制))被放置在https://github.com/toeb/cmakepp的某些源文件中(一定是 cmake 问题,因为删除它们后它们又出现了执行cmake后)。

3.1.0-rc1从 version ->更新 cmake 后问题消失了3.3.0-rc3

于 2015-07-10T19:32:28.003 回答