我正在使用 mrpt 构建一个项目。我在 c++ 项目 Visual Studio 2015 64 位中链接 Windows 二进制文件。当我运行此代码时,创建一个窗口:
//。H
#include <mrpt/opengl.h>
#include <mrpt/opengl/CPointCloudColoured.h>
#include <mrpt/gui.h>
#include <mrpt/utils/CConfigFile.h>
#include <mrpt/utils/CConfigFileBase.h>
using namespace mrpt;
using namespace mrpt::gui;
using namespace mrpt::poses;
using namespace mrpt::utils;
using namespace mrpt::math;
using namespace mrpt::opengl;
...
public:
CDisplayWindow3D* win;
//.cpp(在类的构造函数中)。
win = new CDisplayWindow3D("Scene",1920,1080);
我遇到了崩溃,这是:
Exception thrown at 0x00007FFA6F012356 (libmrpt-gui156_msvc140_x64.dll) in dataset.exe: 0xC0000005: Access violation reading location 0x000000000000AE18.
我有这些包含路径:
C:\Program Files\mrpt-1.5.6\libs\hwdrivers\include
C:\Program Files\mrpt-1.5.6\libs\graphs\include
C:\Program Files\mrpt-1.5.6\libs\vision\include
C:\Program Files\mrpt-1.5.6\libs\obs\include
C:\Program Files\mrpt-1.5.6\libs\maps\include
C:\Program Files\mrpt-1.5.6\libs\gui\include
C:\Program Files\mrpt-1.5.6\libs\opengl\include
C:\Program Files\mrpt-1.5.6\libs\base\include
C:\Program Files\mrpt-1.5.6\include\mrpt\mrpt-config
这些库链接:
libmrpt-base156_msvc140_x64.lib
libmrpt-opengl156_msvc140_x64.lib
libmrpt-gui156_msvc140_x64.lib
libmrpt-maps156_msvc140_x64.lib
libmrpt-obs156_msvc140_x64.lib
libmrpt-vision156_msvc140_x64.lib
libmrpt-graphs156_msvc140_x64.lib
libmrpt-hwdrivers156_msvc140_x64.lib
为什么会崩溃?我在这里做错了什么?
谢谢你。