Cannot find library (Qt5.2.1 + Fedora 20 64-bit)



  • Just did the fresh install of Qt5.2.1 on Fedora 20 64-bit, when build my old project (it built before) it can’t find libraries:

    /usr/bin/ld: cannot find -lxslt
    /usr/bin/ld: cannot find -lgio-2.0
    /usr/bin/ld: cannot find -lgstapp-0.10
    /usr/bin/ld: cannot find -lgstinterfaces-0.10
    /usr/bin/ld: cannot find -lgstpbutils-0.10
    /usr/bin/ld: cannot find -lgstvideo-0.10
    /usr/bin/ld: cannot find -lgstbase-0.10
    /usr/bin/ld: cannot find -lgstreamer-0.10
    /usr/bin/ld: cannot find -lgobject-2.0
    /usr/bin/ld: cannot find -lgmodule-2.0
    /usr/bin/ld: cannot find -lxml2
    /usr/bin/ld: cannot find -lgthread-2.0
    /usr/bin/ld: cannot find -lglib-2.0
    collect2: error: ld returned 1 exit status
    make: *** [CubeTimer] Error 1
    22:35:40: The process “/usr/bin/make” exited with code 2.
    Error while building/deploying project xxx (kit: Desktop Qt 5.2.1 GCC 64bit)
    When executing step ‘Make’

    Any help, please?


  • Lifetime Qt Champion

    Hi,

    You are missing at least the gstreamer dev packages on your system. Just install them and you should be good to go



  • [quote author="SGaist" date="1396940834"]Hi,

    You are missing at least the gstreamer dev packages on your system. Just install them and you should be good to go[/quote]

    Thanks a lot, I installed gstreamer-devel package, and the error message is less:

    /usr/bin/ld: cannot find -lxslt
    /usr/bin/ld: cannot find -lgstapp-0.10
    /usr/bin/ld: cannot find -lgstinterfaces-0.10
    /usr/bin/ld: cannot find -lgstpbutils-0.10
    /usr/bin/ld: cannot find -lgstvideo-0.10
    collect2: error: ld returned 1 exit status

    which package should I install for this?

    Thanks!



  • Solved! Thank you so much!


  • Lifetime Qt Champion

    libxslt-dev

    The others are also gstreamer related packages, I don't have the corresponding name at hand but you should easily find them using your package manager



  • I am getting the same error
    :-1: error: cannot find -lGL

    yum install libxslt-dev
    No package libxslt-dev available.
    Error: Nothing to do

    but I did install
    yum install libxslt-devel

    but it still gives me the same error



  • I am getting the same error
    :-1: error: cannot find -lGL

    yum install libxslt-dev
    No package libxslt-dev available.
    Error: Nothing to do

    but I did install
    yum install libxslt-devel

    but it still gives me the same error



  • If anyone is looking to do this then "yum install qt-creator" worked for me



  • If anyone is looking to do this then "yum install qt-creator" worked for me


  • Lifetime Qt Champion

    It's not the same, the -lGL error is about missing the OpenGL development libraries


  • Lifetime Qt Champion

    It's not the same, the -lGL error is about missing the OpenGL development libraries



  • I got the same error in Ubuntu 14.04. I fixed it by installing qtbase5-dev .


Log in to reply
 

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