Closed ekaitz-zarraga closed 4 years ago
Let me be more specific: Guix does not provide /usr/lib or /usr/include directories. Instead, it uses links and search path variables like CPATH and LIBRARY_PATH.
I'm not a CMake expert but it looks like meshlab's dependency search algorithm is not considering environment variables and is only searching in /usr folder.
Could anyone confirm if this is true?
EDIT: Why is it then finding the system libraries? I'm confused
I'm also not a CMake expert, maybe @rpavlik can help here.
By disabling the key ALLOW_SYSTEM_QHULL
, does it compile?
If system qhull is not installed it compiles perfectly fine. I suppose removing the key is going to work as well.
I finally had the chance to dig further in this issue.
Just installed qhull
and tried to compile meshlab in an isolated container. This is what I got:
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/bin/gcc
-- Check for working C compiler: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/bin/c++
-- Check for working CXX compiler: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Searching for required components
-- Found OpenGL: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/lib/libGL.so
-- Searching for required components with bundled fallback
-- Found GLEW: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/include (found version "2.1.0")
-- Searching for optional components
-- Found Lib3ds: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/include
-- Found GMP: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/include (found version "6.2.0")
-- Found muparser: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/include
-- Found OpenCTM: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/include
-- Found Qhull: /gnu/store/1h1xjjkxz9dm6bwdf8d5y3kzm413pc4v-profile/lib/cmake/Qhull/QhullConfig.cmake (found version "7.3.2") found components: qhull
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- - jhead - using bundled source
-- - glew - using system-provided library
-- - Eigen - using system-provided library
-- - newuoa - using bundled source
-- - levmar - using bundled source
-- - lib3ds - using system-provided library
-- - GMP/MPIR - using system-provided GMP library
-- - muparser - using system-provided library
-- - OpenCTM - using system-provided library
-- - structure-synth - using bundled source
-- - qhull - using system-provided library
So it looks fine. But right after that I get this:
-- Configuring done
CMake Error at meshlabplugins/filter_qhull/CMakeLists.txt:15 (add_library):
Target "filter_qhull" links to target "Qhull::qhull" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
I'm missing something but I not just good enough with CMake to fix it myself. Any idea of what's going on?
Hmm, weird. I'll take a peek. Confusingly, it works fine when building in a minimal environment for the Debian package. Can you list the files and locations that are associated with the guix package of qhull?
This is what QHull creates:
/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/
├── bin
│ ├── qconvex
│ ├── qdelaunay
│ ├── qhalf
│ ├── qhull
│ ├── qvoronoi
│ └── rbox
├── include
│ ├── libqhull
│ │ ├── DEPRECATED.txt
│ │ ├── geom.h
│ │ ├── index.htm
│ │ ├── io.h
│ │ ├── libqhull.h
│ │ ├── mem.h
│ │ ├── merge.h
│ │ ├── poly.h
│ │ ├── qh-geom.htm
│ │ ├── qh-globa.htm
│ │ ├── qh-io.htm
│ │ ├── qh-mem.htm
│ │ ├── qh-merge.htm
│ │ ├── qh-poly.htm
│ │ ├── qh-qhull.htm
│ │ ├── qh-set.htm
│ │ ├── qh-stat.htm
│ │ ├── qhull_a.h
│ │ ├── qh-user.htm
│ │ ├── qset.h
│ │ ├── random.h
│ │ ├── stat.h
│ │ └── user.h
│ ├── libqhullcpp
│ │ ├── Coordinates.h
│ │ ├── functionObjects.h
│ │ ├── PointCoordinates.h
│ │ ├── QhullError.h
│ │ ├── QhullFacet.h
│ │ ├── QhullFacetList.h
│ │ ├── QhullFacetSet.h
│ │ ├── Qhull.h
│ │ ├── QhullHyperplane.h
│ │ ├── QhullIterator.h
│ │ ├── QhullLinkedList.h
│ │ ├── QhullPoint.h
│ │ ├── QhullPointSet.h
│ │ ├── QhullPoints.h
│ │ ├── QhullQh.h
│ │ ├── QhullRidge.h
│ │ ├── QhullSet.h
│ │ ├── QhullSets.h
│ │ ├── QhullStat.h
│ │ ├── QhullVertex.h
│ │ ├── QhullVertexSet.h
│ │ ├── RboxPoints.h
│ │ ├── RoadError.h
│ │ ├── RoadLogEvent.h
│ │ └── RoadTest.h
│ └── libqhull_r
│ ├── geom_r.h
│ ├── index.htm
│ ├── io_r.h
│ ├── libqhull_r.h
│ ├── mem_r.h
│ ├── merge_r.h
│ ├── poly_r.h
│ ├── qh-geom_r.htm
│ ├── qh-globa_r.htm
│ ├── qh-io_r.htm
│ ├── qh-mem_r.htm
│ ├── qh-merge_r.htm
│ ├── qh-poly_r.htm
│ ├── qh-qhull_r.htm
│ ├── qh-set_r.htm
│ ├── qh-stat_r.htm
│ ├── qhull_ra.h
│ ├── qh-user_r.htm
│ ├── qset_r.h
│ ├── random_r.h
│ ├── stat_r.h
│ └── user_r.h
├── lib
│ ├── cmake
│ │ └── Qhull
│ │ ├── QhullConfig.cmake
│ │ ├── QhullConfigVersion.cmake
│ │ ├── QhullTargets.cmake
│ │ └── QhullTargets-relwithdebinfo.cmake
│ ├── libqhullcpp.a
│ ├── libqhull_p.so -> libqhull_p.so.7
│ ├── libqhull_p.so.7 -> libqhull_p.so.7.3.2
│ ├── libqhull_p.so.7.3.2
│ ├── libqhull_r.so -> libqhull_r.so.7
│ ├── libqhull_r.so.7 -> libqhull_r.so.7.3.2
│ ├── libqhull_r.so.7.3.2
│ ├── libqhull.so -> libqhull.so.7
│ ├── libqhull.so.7 -> libqhull.so.7.3.2
│ ├── libqhull.so.7.3.2
│ ├── libqhullstatic.a
│ └── libqhullstatic_r.a
└── share
├── doc
│ ├── qhull
│ │ ├── Announce.txt
│ │ ├── COPYING.txt
│ │ ├── index.htm
│ │ ├── normal_voronoi_knauss_oesterle.jpg
│ │ ├── qconvex.htm
│ │ ├── qdelau_f.htm
│ │ ├── qdelaun.htm
│ │ ├── qh--4d.gif
│ │ ├── qhalf.htm
│ │ ├── qh-code.htm
│ │ ├── qh--cone.gif
│ │ ├── qh--dt.gif
│ │ ├── qh-eg.htm
│ │ ├── qh-faq.htm
│ │ ├── qh_findbestfacet-drielsma.pdf
│ │ ├── qh--geom.gif
│ │ ├── qh-get.htm
│ │ ├── qh--half.gif
│ │ ├── qh-impre.htm
│ │ ├── qh-optc.htm
│ │ ├── qh-optf.htm
│ │ ├── qh-optg.htm
│ │ ├── qh-opto.htm
│ │ ├── qh-optp.htm
│ │ ├── qh-optq.htm
│ │ ├── qh-optt.htm
│ │ ├── qh-quick.htm
│ │ ├── qh--rand.gif
│ │ ├── qhull-cpp.xml
│ │ ├── qhull.htm
│ │ ├── qhull.man
│ │ ├── qhull.txt
│ │ ├── qvoron_f.htm
│ │ ├── qvoronoi.htm
│ │ ├── rbox.htm
│ │ ├── rbox.man
│ │ ├── rbox.txt
│ │ ├── README.txt
│ │ └── REGISTER.txt
│ └── qhull-2019.1
│ └── COPYING.txt
└── man
└── man1
├── qhull.1.gz
└── rbox.1.gz
And those lib
, include
, share
and bin
directories are linked to current profile that is accessible via LIBRARY_PATH
, C_INCLUDE_PATH
, CPLUS_INCLUDE_PATH
and so on by this:
export CMAKE_PREFIX_PATH="/gnu/store/1k7k66qvh40kzjyhwxaw3qyqs3k2lg0s-git-checkout/:/gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5/:/gnu/store/nash8slqngrzn2pgqrff6abz8vp6vws6-qtbase-5.12.7/:/gnu/store/y6fdnkx5md8yhhrad7dd4d6ymkf0qknk-qtscript-5.12.7/:/gnu/store/wigjsjr8ywbpvwqfln9nf2rczswh1csw-qtxmlpatterns-5.12.7/:/gnu/store/8jn365r0kk69j1f4b1q2b7aa2qm1xvg1-mesa-19.3.4/:/gnu/store/15pk8k1s81f44hn98sxvyy4xqx3700vl-glu-9.0.1/:/gnu/store/gf7skbhb6i6s4xcrgcw9kaci98sph226-glew-2.1.0/:/gnu/store/6mrd12vn63rnik8lhgd86vpyp6l63s6y-muparser-2.2.5-2/:/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/:/gnu/store/azmwdwavv9r08zvzp200y8c6hkm0dsrr-eigen-3.3.7/:/gnu/store/v2yp6illdpspg88qm63digl02m44g1sp-libfreenect-0.6.1/:/gnu/store/3xcw30h2s0nlqiwcvq11jmnrzl0zrh08-lib3ds-1.3.0/:/gnu/store/ynai1zjff521c4lsj4xz085d500nw03h-openctm-1.0.3.603/:/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/:/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32/:/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10/:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/:/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7/:/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6/:/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0/:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/:/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8/:/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4/:/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/:/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/:/gnu/store/mpa04aq8lblbcviyxywxcsb1zbi0mf39-ld-wrapper-0/:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/:/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static/:/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31/:/gnu/store/k30a2pgmc6b3ifmq3rn0dr5ng9gr8w81-which-2.21/:/gnu/store/wxl57nkbqgamfp73b7v62kk3f1hiv0cz-xorgproto-2019.2/:/gnu/store/xk73gal86qn9qps36nhhcl22mybhr4my-libxxf86vm-1.1.4/:/gnu/store/jwga98k68l0h5c45jx7z4jdjzhfc34vm-libxshmfence-1.3/:/gnu/store/19llyrcn4jhcxv81jb4j8q70hpm3155z-libxfixes-5.0.3/:/gnu/store/6nqrv3kxrckl5kvvr71nkr29r2kz4r53-libxdamage-1.1.5/:/gnu/store/nab7hhw326cpmpwyc1rgm0q8sk464qry-libx11-1.6.9/:/gnu/store/k5yxxa1grvssr10kkpbnx3i5gwc2av67-libvdpau-1.3/:/gnu/store/6pwlk6zm427z8381ldsf0f8b0ga9dmim-libdrm-2.4.100/:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/:/gnu/store/lc8irxnwazq340ygkbqh0ask446jzy9k-util-macros-1.19.2/:/gnu/store/2hpgzimhi1vg9n8xagvmqh5sf96svz8q-libxext-1.3.4/:/gnu/store/a8gdwnmpryd39jixzy4xs9p4i7gy17qv-libxcb-1.14/:/gnu/store/6cdl970wcv4jhvpgbh8sdj54a5gwhmwj-libxdmcp-1.1.3/:/gnu/store/h7sy4hr7arjknbyy1aq0xwv6fksnzw9n-libxau-1.0.9/:/gnu/store/klk98l8czl05lvanrr7xl7a9hksac4ak-libpthread-stubs-0.4/"
export CPLUS_INCLUDE_PATH="/gnu/store/nash8slqngrzn2pgqrff6abz8vp6vws6-qtbase-5.12.7/include:/gnu/store/y6fdnkx5md8yhhrad7dd4d6ymkf0qknk-qtscript-5.12.7/include:/gnu/store/wigjsjr8ywbpvwqfln9nf2rczswh1csw-qtxmlpatterns-5.12.7/include:/gnu/store/8jn365r0kk69j1f4b1q2b7aa2qm1xvg1-mesa-19.3.4/include:/gnu/store/15pk8k1s81f44hn98sxvyy4xqx3700vl-glu-9.0.1/include:/gnu/store/gf7skbhb6i6s4xcrgcw9kaci98sph226-glew-2.1.0/include:/gnu/store/6mrd12vn63rnik8lhgd86vpyp6l63s6y-muparser-2.2.5-2/include:/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/include:/gnu/store/azmwdwavv9r08zvzp200y8c6hkm0dsrr-eigen-3.3.7/include:/gnu/store/v2yp6illdpspg88qm63digl02m44g1sp-libfreenect-0.6.1/include:/gnu/store/3xcw30h2s0nlqiwcvq11jmnrzl0zrh08-lib3ds-1.3.0/include:/gnu/store/ynai1zjff521c4lsj4xz085d500nw03h-openctm-1.0.3.603/include:/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/include:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/include:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/include:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/include:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/include:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/include:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/include:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include/c++:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include:/gnu/store/wxl57nkbqgamfp73b7v62kk3f1hiv0cz-xorgproto-2019.2/include:/gnu/store/xk73gal86qn9qps36nhhcl22mybhr4my-libxxf86vm-1.1.4/include:/gnu/store/jwga98k68l0h5c45jx7z4jdjzhfc34vm-libxshmfence-1.3/include:/gnu/store/19llyrcn4jhcxv81jb4j8q70hpm3155z-libxfixes-5.0.3/include:/gnu/store/6nqrv3kxrckl5kvvr71nkr29r2kz4r53-libxdamage-1.1.5/include:/gnu/store/nab7hhw326cpmpwyc1rgm0q8sk464qry-libx11-1.6.9/include:/gnu/store/k5yxxa1grvssr10kkpbnx3i5gwc2av67-libvdpau-1.3/include:/gnu/store/6pwlk6zm427z8381ldsf0f8b0ga9dmim-libdrm-2.4.100/include:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/include:/gnu/store/2hpgzimhi1vg9n8xagvmqh5sf96svz8q-libxext-1.3.4/include:/gnu/store/a8gdwnmpryd39jixzy4xs9p4i7gy17qv-libxcb-1.14/include:/gnu/store/6cdl970wcv4jhvpgbh8sdj54a5gwhmwj-libxdmcp-1.1.3/include:/gnu/store/h7sy4hr7arjknbyy1aq0xwv6fksnzw9n-libxau-1.0.9/include"
export C_INCLUDE_PATH="/gnu/store/nash8slqngrzn2pgqrff6abz8vp6vws6-qtbase-5.12.7/include:/gnu/store/y6fdnkx5md8yhhrad7dd4d6ymkf0qknk-qtscript-5.12.7/include:/gnu/store/wigjsjr8ywbpvwqfln9nf2rczswh1csw-qtxmlpatterns-5.12.7/include:/gnu/store/8jn365r0kk69j1f4b1q2b7aa2qm1xvg1-mesa-19.3.4/include:/gnu/store/15pk8k1s81f44hn98sxvyy4xqx3700vl-glu-9.0.1/include:/gnu/store/gf7skbhb6i6s4xcrgcw9kaci98sph226-glew-2.1.0/include:/gnu/store/6mrd12vn63rnik8lhgd86vpyp6l63s6y-muparser-2.2.5-2/include:/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/include:/gnu/store/azmwdwavv9r08zvzp200y8c6hkm0dsrr-eigen-3.3.7/include:/gnu/store/v2yp6illdpspg88qm63digl02m44g1sp-libfreenect-0.6.1/include:/gnu/store/3xcw30h2s0nlqiwcvq11jmnrzl0zrh08-lib3ds-1.3.0/include:/gnu/store/ynai1zjff521c4lsj4xz085d500nw03h-openctm-1.0.3.603/include:/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/include:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/include:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/include:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/include:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/include:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/include:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/include:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/include:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include:/gnu/store/wxl57nkbqgamfp73b7v62kk3f1hiv0cz-xorgproto-2019.2/include:/gnu/store/xk73gal86qn9qps36nhhcl22mybhr4my-libxxf86vm-1.1.4/include:/gnu/store/jwga98k68l0h5c45jx7z4jdjzhfc34vm-libxshmfence-1.3/include:/gnu/store/19llyrcn4jhcxv81jb4j8q70hpm3155z-libxfixes-5.0.3/include:/gnu/store/6nqrv3kxrckl5kvvr71nkr29r2kz4r53-libxdamage-1.1.5/include:/gnu/store/nab7hhw326cpmpwyc1rgm0q8sk464qry-libx11-1.6.9/include:/gnu/store/k5yxxa1grvssr10kkpbnx3i5gwc2av67-libvdpau-1.3/include:/gnu/store/6pwlk6zm427z8381ldsf0f8b0ga9dmim-libdrm-2.4.100/include:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/include:/gnu/store/2hpgzimhi1vg9n8xagvmqh5sf96svz8q-libxext-1.3.4/include:/gnu/store/a8gdwnmpryd39jixzy4xs9p4i7gy17qv-libxcb-1.14/include:/gnu/store/6cdl970wcv4jhvpgbh8sdj54a5gwhmwj-libxdmcp-1.1.3/include:/gnu/store/h7sy4hr7arjknbyy1aq0xwv6fksnzw9n-libxau-1.0.9/include"
export LIBRARY_PATH="/gnu/store/nash8slqngrzn2pgqrff6abz8vp6vws6-qtbase-5.12.7/lib:/gnu/store/y6fdnkx5md8yhhrad7dd4d6ymkf0qknk-qtscript-5.12.7/lib:/gnu/store/wigjsjr8ywbpvwqfln9nf2rczswh1csw-qtxmlpatterns-5.12.7/lib:/gnu/store/8jn365r0kk69j1f4b1q2b7aa2qm1xvg1-mesa-19.3.4/lib:/gnu/store/15pk8k1s81f44hn98sxvyy4xqx3700vl-glu-9.0.1/lib:/gnu/store/gf7skbhb6i6s4xcrgcw9kaci98sph226-glew-2.1.0/lib:/gnu/store/6mrd12vn63rnik8lhgd86vpyp6l63s6y-muparser-2.2.5-2/lib:/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/lib:/gnu/store/v2yp6illdpspg88qm63digl02m44g1sp-libfreenect-0.6.1/lib:/gnu/store/3xcw30h2s0nlqiwcvq11jmnrzl0zrh08-lib3ds-1.3.0/lib:/gnu/store/ynai1zjff521c4lsj4xz085d500nw03h-openctm-1.0.3.603/lib:/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/lib:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/lib:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/lib:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/lib:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/lib:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/lib:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib:/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static/lib:/gnu/store/hwcky7446s952w0mwchhmm211ll07zrq-glibc-utf8-locales-2.31/lib:/gnu/store/xk73gal86qn9qps36nhhcl22mybhr4my-libxxf86vm-1.1.4/lib:/gnu/store/jwga98k68l0h5c45jx7z4jdjzhfc34vm-libxshmfence-1.3/lib:/gnu/store/19llyrcn4jhcxv81jb4j8q70hpm3155z-libxfixes-5.0.3/lib:/gnu/store/6nqrv3kxrckl5kvvr71nkr29r2kz4r53-libxdamage-1.1.5/lib:/gnu/store/nab7hhw326cpmpwyc1rgm0q8sk464qry-libx11-1.6.9/lib:/gnu/store/k5yxxa1grvssr10kkpbnx3i5gwc2av67-libvdpau-1.3/lib:/gnu/store/6pwlk6zm427z8381ldsf0f8b0ga9dmim-libdrm-2.4.100/lib:/gnu/store/lc8irxnwazq340ygkbqh0ask446jzy9k-util-macros-1.19.2/lib:/gnu/store/2hpgzimhi1vg9n8xagvmqh5sf96svz8q-libxext-1.3.4/lib:/gnu/store/a8gdwnmpryd39jixzy4xs9p4i7gy17qv-libxcb-1.14/lib:/gnu/store/6cdl970wcv4jhvpgbh8sdj54a5gwhmwj-libxdmcp-1.1.3/lib:/gnu/store/h7sy4hr7arjknbyy1aq0xwv6fksnzw9n-libxau-1.0.9/lib:/gnu/store/klk98l8czl05lvanrr7xl7a9hksac4ak-libpthread-stubs-0.4/lib"
export PATH="/gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5/bin:/gnu/store/nash8slqngrzn2pgqrff6abz8vp6vws6-qtbase-5.12.7/bin:/gnu/store/wigjsjr8ywbpvwqfln9nf2rczswh1csw-qtxmlpatterns-5.12.7/bin:/gnu/store/v2yp6illdpspg88qm63digl02m44g1sp-libfreenect-0.6.1/bin:/gnu/store/3xcw30h2s0nlqiwcvq11jmnrzl0zrh08-lib3ds-1.3.0/bin:/gnu/store/ynai1zjff521c4lsj4xz085d500nw03h-openctm-1.0.3.603/bin:/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/bin:/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32/bin:/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10/bin:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/bin:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/bin:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/bin:/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7/bin:/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6/bin:/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0/bin:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/bin:/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8/bin:/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4/bin:/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/bin:/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin:/gnu/store/mpa04aq8lblbcviyxywxcsb1zbi0mf39-ld-wrapper-0/bin:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/bin:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/bin:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/bin:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/sbin:/gnu/store/k30a2pgmc6b3ifmq3rn0dr5ng9gr8w81-which-2.21/bin"
export XDG_DATA_DIRS="/gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5/share:/gnu/store/nash8slqngrzn2pgqrff6abz8vp6vws6-qtbase-5.12.7/share:/gnu/store/y6fdnkx5md8yhhrad7dd4d6ymkf0qknk-qtscript-5.12.7/share:/gnu/store/wigjsjr8ywbpvwqfln9nf2rczswh1csw-qtxmlpatterns-5.12.7/share:/gnu/store/8jn365r0kk69j1f4b1q2b7aa2qm1xvg1-mesa-19.3.4/share:/gnu/store/gf7skbhb6i6s4xcrgcw9kaci98sph226-glew-2.1.0/share:/gnu/store/6mrd12vn63rnik8lhgd86vpyp6l63s6y-muparser-2.2.5-2/share:/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/share:/gnu/store/azmwdwavv9r08zvzp200y8c6hkm0dsrr-eigen-3.3.7/share:/gnu/store/v2yp6illdpspg88qm63digl02m44g1sp-libfreenect-0.6.1/share:/gnu/store/3xcw30h2s0nlqiwcvq11jmnrzl0zrh08-lib3ds-1.3.0/share:/gnu/store/ynai1zjff521c4lsj4xz085d500nw03h-openctm-1.0.3.603/share:/gnu/store/dp2m2s2ifnrh9wm643z6qf04a3nh4jln-qhull-2019.1/share:/gnu/store/v6f44zccwh9z5zk3pjlywjybbi8n2hjh-tar-1.32/share:/gnu/store/ncydgq2znms5n1d2k5yqshhf58nsixwv-gzip-1.10/share:/gnu/store/i8h2pcxqdq07ijm3ibkka8f4smn1w48v-bzip2-1.0.8/share:/gnu/store/9860f1abqj8wjjnwl8a9v54pdcc3bhgf-xz-5.2.4/share:/gnu/store/60g7r3l01fd7c58yjbm6krgcwj1jkpwg-file-5.38/share:/gnu/store/n4n560pfvvw50a9369axw5vj5rrqfj1n-diffutils-3.7/share:/gnu/store/cd5qf3kcnlq35p9k392pjdpdzpsnds70-patch-2.7.6/share:/gnu/store/hic7snhayfl7m6cpfqqr73nmm19bpqkg-findutils-4.7.0/share:/gnu/store/swqdvwri9dbv6zssg6v0by7l05hd6wxp-gawk-5.0.1/share:/gnu/store/ishk7fswcs4gkwcp8mh788z4mvvl9bxh-sed-4.8/share:/gnu/store/bhs4rj58v8j1narb2454raan2ps38xd8-grep-3.4/share:/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/share:/gnu/store/hm40bxnv8jxmbc1lpb7zfimii4xm9m81-make-4.3/share:/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/share:/gnu/store/m1z7cdbqsqyp9xnjw5cvlb4a7gkcg3m4-binutils-2.34/share:/gnu/store/rn75fm7adgx3pw5j8pg3bczfqq1y17lk-gcc-7.5.0/share:/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/share:/gnu/store/s3dcqzwqaakv1yx37by9chksdbkgih17-glibc-2.31-static/share:/gnu/store/k30a2pgmc6b3ifmq3rn0dr5ng9gr8w81-which-2.21/share:/gnu/store/wxl57nkbqgamfp73b7v62kk3f1hiv0cz-xorgproto-2019.2/share:/gnu/store/xk73gal86qn9qps36nhhcl22mybhr4my-libxxf86vm-1.1.4/share:/gnu/store/jwga98k68l0h5c45jx7z4jdjzhfc34vm-libxshmfence-1.3/share:/gnu/store/19llyrcn4jhcxv81jb4j8q70hpm3155z-libxfixes-5.0.3/share:/gnu/store/6nqrv3kxrckl5kvvr71nkr29r2kz4r53-libxdamage-1.1.5/share:/gnu/store/nab7hhw326cpmpwyc1rgm0q8sk464qry-libx11-1.6.9/share:/gnu/store/6pwlk6zm427z8381ldsf0f8b0ga9dmim-libdrm-2.4.100/share:/gnu/store/gfapkk5c6hvl1d94m4sqnhn7f9l5gqyh-linux-libre-headers-5.4.20/share:/gnu/store/lc8irxnwazq340ygkbqh0ask446jzy9k-util-macros-1.19.2/share:/gnu/store/2hpgzimhi1vg9n8xagvmqh5sf96svz8q-libxext-1.3.4/share:/gnu/store/a8gdwnmpryd39jixzy4xs9p4i7gy17qv-libxcb-1.14/share:/gnu/store/6cdl970wcv4jhvpgbh8sdj54a5gwhmwj-libxdmcp-1.1.3/share:/gnu/store/h7sy4hr7arjknbyy1aq0xwv6fksnzw9n-libxau-1.0.9/share:/gnu/store/klk98l8czl05lvanrr7xl7a9hksac4ak-libpthread-stubs-0.4/share"
Sorry for the large paste here.
Can you try #701 and see if it works?
Still having the same issue.
$ cmake ../src/
-- Searching for required components
-- Searching for required components with bundled fallback
-- Searching for optional components
-- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Found OpenMP: TRUE
-- - jhead - using bundled source
-- - glew - using system-provided library
-- - Eigen - using system-provided library
-- - newuoa - using bundled source
-- - levmar - using bundled source
-- - lib3ds - using system-provided library
-- - GMP/MPIR - using system-provided GMP library
-- - muparser - using system-provided library
-- - OpenCTM - using system-provided library
-- - structure-synth - using bundled source
-- - qhull - using system-provided library
--
Configuring plugins
-- - meshlabplugins/io_3ds
-- - meshlabplugins/io_base
-- - meshlabplugins/io_bre
-- - meshlabplugins/io_collada
-- - meshlabplugins/io_ctm
-- - meshlabplugins/io_expe
-- - meshlabplugins/io_json
-- - meshlabplugins/io_pdb
-- - meshlabplugins/io_tri
-- - meshlabplugins/io_txt
-- - meshlabplugins/io_u3d
-- - meshlabplugins/io_x3d
-- - meshlabplugins/filter_ao
-- - meshlabplugins/filter_camera
-- - meshlabplugins/filter_clean
-- - meshlabplugins/filter_color_projection
-- - meshlabplugins/filter_colorproc
-- - meshlabplugins/filter_create
-- - meshlabplugins/filter_csg
-- - meshlabplugins/filter_dirt
-- - meshlabplugins/filter_fractal
-- - meshlabplugins/filter_func
-- - meshlabplugins/filter_img_patch_param
-- - meshlabplugins/filter_isoparametrization
-- - meshlabplugins/filter_layer
-- - meshlabplugins/filter_measure
-- - meshlabplugins/filter_meshing
-- - meshlabplugins/filter_mls
-- - meshlabplugins/filter_mutualglobal
-- - meshlabplugins/filter_mutualinfo
-- - meshlabplugins/filter_plymc
-- - meshlabplugins/filter_qhull
-- - meshlabplugins/filter_quality
-- - meshlabplugins/filter_sampling
-- - meshlabplugins/filter_screened_poisson
-- - meshlabplugins/filter_sdfgpu
-- - meshlabplugins/filter_select
-- - meshlabplugins/filter_sketchfab
-- - meshlabplugins/filter_ssynth
-- - meshlabplugins/filter_texture
-- - meshlabplugins/filter_trioptimize
-- - meshlabplugins/filter_unsharp
-- - meshlabplugins/filter_voronoi
-- - meshlabplugins/render_gdp
-- - meshlabplugins/render_radiance_scaling
-- - meshlabplugins/decorate_base
-- - meshlabplugins/decorate_background
-- - meshlabplugins/decorate_raster_proj
-- - meshlabplugins/decorate_shadow
-- - meshlabplugins/edit_align
-- - meshlabplugins/edit_manipulators
-- - meshlabplugins/edit_measure
-- - meshlabplugins/edit_mutualcorrs
-- - meshlabplugins/edit_paint
-- - meshlabplugins/edit_pickpoints
-- - meshlabplugins/edit_point
-- - meshlabplugins/edit_referencing
-- - meshlabplugins/edit_quality
-- - meshlabplugins/edit_select
-- - meshlabplugins/edit_sample
-- - meshlabplugins/filter_sample
-- - meshlabplugins/filter_sample_dyn
-- - meshlabplugins/filter_createiso
-- - meshlabplugins/filter_geodesic
-- - meshlabplugins/filter_sample_gpu
-- Configuring done
CMake Error at meshlabplugins/filter_qhull/CMakeLists.txt:15 (add_library):
Target "filter_qhull" links to target "Qhull::qhull" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
$ ls $LIBRARY_PATH/ | grep qhull
libqhull.so
libqhull.so.7
libqhull.so.7.3.2
libqhull_p.so
libqhull_p.so.7
libqhull_p.so.7.3.2
libqhull_r.so
libqhull_r.so.7
libqhull_r.so.7.3.2
libqhullcpp.a
libqhullstatic.a
libqhullstatic_r.a
First, 'qhull' is not a library target but the target for the qhull executable, the non-reentrant library target is 'libqhull'. This is an outlier of the naming scheme, called so due to the naming clash.
All instances of 'QHull::qhull' in FindQHull.cmake should be 'QHull::libqhull'.
@StefanBruens If you have some actual experience with qhull beyond looking at debian packaging, I do encourage you to fix my FindQHull script :) I wrote it the best I could in a short time based on what was on my system from the debian package, but it's definitely a complicated package (seemingly due to legacy reasons) so I'm not surprised I made a mistake.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Check all platforms you experienced the issue (change to
[x]
)What type of issue is?
Describe your issue
I'm packaging Meshlab 2020.05 for Guix using system provided qhull and I'm getting this error.
It's not trying to search
libqhull.h
like it should, according to this commit:https://github.com/cnr-isti-vclab/meshlab/commit/4686e6ebe62ef550f97843249f6973024e93af8f#diff-288428835238de597dd2905e65fa8f51R60
But CMake is detecting the library like it should: