Important: Please read the Qt Code of Conduct -

Linking problems

  • hi ,
    i am trying to compile an application using Qtcreator ,when the make file tries to cross compile the app using the toolchaine of the target i get the following error.

    .../arm-fsl-linux-gnueabi/bin/ld: cannot find -lpng
    ./arm-fsl-linux-gnueabi/bin/ld: cannot find -lfreetype

    i wanted to check the /arm-fsl-linux-gnueabi/bin/ld , i found that it is an executable so how can i verify their existing,? is this error linked to the toolchaine or what? i am completly lost can any one help me please, it's my first experience with qt creator

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since you are cross compiling, are you sure you have these libraries installed properly ?

  • hi thanks
    the path to this ../bin/ld is an excuted file so i can't check it, i guess they are just warning
    but now i am very confused i followed the documentation of my target regarding the debloyement instruction but the app does not deploy .
    can you provide me with some tutorial on how to build and debug your application within QtCreator by selecting the build target for the remote target

  • Lifetime Qt Champion

    ld is the linker. It's not a warning, that message says that it can find two dependencies of your application which are the png and free type libraries. Do you have them for your target ?

    The deployment doesn't happen because your compilation fails

    What target is it by the way ?

  • i fixed that problem by adding libraries to project .thx
    my target is an arm based board

  • Lifetime Qt Champion

    Good !

    arm board I had guessed ;) It's the model that I wanted to know :)

    Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

Log in to reply