undefined symbol: _ZN7QPixmap16fromImageInPlaceER6QImage6QFlagsIN2Qt19ImageConversionFlagEE



  • I compiled a Qt application with QtCreator and it runs and works fine on my system (Ubuntu 14).
    However, on 2 other system (also Ubuntu 14), I get the following error when I enter a screen with QImages:

    undefined symbol: _ZN7QPixmap16fromImageInPlaceER6QImage6QFlagsIN2Qt19ImageConversionFlagEE
    

    and the application crashes.

    Note that I had a similar issue with QString. I was getting the following error, also only on 2 out of 3 systems:

    undefined symbol: _ZN7QString13toUtf8_helperERKS
    

    and solved it by adding this line to the .pro file:

    QMAKE_CXXFLAGS += -DQT_COMPILING_QSTRING_COMPAT_CPP
    

    So maybe this can be solved similarly, by adding another flag to the compiler?

    Thanks


  • Moderators

    Which Qt version do you use to build your application?
    Do you provide all needed Qt libraries together with your application or is it using Qt libraries provided with Ubuntu?



  • @jsulm I build with Qt Creator. The specified Kit is: Desktop Qt 5.5.1 GCC 64bit
    I don't provide any Qt libraries along with my application. I provide only the executable file. All the systems have Qt libraries installed. Do I need to verify they all have the same Qt libraries version? If so, how can I do that?

    Thanks


  • Moderators

    Ubuntu 14.? provides older Qt version than the one you use!
    You should either provide Qt libraries which are used by your application or use Ubuntu Qt libraries to build your app if you use same Ubuntu version.
    See http://doc.qt.io/qt-5/deployment.html


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.