【问题标题】:Sensor simulator build fails with LNK1112 error传感器模拟器构建失败并出现 LNK1112 错误
【发布时间】:2021-10-07 22:50:44
【问题描述】:

我正在尝试按照此处的步骤构建和运行传感器模拟器:http://www.movesense.com/docs/esw/getting_started/#build-commands-sensor-simulator

我有:

  1. 拉回了回购
  2. 已创建 simuBuild 文件夹
  3. 运行cmake -G "Visual Studio 16 2019" -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ ../samples/blinky_app
  4. 然后打开Project.sln文件
  5. 选择 Movesense 作为启动项目

现在,当我尝试使用 Debug -> Start new instance 运行它时,我收到以下错误:movesense-coreD.lib(ResourceClient.obj) : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'。我该如何解决这个问题?

我还尝试将 Linker -> Command line: Additional Options 设置为 %(AdditionalOptions) /machine:x86 但这也失败,出现类似但略有不同的错误:Movesense.dir\Debug\App.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86

【问题讨论】:

  • 有什么我可以尝试的想法吗?

标签: visual-studio movesense


【解决方案1】:

有同样的问题。降级到 Visual Studio 2017 有所帮助。显然它不适用于 2019 版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-19
    • 1970-01-01
    • 2010-11-06
    • 1970-01-01
    • 1970-01-01
    • 2021-11-27
    • 2022-11-10
    相关资源
    最近更新 更多