当前位置:网站首页>【osg】OSG开发(03)——构建MSVC版的osgQt库
【osg】OSG开发(03)——构建MSVC版的osgQt库
2022-06-21 06:54:00 【iriczhao】
一、构建环境配置
1、将已经编译好的osg库目录下的include、bin、lib添加到Windows的环境变量中。
2、将MSVC版的Qt库(lib、bin)添加到Windows的环境变量中。
3、将MSVC x86编译器套件添加到Windows环境变量中。
点击Configure按钮生产配置,如下图所示:


展开Cmake项,选择osgQt的安装目录(如果不选择,Cmake会默认将osgQt编译好的库安装到c
盘下),如下图所示:

二、构建osgQt
打开Visual Studio工具,打开在Cmake配置生成的解决方案(以xxx.sln后缀结尾的文件),点击下图所示的小三角按钮进行生成配置:

(注:可以生成Debug、Release版的osgQt库,这里根据我们的需要而选择!!!)
- 把install项勾上:

- 然后按
Ctrl + Shift + B构建编译工程。如下所示

最后,会在安装目录下,生成osgQt库,如下图所示:

将生成的osgQt库拷贝到osg库目录下,这样方便我们在开发中使用!
边栏推荐
猜你喜欢
随机推荐
Pyg tutorial (4): Customizing datasets
Weather forecast applet source code / weather wechat applet source code
MySQL使用什么作为主键比较好
【GNN】GNN图神经网络工具箱的应用和matlab仿真
Work
工作那点事
Pyg tutorial (3): neighbor sampling
Bol Bohr's original dual currency driving model leads the new hotspot of dfi+nft+web3.0
[flutter special topic] 72 graphic minimalist custom running lamp acemarquee yyds dry goods inventory
Hub, switch, router
PostgreSQL和MySQL应该如何选择
【JS】截取字符串
(programming exercises of various regular numbers) the prime number in the output range, the factorization prime factor of an integer, the maximum common divisor and minimum common multiple of two num
[JS] intercepting string
Data analysis part: common indicators of different industries
集线器、交换机、路由器
MySQL MHA
flutter jpush
微信小程序_4,WXSS模板样式
微信小程序_5,页面配置









