Latest Stable PCL built in 64 bit with VS 2012

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

Latest Stable PCL built in 64 bit with VS 2012

Ender1618
This post was updated on .
Has anyone managed to build PCL 1.6.x or 1.7.x in 64 bit under Visual Studio 2012?

I know there aren't prebuilt binaries available, but i keep reading about troubles with getting this to work. A post a while ago on this forum by a dev said it wasn't supported yet.

If it is possible, how would i go about doing it? Am I going to gain white hairs trying? Has anyone done it and have the binaries and package available?
Reply | Threaded
Open this post in threaded view
|

Re: Latest Stable PCL built in 64 bit with VS 2012

kwaegel
Administrator
I'm using that configuration to build the PCL trunk, and I assume 1.6 and 1.7 would work the same.

The biggest problem is that many of the dependencies don't have VS2012 binaries available, so you have to build them from source as well.

Here's what I used:
Eigen   trunk   (header only)
Boost   1.53.0   (binary available)
qhull   2012.1
flann   1.8.4
Qt     4.8 (<5)
VTK   5.10.1 (<6)

I roughly followed this guide for building Qt: http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

The general dependency build instructions are here: http://pointclouds.org/documentation/tutorials/compiling_pcl_dependencies_windows.php

(Please note that OpenNI 1.x explicitly does not support VS2012. I'm currently working on adding OpenNI 2 support.)
Reply | Threaded
Open this post in threaded view
|

Re: Latest Stable PCL built in 64 bit with VS 2012

Radu B. Rusu
Administrator
An OpenNI2 PCL Grabber would be a welcome addition!

Best,
Radu.

On Aug 24, 2013, at 2:42 PM, kwaegel <[hidden email]> wrote:

> I'm using that configuration to build the PCL trunk, and I assume 1.6 and 1.7
> would work the same.
>
> The biggest problem is that many of the dependencies don't have VS2012
> binaries available, so you have to build them from source as well.
>
> Here's what I used:
> Eigen   trunk   (header only)
> Boost   1.53.0   (binary available)
> qhull   2012.1
> flann   1.8.4
> Qt     4.8 (<5)
> VTK   5.10.1 (<6)
>
> I roughly followed this guide for building Qt:
> http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/
>
> The general dependency build instructions are here:
> http://pointclouds.org/documentation/tutorials/compiling_pcl_dependencies_windows.php
>
> (Please note that OpenNI 1.x *explicitly* does not support VS2012. I'm
> currently working on adding OpenNI 2 support.)
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Latest-Stable-PCL-built-in-64-bit-with-VS-2012-tp4029244p4029260.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [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: Latest Stable PCL built in 64 bit with VS 2012

klempie
In reply to this post by kwaegel
I'm trying to exactly the same so thanks for this. I may be in touch. :)
Reply | Threaded
Open this post in threaded view
|

Re: Latest Stable PCL built in 64 bit with VS 2012

kwaegel
Administrator
In reply to this post by Ender1618
Actually, there were several code changes I had to make before VS2012 worked. Sorry for forgetting about them in my first post, Ender1618.

I'm planning to push these changes (and others) to my own PCL repo, so that the main trunk can pull them as desired.

They changes were:
*pcl/recognition/crh_alignment.h  (~line 230)
-          scored_peaks[i] = std::make_pair<float, int> (invAB[i].r, i);
+          scored_peaks[i] = std::make_pair(invAB[i].r, i);

* /gpu/octree/src/cuda/octree_builder.cu (~line 50)
+#include <thrust/device_ptr.h>