当前位置:网站首页>[OSG] OSG development (03) -- build the osgqt Library of MSVC version

[OSG] OSG development (03) -- build the osgqt Library of MSVC version

2022-06-21 07:11:00 iriczhao

One 、 Build environment configuration

1、 Will have compiled osg Under the library directory includebinlib Add to Windows In the environment variable of .

2、 take MSVC Version of Qt library (libbin) Add to Windows In the environment variable of .

3、 take MSVC x86 Compiler suite added to Windows In the environment variables .

Click on Configure Button production configuration , As shown in the figure below :

an Cmake term , choice osgQt Installation directory ( If not selected ,Cmake The default will be osgQt The compiled library is installed in c
Under the plate ), As shown in the figure below :

Two 、 structure osgQt

open Visual Studio Tools , Open in Cmake Configure the generated solution ( With xxx.sln The file at the end of the suffix ), Click the small triangle button shown in the figure below to generate the configuration :

( notes : Can generate Debug、Release Version of osgQt library , Here we choose according to our needs !!!)

  • hold install Tick :

  • Then press Ctrl + Shift + B Build build project . As shown below

Last , It will be in the installation directory , Generate osgQt library , As shown in the figure below :


The generated osgQt Copy library to osg Library Directory , This is convenient for us to use in development !

原网站

版权声明
本文为[iriczhao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206210654326081.html