Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

ld: error: unable to find library -lpnp_basictools



  • Hello,
    I am following the instructions to build Qt for Android (Qt 5.15.2) on a Windows 10 PC (see https://doc.qt.io/qt-5/android-building.html).

    I configured the project successfully and ran "mingw32-make.exe -j" to build the project. After several hours of building, it failed with the following initial error message:

    ld: error: unable to find library -lpnp_basictools
    clang++; error: linker command failed with exit code 1 (use -v to see invocation)
    mingw32-make.exe[7]: *** [Makefile.Armeabi-v7a:129: ..\libplugandpaint_armeabi-v7a.so] Error 1
    .
    .
    .
    

    Here is the full error message:
    -lpnp_basictools library missing.png

    I obtained the source code using the online installer application, but it does not have any fie named, "libplugandpaint_armeabi-v7a.so". Where might I obtain this file, and where would I need to save it? It appears there are other files missing as well:

    • libplugandpaint_arm64-v8a.so
    • libplugandpaint_x86.so
    • libplugandpaint_x86_64.so

    Any help to find a work-around for this fatal build error is most appreciated.



  • I installed LLVM and added an environment variable called, "LLVM_INSTALL_DIR" with location '<path>\LLVM\bin directory ". Then I added this variable to the path variable, reconfigured and rebuilt the project. Problem solved.



  • I installed LLVM and added an environment variable called, "LLVM_INSTALL_DIR" with location '<path>\LLVM\bin directory ". Then I added this variable to the path variable, reconfigured and rebuilt the project. Problem solved.


Log in to reply