Static build, Error: collect2: ld returned 1 exit status



  • Hi, All.
    I need to static make and install Qt4.8.5 on OpenSuse, dynamic libraries and creator already installed.
    I give the command:
    @
    sudo ./configure -platform linux-g++ -release -static -fontconfig -opensource -confirm-license -gtkstyle -no-webkit -nomake demos -nomake examples -qt-zlib -qt-libpng -qt-libjpeg -prefix /usr/leb/Qt_4static -continue
    sudo make - j3
    @
    during the build (make -j3), I get an error:
    @
    /home/lgosha/qt/qt-everywhere-opensource-src-4.8.5/lib/libQtScript.a(JSGlobalData.o): In function void JSGlobalData.cpp:(.text._ZN5QTWTF20deleteAllPairSecondsIP24OpaqueJSClassContextDataKNS_7HashMapIP13OpaqueJSClassS2_NS_7PtrHashIS5_EENS_10HashTraitsIS5_EENS8_IS2_EEEEEEvRT0_[_ZN5QTWTF20deleteAllPairSecondsIP24OpaqueJSClassContextDataKNS_7HashMapIP13OpaqueJSClassS2_NS_7PtrHashIS5_EENS_10HashTraitsIS5_EENS8_IS2_EEEEEEvRT0_]+0x3d): undefined reference toOpaqueJSClassContextData::~OpaqueJSClassContextData()'
    collect2: error: ld returned 1 exit status
    make[4]: *** [../../../../bin/designer] Error 1
    make[4]: Exit from the catalog /home/lgosha/qt/qt-everywhere-opensource-src-4.8.5/tools/designer/src/designer' make[3]: *** [sub-designer-make_default-ordered] Error 2 make[3]: Exit from the catalog/home/lgosha/qt/qt-everywhere-opensource-src-4.8.5/tools/designer/src'
    make[2]: *** [sub-src-make_default] Error 2
    make[2]: Exit from the catalog /home/lgosha/qt/qt-everywhere-opensource-src-4.8.5/tools/designer' make[1]: *** [sub-designer-make_default-ordered] Error 2 make[1]: Exit from the catalog/home/lgosha/qt/qt-everywhere-opensource-src-4.8.5/tools'
    make: *** [sub-tools-make_default-ordered] Error 2
    @
    What's wrong? How to fix?


Log in to reply
 

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