PDA

View Full Version : running legacy code in Qt Creator newly installed



oindriM
1st September 2016, 11:53
hi, i have a legacy code complete with dll and libs (of Qt) and c++ and .h files. i want to run them on qt(i have qt 4.8.2). plz help

d_stranz
1st September 2016, 18:52
run them on qt

What does that mean? Qt is a set of libraries, it isn't an operating system. It doesn't run programs. Neither does Qt Creator. It is a development environment.

If what you mean is "I want to recompile my C++ files and link to my legacy libraries using Qt Creator", then you will probably need to configure a Qt Creator "kit" that uses the same compiler as your legacy dlls and libs were built with (assuming you cannot rebuild them from sources), and the same version of the Qt libraries that the legacy dlls use. You cannot mix new and old Qt versions, and a newer compiler may have a different version of the runtime libraries than your legacy dlls use, so there could be compatibility problems.

The Qt Creator docs tell how to add and configure kits (http://doc.qt.io/qtcreator/creator-targets.html).