building pcl 1.7.2 with vtk 7.0

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

building pcl 1.7.2 with vtk 7.0

Ishank Gulati
I am trying to build pcl 1.7.2 on ubuntu 14.04 LTS. I have installed all the dependencies including VTK 7. Earlier I build VTK using OpenGL 2 backend but then I was getting build errors in pcl and I read somewhere that it wasn't supported so build VTK again with OpenGL backend but still I am getting the below build errors.

Linking CXX shared library ../lib/libpcl_surface.so
/usr/bin/ld: cannot find -lvtkRenderingContextOpenGL2
/usr/bin/ld: cannot find -lvtkRenderingOpenGL2
/usr/bin/ld: cannot find -lvtkglew
/usr/bin/ld: cannot find -lvtkDomainsChemistryOpenGL2
/usr/bin/ld: cannot find -lvtkRenderingVolumeOpenGL2
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libpcl_surface.so.1.7.2] Error 1
make[1]: *** [surface/CMakeFiles/pcl_surface.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: cannot find -lvtkRenderingContextOpenGL2
/usr/bin/ld: cannot find -lvtkRenderingOpenGL2
/usr/bin/ld: cannot find -lvtkglew
/usr/bin/ld: cannot find -lvtkDomainsChemistryOpenGL2
/usr/bin/ld: cannot find -lvtkRenderingVolumeOpenGL2
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libpcl_io.so.1.7.2] Error 1
make[1]: *** [io/CMakeFiles/pcl_io.dir/all] Error 2
Linking CXX shared library ../lib/libpcl_sample_consensus.so
[ 14%] Built target pcl_sample_consensus
make: *** [all] Error 2


How can I resolve this issue?

Thanks
Ishank Gulati

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

Re: building pcl 1.7.2 with vtk 7.0

Adrian Goral
Hi,

As far as I know, PCL does not support OpenGL2, which is used in the
newest VTK version. I tried to compile PCL with a few versions of VTK
and VTK 6.3 seems to be the latest version compatible.

See also this topic:
http://www.pcl-users.org/Building-PCL-1-8-0-issue-vtkgl-missing-td4040453.html

Hope that helps,
Adrian

On 2016-02-24 13:39, Ishank Gulati wrote:

> I am trying to build pcl 1.7.2 on ubuntu 14.04 LTS. I have installed all
> the dependencies including VTK 7. Earlier I build VTK using OpenGL 2
> backend but then I was getting build errors in pcl and I read somewhere
> that it wasn't supported so build VTK again with OpenGL backend but
> still I am getting the below build errors.
>
> Linking CXX shared library ../lib/libpcl_surface.so
> /usr/bin/ld: cannot find -lvtkRenderingContextOpenGL2
> /usr/bin/ld: cannot find -lvtkRenderingOpenGL2
> /usr/bin/ld: cannot find -lvtkglew
> /usr/bin/ld: cannot find -lvtkDomainsChemistryOpenGL2
> /usr/bin/ld: cannot find -lvtkRenderingVolumeOpenGL2
> collect2: error: ld returned 1 exit status
> make[2]: *** [lib/libpcl_surface.so.1.7.2] Error 1
> make[1]: *** [surface/CMakeFiles/pcl_surface.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> /usr/bin/ld: cannot find -lvtkRenderingContextOpenGL2
> /usr/bin/ld: cannot find -lvtkRenderingOpenGL2
> /usr/bin/ld: cannot find -lvtkglew
> /usr/bin/ld: cannot find -lvtkDomainsChemistryOpenGL2
> /usr/bin/ld: cannot find -lvtkRenderingVolumeOpenGL2
> collect2: error: ld returned 1 exit status
> make[2]: *** [lib/libpcl_io.so.1.7.2] Error 1
> make[1]: *** [io/CMakeFiles/pcl_io.dir/all] Error 2
> Linking CXX shared library ../lib/libpcl_sample_consensus.so
> [ 14%] Built target pcl_sample_consensus
> make: *** [all] Error 2
>
>
> How can I resolve this issue?
>
> Thanks
> Ishank Gulati
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: building pcl 1.7.2 with vtk 7.0

Sérgio Agostinho
Hey, 

PCL now should support OpenGL2 backend. See https://github.com/PointCloudLibrary/pcl/pull/1534

I think it was already included in 1.8.0.rc1, but if not, just wait for 1.8.0 or compile HEAD from source. 

Cheers


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

Re: building pcl 1.7.2 with vtk 7.0

Ishank Gulati
I tried to build PCL 1.8.0 with OpenGL2 back end with VTK 7 and I am getting following errors:

/home/ishank/Workspace/pcl-1.8.0rc1/visualization/src/pcl_visualizer.cpp: In member function ‘bool pcl::visualization::PCLVisualizer::addTextureMesh(const pcl::TextureMesh&, const string&, int)’:
/home/ishank/Workspace/pcl-1.8.0rc1/visualization/src/pcl_visualizer.cpp:3226:84: error: ‘class vtkOpenGLRenderWindow’ has no member named ‘GetHardwareSupport’
   vtkOpenGLHardwareSupport* hardware = vtkOpenGLRenderWindow::SafeDownCast (win_)->GetHardwareSupport ();
                                                                                    ^
make[2]: *** [visualization/CMakeFiles/pcl_visualization.dir/src/pcl_visualizer.cpp.o] Error 1
make[1]: *** [visualization/CMakeFiles/pcl_visualization.dir/all] Error 2
make: *** [all] Error 2

Any suggestions to resolve this?

Regards,

Ishank

On Wed, Feb 24, 2016 at 6:35 PM, Sérgio Agostinho <[hidden email]> wrote:
Hey, 

PCL now should support OpenGL2 backend. See https://github.com/PointCloudLibrary/pcl/pull/1534

I think it was already included in 1.8.0.rc1, but if not, just wait for 1.8.0 or compile HEAD from source. 

Cheers


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



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

Re: building pcl 1.7.2 with vtk 7.0

VictorLamoine
Administrator
Hello,

The fixes for VTK 7 + OpenGL2 are NOT included in PCL 1.8.0 rc1, you need to use PCL trunk:
https://github.com/PointCloudLibrary/pcl/

Bye