Project ERROR: Library 'assimp' is not defined.
-
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 testsConfigure runs with no issues and reports that it finds assimp in both the system and qt 3rd party versions. I have installed
libassimp-devpackage for Ubuntu.I next run
make -j4and this step completes with no issues. Then, I runsudo make installand after about a minute or so in, it stops and reports that it cannot findassimpwith 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
assimpheaders and/or libraries. So, my question is, is there a way to tell Qt in either theconfigureormakestage to look in a specific place for theassimplibraries?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.
-
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 testsConfigure runs with no issues and reports that it finds assimp in both the system and qt 3rd party versions. I have installed
libassimp-devpackage for Ubuntu.I next run
make -j4and this step completes with no issues. Then, I runsudo make installand after about a minute or so in, it stops and reports that it cannot findassimpwith 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
assimpheaders and/or libraries. So, my question is, is there a way to tell Qt in either theconfigureormakestage to look in a specific place for theassimplibraries?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.
Adding to this thread in case others have similar issues. I solved the
assimpissue 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 installModify the
-j4parameter based on how many CPU cores you have... or leave it off completely.Then, back in the Qt code, delete the
config.cachefile, and run config again. I had some later issues withwebengineso I modified my config statement to skip it like so:../configure -debug -prefix /opt/Qt5.15.2 -opensource -nomake tests -skip webengineThen run
make -j4andsudo make install. After that, it compiled and installed with no errors.You will also want to configure your
PATHvariable 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)
-
C Cryptik has marked this topic as solved on