visual-studio - 传感器模拟器构建失败并出现 LNK1112 错误
问题描述
我正在尝试按照此处的步骤构建和运行传感器模拟器:http ://www.movesense.com/docs/esw/getting_started/#build-commands-sensor-simulator
我有:
- 拉了回购
- 创建 simuBuild 文件夹
- 跑
cmake -G "Visual Studio 16 2019" -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ ../samples/blinky_app
- 然后打开
Project.sln
文件 - 选择 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 2017有所帮助。显然它不适用于 2019 版本。
推荐阅读
- scenekit - 如何移动从 Blender 导入的节点
- c - 在 Ubuntu for Windows IIS Server 上运行,C 代码为 recv() 返回 -1
- ios - 如何使嵌入的 YouTube 视频在 IOS 的 Cordova 应用程序的 IFrame 中工作?
- php - PHP 在 adobe reader 中打开 PDF 文件
- javascript - 让我的代码在一个浏览器选项卡的后台运行
- sql - ASP Classic:新表的记录集记录计数 -1 但旧表可以吗?
- azure - 如果用户已经使用 AzureAD 对 MainApp 进行了身份验证,是否应该要求 MainApp 中包含的应用重新使用 AzureAD 进行身份验证
- firebase - 如何将颤振应用程序与 2 firebase 数据库集成
- ios - 如何在 UIView 之外读取 ApplePencil 压力数据?
- python - Pandas DataFrame to_excel中的多个标头