Warn porting QT: Error while loading shared libraries: libdbus-1.so.3 Solution

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.