pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pdal-lib, CMake, c++ and "system" includes and libraries



On 7/14/23 21:30, tlaronde%polynum.com@localhost wrote:
Hello,

I'm trying to compile geography/pdal-lib, and the compilation chokes
on work/PDAL-2.2.0-src/pdal/util/private/BacktraceUnwind.cpp

because of:

#include <libunwind.h>

that it only searches in system directories, while it exists under
/usr/pkg/include/. (If, by changing <...> to "..." and copying the
header files in the directory, it passes this, it chokes after not
finding the library for the very same reasons: not searching it in
/usr/pkg/).

There are various "flags.make" and, for what I understand,
CXX_INCLUDES includes -I/usr/pkg/include and CXX_FLAGS also.

Has someone any clue about where the behavior has to be corrected?


That's most likely because libunwind.h is not buildlinked. See https://www.netbsd.org/docs/pkgsrc/buildlink.html

Home | Main Index | Thread Index | Old Index