生成open3d项目报错:error LNK2001: 无法解析的外部符号 __imp_glViewport

在使用open3d生成项目时遇到了错误:LNK2001,无法解析外部符号 __imp_glViewport 等多个与OpenGL相关的符号。解决方法是在Visual Studio的项目属性中,于连接器->输入的附加依赖项添加缺失的opengl32.lib库,这使得项目能够成功生成。
摘要由CSDN通过智能技术生成

生成open3d项目报错:error LNK2001: 无法解析的外部符号 __imp_glViewport

问题

已启动生成…
1>------ 已启动生成: 项目: Radar_Calculation, 配置: Release x64 ------
1>stdafx.cpp
1>Radar_Calculation.cpp
1> 正在创建库 D:\CargoProjectCode\shijueC++\Radar_Calculation\x64\Release\Radar_Calculation.lib 和对象 D:\CargoProjectCode\shijueC++\Radar_Calculation\x64\Release\Radar_Calculation.exp
1>Open3D.lib(ViewControl.obj) : error LNK2001: 无法解析的外部符号 __imp_glViewport
1>Open3D.lib(RGBDImageShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glViewport
1>Open3D.lib(VisualizerRender.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(VisualizerWithEditing.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(VisualizerWithVertexSelection.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(ImageMaskShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(ImageShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(RGBDImageShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(TexturePhongShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(TextureSimpleShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glBindTexture
1>Open3D.lib(VisualizerRender.obj) : error LNK2001: 无法解析的外部符号 __imp_glDeleteTextures
1>Open3D.lib(ImageMaskShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDeleteTextures
1>Open3D.lib(ImageShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDeleteTextures
1>Open3D.lib(RGBDImageShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDeleteTextures
1>Open3D.lib(TexturePhongShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDeleteTextures
1>Open3D.lib(TextureSimpleShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDeleteTextures
1>Open3D.lib(Simple2DShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDisable
1>Open3D.lib(VisualizerRender.obj) : error LNK2001: 无法解析的外部符号 __imp_glDisable
1>Open3D.lib(VisualizerWithEditing.obj) : error LNK2001: 无法解析的外部符号 __imp_glDisable
1>Open3D.lib(VisualizerWithVertexSelection.obj) : error LNK2001: 无法解析的外部符号 __imp_glDisable
1>Open3D.lib(ImageMaskShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDisable
1>Open3D.lib(SimpleBlackShader.obj) : error LNK2001: 无法解析的外部符号 __imp_glDisable
1>Open3D.lib(Si

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值