当前位置:网站首页>QT creator builds osgearth environment (osgqt msvc2017)

QT creator builds osgearth environment (osgqt msvc2017)

2022-06-23 06:30:00 aspiretop

1. Environment building

I use osgearth2.8,osg3.4.0, coordination osgqt, stay qt5.12 In the environment , Compiler is MSVC2017, stay vs2017 Normal compilation on , Migrate to pure qt On , Need to configure C:\Program Files (x86)\Windows Kits\10 Of include Catalog , If there is an error during operation , Need to put qt Rely on all of them

2. Specific operation

pro The contents of the document

QT       += core gui opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = osgearthQT
TEMPLATE = app

DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++11

SOURCES += \
        main.cpp \
        mainwindow.cpp

HEADERS += \
        mainwindow.h

FORMS += \
        mainwindow.ui

OsgDir = E:/6_OSG_Enviroument/1_2022.4.17_osg3.4oe2.8/osg3.4_oe2.8_3rd_vs2017_SDK

CONFIG(release, debug|release) {
        LIBS += -L$${OsgDir}/lib/ -losgA
原网站

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