Installation issue and point cloud visualization error

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Installation issue and point cloud visualization error

cammarasana123
Hello everybody,

I had my first installation of PCL on Ubuntu 17.0 and I had a couple of
issues;

first of all, when installing prebuild binaries I got the following error
when I try updating:

The repository
'http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu
artful Release' does not have a Release file

Thus I went with installation with source code and everything worked fine
(it seems so),

I was able to read and write pcd file but when I use
pcl::visualization::CloudViewer viewer ("Simple Cloud Viewer");

I got the following error:
pcd_write.cpp:(.text+0x1c5): "reference not defined to"
pcl::visualization::CloudViewer::CloudViewer(std::__cxx11::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&)"

I have translated "..." from Italian..

Searching on the web, I've added
FIND_PACKAGE(PCL REQUIRED COMPONENTS io common visualization)
to my CMakeLists file but without success,

I hope someone can help me on this.
Thanks
Simone



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

ravijoshi
Not sure, what is the exact problem in your case. However, I always install
from source, and it works fine! Maybe, you can try a fresh installation.
Installation steps are available everywhere such as here
(https://ravijo.github.io/pcl/)

-
Regards
Ravi



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

Stephen McDowell
std::__cxx11::basic_string

What compiler did you use to compile PCL, and what compiler are you using for the project using PCL?


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

cammarasana123
Thanks both for feedback,

I've tried re-installing PCL (using Ravijoshi guide), but I don't think the
installation was the problem because everything works fine except Cloud
Viewer, I was also able to use PCLVisualizer without troubles.

I use g++ 7.2 for compiling, while for the PCL installation I used Ravi
procedure with Cmake 3.9.1







--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

Stephen McDowell
And you're also using g++-7.2 for the project that is using PCL (the one with the find_package call)?

More specifically, you are not using clang?

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

cammarasana123
Well honestly, I'm not sure about..

I do not have clang installed, that's why I assumed G++ was used,

anyway, for my project with PLC I follow this basic tutorial
/http://pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php#using-pcl-pcl-config/

so I'm not sure what comiler it is used



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

Stephen McDowell
The thing you will want to search around for on the internet: std::__cxx11::basic_string

The root of the problem you are facing is something called ABI compatibility.


Specifically, the first paragraph under Troubleshooting.  You are in a situation where either

1. You compiled PCL using c++11, but are not compiling the project you are using PCL with and C++11.  You must.  A possible quick fix to test if this is the scenario:

cmake_minimum_required(VERSION 3.1.3)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)  # not necessary, but encouraged
Add this to the top of your CMakeLists.txt

2. You did not compile PCL using C++11 (more likely, I don’t believe that update has been completed), but you are compiling the application using C++11.  You may not do this, and must develop a non-C++11 project.

I think you may be able to change the outcome if you re-compile PCL using PCL_NO_PRECOMPILE.  But I don’t think so.



_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

Stephen McDowell
Also I’m not very confident on (2).  I have been able to identify the underlying issue for you, but have not provided solutions :/

Hopefully another user with more intimate knowledge of the PCL build system and ABI rules will be able to provide guidance.
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issue and point cloud visualization error

cammarasana123
Hello Stephen,

thanks for your support, I've tried to find a solution in these days, also
following your indication.

Unfortunately I was not able to make things working.

Thanks anyway



--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users