当前位置:网站首页>Configuring assimp Library in QT environment (MinGW compiler)
Configuring assimp Library in QT environment (MinGW compiler)
2022-06-26 21:50:00 【Elsa's Secret brother】
1. preparation
download Cmake
download QT
download Assimp library
Note here to download 5.1.0~5.1.6( Don't download 5.2 Above version , Compilation will not pass ), Here we use 5.1.6 demonstration
2. Compile to generate the corresponding compiler Assimp file
open cmake
take scource code Locate the downloaded assimp-5.1.x,
take build The directory is located in the same directory build32 or build64 in (build The folder does not exist , Just type in )
notes :64 Bit could not be constructed correctly 
Click on Configure, eject 
Click on Yes, choice MinGW Makefiles,Specify native compilers,Next
open QT The installation directory ( Follow your own directory )
stay Tools In the directory C:/Qt/Tools/mingw810_32/bin/gcc.exe,C:/Qt/Tools/mingw810_32/bin/g++.exe To compile the 32 Bit environment . stay C:/Qt/Tools/mingw810_64/bin/gcc.exe,C:/Qt/Tools/mingw810_64/bin/g++.exe To compile the 64 Bit environment
With 32 Position as an example :
finish
Again Configure, Turn white 
Click on Generate
3. add to MinGW environment variable :
hold Qt Under the root directory of ./Tool/mingw810_32/bin The directory is also added to the environment variable 
attribute -》 Advanced system setup -》 environment variable 
Find... In the system variable Path, newly build , add to QT MinGW compiler 
Successfully added can be added in cmd Use in mingw32-make Instructions , The following indicates success 
4. Generate dll Link to the file
open cmd,cd To assimp-5.1.6\assimp-5.1.6\build32, Input mingw32-make
Compile to 100%, sign out 
QT link Assimp library
(1)include
stay assimp-5.1.6\assimp-5.1.6\include Find assimp,
Copy to project file include Next 
stay assimp-5.1.6\assimp-5.1.6\build32\include\assimp Find config.h
Copy the file to the project file include/assimp Next 
(2) link
QT link


The library file includes the generated libassimp.dll.a( take libassimp.dll.a The file is placed in the project file directory )
The containing path is project include
dll File to add
stay assimp-5.1.6\assimp-5.1.6\build32\bin In the directory libassimp-5.dll
Copy the file , Copied to the build-RenderLite-Desktop_Qt_5_15_1_MinGW_32_bit-Release,build-RenderLite-Desktop_Qt_5_15_1_MinGW_32_bit-Debug Two files 

test
#include <assimp/Importer.hpp>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Assimp::Importer importer;
....
}
The successful running 
边栏推荐
- What is the “ How to remove a custom form list?
- 360手机助手首家接入APP签名服务系统 助力隐私安全分发
- Homebrew installation in MacOS environment [email protected]
- random_normal_initializer 使用
- MATLAB与Mysql数据库连接并数据交换(基于ODBC)
- 数据治理啥都干
- 关于appium踩坑 :Encountered internal error running command: Error: Cannot verify the signature of (已解决)
- BN(Batch Normalization) 的理论理解以及在tf.keras中的实际应用和总结
- Convolutional neural network (CNN) explanation and tensorflow2 code implementation
- curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection
猜你喜欢

QT based "synthetic watermelon" game

第2章 构建自定义语料库

Leetcode(763)——划分字母区间

茂莱光学科创板上市:拟募资4亿 范一与范浩兄弟为实控人

俞敏洪:新东方并不存在倒下再翻身,摧毁又雄起的逆转

关于appium踩坑 :Encountered internal error running command: Error: Cannot verify the signature of (已解决)

用C#通过sql语句操作Sqlserver数据库教程

MATLAB与Mysql数据库连接并数据交换(基于ODBC)

会计要素包括哪些内容

Icml2022 | neurotoxin: a lasting back door to federal learning
随机推荐
传纸条【动态规划】
leetcode:710. Random numbers in the blacklist [mapping thinking]
证券注册开户有没有什么风险?安全吗?
AI intelligent matting tool - hair can be seen
财务费用分析怎么分析
leetcode:152. 乘积最大子数组【考虑两个维度的dp】
Kdd2022 𞓜 unified session recommendation system based on knowledge enhancement prompt learning
股票炒股注册开户有没有什么风险?安全吗?
Which securities company is the most convenient, safe and reliable for opening an account
fastadmin极光推送发送消息的时候registration_id多个用逗号分割后无效
YOLOv6:又快又准的目标检测框架开源啦
中金证券经理给的开户二维码办理股票开户安全吗?我想开个户
Introduction of classic wide & deep model and implementation of tensorflow 2 code
ICML2022 | Neurotoxin:联邦学习的持久后门
茂莱光学科创板上市:拟募资4亿 范一与范浩兄弟为实控人
How to enable Hana cloud service on SAP BTP platform
BN(Batch Normalization) 的理论理解以及在tf.keras中的实际应用和总结
leetcode:710. 黑名单中的随机数【映射思维】
Is it safe to open a stock account with the QR code given by the CICC securities manager? I want to open an account
Simple Lianliankan games based on QT