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 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 runsudo make install
and after about a minute or so in, it stops and reports that it cannot findassimp
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 theconfigure
ormake
stage to look in a specific place for theassimp
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.
-
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 runsudo make install
and after about a minute or so in, it stops and reports that it cannot findassimp
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 theconfigure
ormake
stage to look in a specific place for theassimp
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.
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 withwebengine
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
andsudo 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)
-
C Cryptik has marked this topic as solved on