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



Le Fri, Jul 14, 2023 at 10:52:50PM +0900, PHO a écrit :
> 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

But unfortunately, adding ../../lang/libunwind/buildlink3.mk does not
solve the problem.

I ended up making, by hand, symbolic links in .buildlink/include/ and
.buildlink/lib/, with the added caveat that libunwind.h is including
__libunwind_config.h so that one has to symlink this one as well.

So thanks! because this was the bit I haven't find: where to put the
needed files under the compiling process nose.
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index