Home > Mobile >  QT generate dynamic link library, header files include the QNetWork, how do you pack?
QT generate dynamic link library, header files include the QNetWork, how do you pack?

Time:11-30

Write a SDK in QT, generate dynamic link libraries, the SDK with some of the QT library functions, such as header files include "QNetWork", use QTcpSocket sending messages,
Now packaged into a DLL, calls to other QT project no problem, just the same loading QNetWork went, but if I want to give the SDK to other development tools, such as VS, MFC, such as no QNetWork library, according to the file cannot find the path, what should you do? My idea is to put the QT library files packaged together, but how to do? consult

CodePudding user response:

Looks like the qt comes with special packaging tool command

CodePudding user response:

Don't can take dynamic libraries are packaged together?

CodePudding user response:

Or packaged together when the SDK package QNetWork dynamic library, or use Qt static library building your SDK dynamic libraries

CodePudding user response:

Take QNetWork library and generated library with post, just put the same directory, in addition to the MFC using core, these libraries are also need

CodePudding user response:

You can write an executable in QT demo, to call your library, then use QT command line with windeployqt demo. Exe command all the library depends on packaging to come in, and then put your demo. Exe deleted can be packaged to others, so as not to find the QT library error,
  •  Tags:  
  • Qt
  • Related