Building vsgExamples with -DCMAKE_BUILD_TYPE=Debug does not work, "bin/vsgallocator: assimp::assimp-NOTFOUND"

76 views
Skip to first unread message

Raymond de Vries

unread,
Aug 2, 2022, 11:45:44 AM8/2/22
to vsg-users : VulkanSceneGraph Developer Discussion Group
Hi all,

I was trying to build the vsgExamples (master, on Ubuntu 20.04) for
Debug build type and that's not working. Building with Release type
builds fine.

When using cmake with -DCMAKE_BUILD_TYPE=Release the build is ok while
using cmake with -DCMAKE_BUILD_TYPE=Debug configures ok but make-ing
results in:
examples/core/vsgallocator/CMakeFiles/vsgallocator.dir/build.make:108:
*** target pattern contains no '%'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:1411:
examples/core/vsgallocator/CMakeFiles/vsgallocator.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

build.make line 108 shows:
bin/vsgallocator: assimp::assimp-NOTFOUND

I have assimp packages installed like:
dpkg -l | grep assimp
ii  libassimp-dev:amd64 5.0.1~ds0-1build1                    
amd64        3D model import library (development)
ii  libassimp5:amd64 5.0.1~ds0-1build1                     amd64       
3D model import library
ii  qt3d-assimpsceneimport-plugin:amd64
5.12.8+dfsg-0ubuntu1                  amd64        Qt 3D GL Assimp scene
import plugin

I don't have the up-to-date cmake knowledge so I'm not sure what
happens... Any idea?

Looking again at the Release build show for the cmake configure:
CMake Warning (dev) at
/usr/lib/x86_64-linux-gnu/cmake/assimp-5.0/assimpTargets.cmake:54 (if):
  if given arguments:

    "ON"

  An argument named "ON" appears in a conditional statement.  Policy
CMP0012
  is not set: if() recognizes numbers and boolean constants.  Run "cmake
  --help-policy CMP0012" for policy details.  Use the cmake_policy
command to
  set the policy and suppress this warning.

and the build.cmake now shows on line 108:
bin/vsgallocator: /usr/lib/x86_64-linux-gnu/libassimp.so.5

Btw I updated cmake before to version 3.22.3 by building and installing
from source code.

Cheers,
Raymond



Robert Osfield

unread,
Aug 2, 2022, 12:23:58 PM8/2/22
to vsg-...@googlegroups.com
Does the assimp package install the debug version of the library?

To help test against different assimp versions I have been building assimp myself, I currently have assump-5.2 built and installed locally.  I have just done a debug build and it works fine, even though I only have the release build of libassimp.so.5.2.0 installed.

% cmake --version
cmake version 3.22.1

And upgraded to Kubuntu-22.04.

I compiled on Xubuntu-18.04 partition this morning.

At this point I don't know what might amiss with your build.  Perhaps it's time for me to try install assimp from the Ubuntu repository to see if that works or fails with release and debug builds.

Raymond de Vries

unread,
Aug 2, 2022, 12:54:42 PM8/2/22
to vsg-...@googlegroups.com
Hi,

Not sure what goes wrong and since you mention this I will try the same on 22.04 and also building assimp-5.2 myself.

Cheers,
Raymond
--
You received this message because you are subscribed to the Google Groups "vsg-users : VulkanSceneGraph Developer Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vsg-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vsg-users/CAFN7Y%2BX1j%2BN52ggQKD-y3%2BJnxPxZ%3DaHDjcves8oNWjtc%2BU5%2Brw%40mail.gmail.com.

Raymond de Vries

unread,
Aug 2, 2022, 2:07:31 PM8/2/22
to vsg-...@googlegroups.com
Hi,

I have checked on Ubuntu 22.04 (MATE fwiw) and there I don't see the issue. I tried a few different builds with Release and Debug (and Debug build of an app against the Release vsg) and everything was ok. I saw the assimp v5.2 is installed on Ubuntu.

It's a rather old Ubuntu 20.04 installation so there might be something wrong there, although I never experienced anything strange on that machine. To me this is not an issue since I wanted to upgrade to 22.04 anyway so only if you are curious and eager to fix it on 20.04, I will do a fresh install and double check.


Cheers,
Raymond




On 02-08-2022 18:23, Robert Osfield wrote:
Reply all
Reply to author
Forward
0 new messages