CMake linking issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vtk6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to build an application which uses PCL on
Ubuntu 17.04 and I am getting CMake linker errors. Here's a minimal
working example:
CMakeLists:
cmake_minimum_
project(example)
add_executable(
# PCL
find_package(PCL REQUIRED)
target_
main.cpp is just int main() { return 0; }.
CMake reports this:
CMake Warning at CMakeLists.txt:4 (add_executable):
Cannot generate a safe runtime search path for target example because files
in some directories may conflict with libraries in implicit directories:
runtime library [libmpi.so] in /usr/lib may be hidden by files in:
/
Some of these libraries may not be found correctly.
Make fails with:
*** No rule to make target '/usr/lib/
I've found a hack-ish remedy for the problem: remove "/usr/lib/
/usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: libpcl-dev 1.8.0+dfsg1-
ProcVersionSign
Uname: Linux 4.10.0-21-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
CurrentDesktop: Unity:Unity7
Date: Tue May 30 10:26:24 2017
InstallationDate: Installed on 2017-05-29 (0 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: pcl
UpgradeStatus: No upgrade log present (probably fresh install)
Duplicate of https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 848799