Can't build the trunk - PLY Problems

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

Can't build the trunk - PLY Problems

Pieter-Jan5000
This post was updated on .
Hello,

I am trying to build PCL from the trunk again, but I am failing this time. I get all kinds of errors about the PLY-functions. I noticed that there are a lot of things going on with the PLY headers so I thought it might be a good idea to bring this issue up here as there might be a fix already ...

http://dev.pointclouds.org/issues/684
http://dev.pointclouds.org/projects/pcl/repository/revisions/5855

I tried moving the PLY folder to a different location as indicated in issue 684, but without success. Can anyone help me?

These are my errors: http://pastebin.com/15DiLK59

I am building on Mac OSX with Xcode  (for the first time)  and CMake btw ...
Reply | Threaded
Open this post in threaded view
|

Re: Can't build the trunk - PLY Problems

mccloud9
Any luck solving this... I'm running into the same issue.  Trunk rev 6686. Using directions on the the wiki page for using MacPorts.  OSX Mountain Lion on a new MacBook Pro.  Compiling with Clang 4.0.  Anyone tell me where this 'at' member is introduced into the namespace?


/Users/ryanismert/pcl/io/src/ply_io.cpp:372:17: error: no member named 'at' in namespace
      'pcl::io::ply'
  pcl::io::ply::at<pcl::io::ply::float32> (scalar_property_definition_callbacks) = ...
  ~~~~~~~~~~~~~~^
/Users/ryanismert/pcl/io/src/ply_io.cpp:372:41: error: expected '(' for function-style cast or
      type construction
  pcl::io::ply::at<pcl::io::ply::float32> (scalar_property_definition_callbacks) = ...
                   ~~~
Ryan
Reply | Threaded
Open this post in threaded view
|

Re: Can't build the trunk - PLY Problems

mccloud9
This post was updated on .
OK, this was an easy one. Looks like this is a bug in LLVM to do with
instantiating template friend functions defined inline:

http://llvm.org/bugs/show_bug.cgi?id=9518

The 'at' friend functions are defined in four places in the ply_parser.h in
the list_property_definition_callbacks_type and
scalar_property_definition_callbacks_type class declarations.  Simply
moving the definitions out of the classes fixed the problem.

Diff attached...

Ryan

On Thu, Aug 2, 2012 at 6:08 PM, mccloud9 <ryan.ismert@gmail.com> wrote:

> Any luck solving this... I'm running into the same issue.  Trunk rev 6686.
> Using directions on the the wiki page for using MacPorts.  OSX Mountain
> Lion
> on a new MacBook Pro.  Compiling with Clang 4.0.  Anyone tell me where this
> 'at' member is introduced into the namespace?
>
>
> /Users/ryanismert/pcl/io/src/ply_io.cpp:372:17: error: no member named 'at'
> in namespace
>       'pcl::io::ply'
>   pcl::io::ply::at<pcl::io::ply::float32>
> (scalar_property_definition_callbacks) = ...
>   ~~~~~~~~~~~~~~^
> /Users/ryanismert/pcl/io/src/ply_io.cpp:372:41: error: expected '(' for
> function-style cast or
>       type construction
>   pcl::io::ply::at<pcl::io::ply::float32>
> (scalar_property_definition_callbacks) = ...
>                    ~~~
> Ryan
>
>
>
>
> --
> View this message in context:
> http://www.pcl-users.org/Can-t-build-the-trunk-PLY-Problems-tp4019193p4021064.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at
> Nabble.com.
> _______________________________________________
> PCL-users@pointclouds.org / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>

_______________________________________________
PCL-users@pointclouds.org / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Can't build the trunk - PLY Problems

Radu B. Rusu
Administrator
Pushed in trunk (r6687). Thanks Ryan!

Cheers,
Radu.
--
http://openperception.org

On 08/02/2012 07:17 PM, Ryan Ismert wrote:

> OK, this was an easy one. Looks like this is a bug in LLVM to do with instantiating template friend functions defined
> inline:
>
> http://llvm.org/bugs/show_bug.cgi?id=9518<nabble_a href="ply_parser.diff">ply_parser.diff</nabble_a>
>
> The 'at' friend functions are defined in four places in the ply_parser.h in the list_property_definition_callbacks_type
> and scalar_property_definition_callbacks_type class declarations.  Simply moving the definitions out of the classes
> fixed the problem.
>
> Diff attached...
>
> Ryan
>
> On Thu, Aug 2, 2012 at 6:08 PM, mccloud9 <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Any luck solving this... I'm running into the same issue.  Trunk rev 6686.
>     Using directions on the the wiki page for using MacPorts.  OSX Mountain Lion
>     on a new MacBook Pro.  Compiling with Clang 4.0.  Anyone tell me where this
>     'at' member is introduced into the namespace?
>
>
>     /Users/ryanismert/pcl/io/src/ply_io.cpp:372:17: error: no member named 'at'
>     in namespace
>            'pcl::io::ply'
>        pcl::io::ply::at<pcl::io::ply::float32>
>     (scalar_property_definition_callbacks) = ...
>        ~~~~~~~~~~~~~~^
>     /Users/ryanismert/pcl/io/src/ply_io.cpp:372:41: error: expected '(' for
>     function-style cast or
>            type construction
>        pcl::io::ply::at<pcl::io::ply::float32>
>     (scalar_property_definition_callbacks) = ...
>                         ~~~
>     Ryan
>
>
>
>
>     --
>     View this message in context: http://www.pcl-users.org/Can-t-build-the-trunk-PLY-Problems-tp4019193p4021064.html
>     Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
>     _______________________________________________
>     [hidden email] <mailto:[hidden email]> / http://pointclouds.org
>     http://pointclouds.org/mailman/listinfo/pcl-users
>
>
>
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
>
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users