It is really difficult to use a memory module in QT. According to the previous article, the Lib with QT with runtime has been compiled. In order to compile this QT, we installed the dbus-1.0.2 first.
Cross-compile our QT program on the PC. After generating the. Pro file, remember to add QT ++ = composer. Because token is an optional module, QT cannot be found if it is not added. However, other modules, such as QT + = core gui qt + = network, do not add or report errors.
If you cross-compile the QT application to arm, this error will be prompted:
Error while loading Shared Library: libdbus-1.so.3: cannot open
Shared object file: no such file or directory
Solution: There is a lib folder when we install the dbus-1.0.2. Find the following three files:
Package and compress these three files and send them to the Board through the terminal. Decompress the package to the lib directory of QT in our board. My path is:/usr/local/ARM/arm2-qt-4.8.1/lib.
In this way, the running will not prompt that the libdbus-1.so.3 cannot be found.
That is, you must not only copy the compiled QT lib with runtime module to the Board, but also set the corresponding environment variables. Copy the above three files to the Lib folder of QT on the board.