Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Project ERROR: Library 'assimp' is not defined.
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: Library 'assimp' is not defined.

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CryptikC Offline
    CryptikC Offline
    Cryptik
    wrote on last edited by Cryptik
    #1

    Re: Project ERROR: Library 'assimp' is not defined.

    Creating a new topic for this. There is an old one with the same name that is marked solved, but it is hardly solved, at least not for Qt v5.15.2.

    I am trying to build v 5.15.2 from source package (not Git) on Ubuntu ARM. I can run configure with no problems using the following:

    mkdir build
    cd build
    ../configure -debug -prefix /opt/Qt5.15.2 -opensource -nomake tests
    

    Configure runs with no issues and reports that it finds assimp in both the system and qt 3rd party versions. I have installed libassimp-dev package for Ubuntu.

    I next run make -j4 and this step completes with no issues. Then, I run sudo make install and after about a minute or so in, it stops and reports that it cannot find assimp with the following error:

    Project ERROR: Library 'assimp' is not defined.

    I have tried adding flags to configure (i.e. -qt-assimp), which it accepts, but it does not change the outcome.

    My assumption is that Qt is looking in the wrong place for the assimp headers and/or libraries. So, my question is, is there a way to tell Qt in either the configure or make stage to look in a specific place for the assimp libraries?

    This may have been fixed in newer versions of Qt, but I am stuck having to use 5.15.2 due to a dependency on another software project that requires Qt installed.

    CryptikC 1 Reply Last reply
    0
    • CryptikC Cryptik

      Re: Project ERROR: Library 'assimp' is not defined.

      Creating a new topic for this. There is an old one with the same name that is marked solved, but it is hardly solved, at least not for Qt v5.15.2.

      I am trying to build v 5.15.2 from source package (not Git) on Ubuntu ARM. I can run configure with no problems using the following:

      mkdir build
      cd build
      ../configure -debug -prefix /opt/Qt5.15.2 -opensource -nomake tests
      

      Configure runs with no issues and reports that it finds assimp in both the system and qt 3rd party versions. I have installed libassimp-dev package for Ubuntu.

      I next run make -j4 and this step completes with no issues. Then, I run sudo make install and after about a minute or so in, it stops and reports that it cannot find assimp with the following error:

      Project ERROR: Library 'assimp' is not defined.

      I have tried adding flags to configure (i.e. -qt-assimp), which it accepts, but it does not change the outcome.

      My assumption is that Qt is looking in the wrong place for the assimp headers and/or libraries. So, my question is, is there a way to tell Qt in either the configure or make stage to look in a specific place for the assimp libraries?

      This may have been fixed in newer versions of Qt, but I am stuck having to use 5.15.2 due to a dependency on another software project that requires Qt installed.

      CryptikC Offline
      CryptikC Offline
      Cryptik
      wrote on last edited by Cryptik
      #2

      @Cryptik

      Adding to this thread in case others have similar issues. I solved the assimp issue by installing the library from the source. To do that, clone and build the git repo like this:

      git clone https://github.com/assimp/assimp.git
      cd assimp
      cmake CMakeLists.txt
      make -j4
      sudo make install
      

      Modify the -j4 parameter based on how many CPU cores you have... or leave it off completely.

      Then, back in the Qt code, delete the config.cache file, and run config again. I had some later issues with webengine so I modified my config statement to skip it like so:

      ../configure -debug -prefix /opt/Qt5.15.2 -opensource -nomake tests -skip webengine
      

      Then run make -j4 and sudo make install. After that, it compiled and installed with no errors.

      You will also want to configure your PATH variable correctly and perhaps build the documentation. You can see how to do that here:

      [https://doc.qt.io/qt-5/linux-building.html](link url)

      1 Reply Last reply
      0
      • CryptikC Cryptik has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved