Madhav Cham(deleted)
05/07/2021 1:05 AM
post121410
|
I am trying compile and execute PCL example on QNX having SDP 7.0 evaluation version
please find the source code below
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
int main (int argc, char** argv)
{
pcl::PointCloud<pcl::PointXYZ> cloud;
// Fill in the cloud data
cloud.width = 5;
cloud.height = 1;
cloud.is_dense = false;
cloud.points.resize (cloud.width * cloud.height);
for (auto& point: cloud)
{
point.x = 1024 * rand () / (RAND_MAX + 1.0f);
point.y = 1024 * rand () / (RAND_MAX + 1.0f);
point.z = 1024 * rand () / (RAND_MAX + 1.0f);
}
pcl::io::savePCDFileASCII ("test_pcd.pcd", cloud);
std::cerr << "Saved " << cloud.size () << " data points to test_pcd.pcd." << std::endl;
for (const auto& point: cloud)
std::cerr << " " << point.x << " " << point.y << " " << point.z << std::endl;
return (0);
}
command to compile
q++ -Vgcc_ntox86_64 -std=c++14 -I /home/madhav/pcl/io/include -I /home/madhav/pcl/common/include -I /home/madhav/
boost_1_76_0 -I /usr/include/eigen3 -I /home/madhav/pcl/2d/include pcl.cpp -o pcl
getting following error
In file included from /home/madhav/boost_1_76_0/boost/interprocess/sync/file_lock.hpp:26:0,
from /home/madhav/pcl/io/include/pcl/io/boost.h:66,
from /home/madhav/pcl/io/include/pcl/io/file_io.h:43,
from /home/madhav/pcl/io/include/pcl/io/pcd_io.h:45,
from pcl.cpp:2:
/home/madhav/boost_1_76_0/boost/interprocess/detail/os_thread_functions.hpp:72:7: error: #error "No high resolution
steady clock in your system, please provide a patch"
# error "No high resolution steady clock in your system, please provide a patch"
^
/home/madhav/boost_1_76_0/boost/interprocess/detail/os_thread_functions.hpp:319:8: error: #error "Can't obtain system
tick value for your system, please provide a patch"
#error "Can't obtain system tick value for your system, please provide a patch"
^
In file included from /home/madhav/pcl/io/include/pcl/io/impl/pcd_io.hpp:50:0,
from /home/madhav/pcl/io/include/pcl/io/pcd_io.h:788,
from pcl.cpp:2:
/home/madhav/pcl/io/include/pcl/io/low_level_io.h:61:24: fatal error: sys/fcntl.h: No such file or directory
compilation terminated.
cc: /home/madhav/QNX_setup/qnx700_2/host/linux/x86_64/usr/lib/gcc/x86_64-pc-nto-qnx7.0.0/5.4.0/cc1plus error 1
thanks,
Madhav
|
|
|