Static build of Qt, Error



  • hi,
    im trying to build qt statically with

    cd /path/to/Qt
    ./configure -static -prefix /path/to/Qt <other parameters>
    make
    

    and got some errors. Now i am facing the following one:

    .obj/simple-qml_plugin_import.o:simple-qml_plugin_import.cpp:function _GLOBAL__sub_I_simple_qml_plugin_import.cpp: error: undefined reference to 'qt_static_plugin_AssimpParserPlugin()'
    collect2: error: ld returned 1 exit status

    I cant find anything about it. Anyone an idea?

    Thanks.



  • Hi
    what is your distro? first you have to install these:

    https://wiki.qt.io/Building_Qt_5_from_Git

    and also don't build examples and build in release mod

    something like this:

    ./configure -static -release -prefix /path/to/Qt <other parameters> -nomake examples

    and then:
    make -j <no. of processes>
    make install

    This is what I know


Log in to reply
 

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