53 lines
2.3 KiB
BlitzBasic
53 lines
2.3 KiB
BlitzBasic
DESCRIPTION = "The Point Cloud Library (or PCL) for point cloud processing."
|
|
SECTION = "devel"
|
|
LICENSE = "BSD"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5b8a2a1aa14e6de44b4273134946a34c"
|
|
|
|
DEPENDS = "boost libflann libeigen qhull"
|
|
|
|
PV = "1.9.1+git${SRCPV}"
|
|
SRCREV = "72f41b60a539cd1da67d1329b57222290122a0bb"
|
|
SRC_URI = "git://github.com/PointCloudLibrary/pcl.git \
|
|
file://0001-make-the-pcl-library-compile-with-gcc6.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
EXTRA_OECMAKE += "\
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DHAVE_MM_MALLOC_EXITCODE=0 \
|
|
-DHAVE_POSIX_MEMALIGN_EXITCODE=0 \
|
|
${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DHAVE_SSE4_2_EXTENSIONS_EXITCODE=0", "-DHAVE_SSE4_2_EXTENSIONS_EXITCODE=1", d)} \
|
|
${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DHAVE_SSE4_1_EXTENSIONS_EXITCODE=0", "-DHAVE_SSE4_1_EXTENSIONS_EXITCODE=1", d)} \
|
|
-DHAVE_SSSE3_EXTENSIONS_EXITCODE=0 \
|
|
${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DHAVE_SSE3_EXTENSIONS_EXITCODE=0", "-DHAVE_SSE3_EXTENSIONS_EXITCODE=1", d)} \
|
|
${@bb.utils.contains("TARGET_CC_ARCH", "-msse2", "-DHAVE_SSE2_EXTENSIONS_EXITCODE=0", "-DHAVE_SSE2_EXTENSIONS_EXITCODE=1", d)} \
|
|
${@bb.utils.contains("TARGET_CC_ARCH", "-msse", "-DHAVE_SSE_EXTENSIONS_EXITCODE=0", "-DHAVE_SSE_EXTENSIONS_EXITCODE=1", d)} \
|
|
-DWITH_LIBUSB=FALSE \
|
|
-DWITH_PNG=FALSE \
|
|
-DWITH_QHULL=TRUE \
|
|
-DWITH_CUDA=FALSE \
|
|
-DWITH_QT=FALSE \
|
|
-DWITH_VTK=FALSE \
|
|
-DWITH_PCAP=FALSE \
|
|
-DWITH_OPENGL=FALSE \
|
|
"
|
|
|
|
#Setting -ffloat-store to alleviate 32bit vs 64bit discrepancies on non-SSE platforms.
|
|
CXXFLAGS += "${@bb.utils.contains("TARGET_CC_ARCH", "-mfpmath=sse", "", "-ffloat-store", d)}"
|
|
|
|
inherit cmake
|
|
|
|
FILES_${PN}-dev += "${datadir}/${PN}-1.9/*.cmake ${datadir}/${PN}-1.9/Modules/*.cmake"
|
|
|
|
# The build is really memory hungry (at least with gcc8), even with just -j 8 it triggers OOMK on system with 32GB ram
|
|
# High memory needs mentioned in: https://github.com/PointCloudLibrary/pcl/issues/2284
|
|
# Setting just empty doesn't work, ninja will by default use number of cores available
|
|
PARALLEL_MAKE = "-j4"
|
|
|
|
# Disable thumb for armv[45] to resolve
|
|
# pcl/1.9.1+gitAUTOINC+72f41b60a5-r0/git/features/include/pcl/features/impl/pfh.hpp:129: error: relocation overflow in R_ARM_THM_CALL
|
|
# http://caprica.lgsvl.com:8080/Errors/Details/1510736
|
|
ARM_INSTRUCTION_SET_armv4 = "arm"
|
|
ARM_INSTRUCTION_SET_armv5 = "arm"
|