Skip to content

assimp.pc publishes -I$PREFIX/include/assimp, but cimport.h includes <assimp/importerdesc.h> #710

Closed

Description

@nieder

When building Qt53D, I ran into the following problem finding assimp (/sw is my prefix)

$ pkg-config --cflags assimp
-I/sw/include/assimp 

But when the Qt53D test looks for assimp, it fails with this error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -MD -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -isystem /sw/include/assimp -I/sw/lib/qt5-mac/share/qt5/mkspecs/macx-clang -o .obj/main.o main.cpp
In file included from main.cpp:37:
/sw/include/assimp/cimport.h:48:10: fatal error: 'assimp/importerdesc.h' file not found
#include <assimp/importerdesc.h>

Expected: either pkg-config would just publish -I/sw/include, or cimport.h would just include <importerdesc.h>.

Activity

  1. added a commit that references this issue on Dec 11, 2023
  2. added a commit that references this issue on Feb 5, 2024
  3. added
    C++
    on Feb 14, 2026
  4. added a commit that references this issue on Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions