我正在尝试编译pcl程序,我已经使用自制程序完成了pcl的安装。我正在使用Mac OSX 10.10.5和命令行来编译程序。在“make”步骤中我得到了这个错误
ld:找不到-lvtkftgl的库 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
可能是什么问题,可能还有解决方案。如果有人帮我这个,我真的很感激。 Thanx提前。
答案 0 :(得分:1)
您也可以安装最新的PCL版本。
brew install --HEAD pcl
答案 1 :(得分:0)
所以我也有这个问题;看起来VTK库目前在pcl上效果不佳。临时解决方案是在没有VTK库的情况下安装pcl,您可以编译并运行他们的教程。
运行以下命令:
function Get_Data($value,$radio){
//gets data if the blank option was not selected
if($value != ""){
//create connection
$con= mysqli_connect("localhost","root","password","world");
// Check connection
if (!$con) {
echo "<p>Error: Unable to connect to MySQL." . PHP_EOL."</p>";
echo "<p>Debugging errno: " . mysqli_connect_errno() . PHP_EOL."</p>";
echo "<p>Debugging error: " . mysqli_connect_error() . PHP_EOL."</p>";
exit;
}
switch ($radio) {
case 0:
if(htmlspecialchars($value) != ""){
$query = "SELECT * FROM City WHERE name LIKE '?%'";
}
else{
echo "<p>Your search text was invalid</p>";
}
break;
default:
break;
}
$statement = mysqli_stmt_init($con);
if (mysqli_stmt_prepare($statement, $query)) {
/* bind parameters for markers */
mysqli_stmt_bind_param($statement, "s", $value);
/* execute query */
mysqli_stmt_execute($statement);
mysqli_stmt_bind_result($statement,$id, $name, $code, $district,$population);
$result = mysqli_stmt_result_metadata($statement);
}else{
echo "<p>Error".mysqli_stmt_errno()."</p>";
}
echo "<p>Number of Rows:".mysqli_stmt_num_rows($statement)."</p>";
// Get number of columns from result
$fieldinfo=mysqli_fetch_fields($result);
//create table
echo "<table class='table table-hover'><thead>";
//create the header for each column
foreach ($fieldinfo as $value) {
echo "<th>".$value->name."</th>";
}
echo "</thead><tbody>";
//get each row
while (mysqli_stmt_fetch($statement)) {
echo "<tr><td>".$id."</td><td>".$name."</td><td>".$code."</td><td>".$district."</td><td>".$population."</td></tr>";
}
echo "</tbody></table>";
//free result
mysqli_free_result($result);
//close mysql connection
mysqli_close($con);
}
}
?>`
$ brew uninstall pcl
现在,请按照此处的教程:http://www.pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php#using-pcl-pcl-config
您应该可以编译并运行他们的教程。
答案 2 :(得分:0)
这是一个临时修复:
brew uninstall pcl
brew install https://raw.githubusercontent.com/ahundt/homebrew-science/vtk6/vtk6.rb --build-from-source
brew install https://raw.githubusercontent.com/ahundt/homebrew-science/vtk6/pcl.rb --build-from-source
以下是对此特定问题的讨论:
https://github.com/mikepurvis/ros-install-osx/issues/32
这是我尝试将自己的修复提交给自制科学的地方。随意鼓励他们打破在那里发生的特别深奥的僵局!
https://github.com/Homebrew/homebrew-science/pull/3512