Beginner with PCL on Windows 7

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

Beginner with PCL on Windows 7

sinnakan
Hi,

I'm a beginner to PCL and I'm using Windows 7 and am aiming to implement ICP with PCL and Visual Studio 2012 for a school project. I'm currently having trouble getting started with the configurations. I am following "Using PCL in your own project" tutorial and I'm not being able to compile. I've created a new project in Visual Studio with the sample code provided from the tutorial and I've made the CMakeLists file with the contents provided in the tutorial as well after modifying the project and source file names. I've tried using both the command line method and the GUI method for CMake but both are failing. I've installed PCL by using the all-in-one binary installer and kept all the default settings. Could I please get some help in the configurations and setup of PCL?

I'm sorry if these questions are very basic but I have only recently learned about PCL and I only have basic C++ coding knowledge so I'm very new to all of this, including Visual Studio.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Beginner with PCL on Windows 7

andyk
My advice would be to use VS2010 (not 2012) as I think there have been problems with the later version
Reply | Threaded
Open this post in threaded view
|

Re: Beginner with PCL on Windows 7

aichim
Administrator
Hi,

Please follow the tutorials as they guide you through all of the steps to getting PCL compiled. If it does not work, please provide us with sufficient information on what the errors were.

Please note that PCL is an advanced C++ library and it requires corresponding knowledge and skills. Please seek appropriate forums for introductory C++ questions.

Cheers,
Alex
---
http://www.openperception.org



On Feb 18, 2013, at 5:08 AM, andyk <[hidden email]> wrote:

> My advice would be to use VS2010 (not 2012) as I think there have been
> problems with the later version
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Beginner-with-PCL-on-Windows-7-tp4026168p4026179.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: Beginner with PCL on Windows 7

Dominik13993
Banned User
In reply to this post by sinnakan
Do you have VS 2010 installed? afaik PCL doesn't work with C++11 from scratch.
If you install VS 2010 you can select "Visual Studio 2010" as platformtoolset, then it should compile properly.
Reply | Threaded
Open this post in threaded view
|

Re: Beginner with PCL on Windows 7

sinnakan
Thanks for your responses. I installed VS2010 and have tried again but I am getting the following error from the CMake GUI:

The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10 Win64
Could not register CMake's Visual Studio macros file 'CMakeVSMacros2.vsmacros' while Visual Studio is running. Please exit all running instances of Visual Studio before continuing.

CMake needs to register Visual Studio macros when its macros file is updated or when it detects that its current macros file is no longer registered with Visual Studio.

Check for working C compiler using: Visual Studio 10 Win64 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
  10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Users/Jeanorth/Documents/Visual Studio 2010/Projects/testing_pcl/tutorial/CMakeFiles/CMakeTmp

 

  Run Build Command:C:\PROGRA~2\MICROS~3.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2632866653

 

  Microsoft (R) Visual Studio Version 10.0.30319.1.

  Copyright (C) Microsoft Corp.  All rights reserved.

  1>------ Build started: Project: cmTryCompileExec2632866653, Configuration:
  Debug x64 ------

  1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64

  1> Copyright (C) Microsoft Corporation.  All rights reserved.

  1>

  1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D
  "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
  /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2632866653.dir\Debug\\"
  /Fd"C:/Users/Jeanorth/Documents/Visual Studio
  2010/Projects/testing_pcl/tutorial/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2632866653.pdb"
  /Gd /TC /errorReport:prompt testCCompiler.c /Zm1000

  1>

  1> testCCompiler.c

  1>LINK : fatal error LNK1123: failure during conversion to COFF: file
  invalid or corrupt

  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
  ==========

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


Configuring incomplete, errors occurred!
Reply | Threaded
Open this post in threaded view
|

Re: Beginner with PCL on Windows 7

maxula
Reply | Threaded
Open this post in threaded view
|

Re: Beginner with PCL on Windows 7

maxula
The problem could also be caused by an installation of VS 2012 , see http://social.msdn.microsoft.com/Forums/da-DK/vssetup/thread/d10adba0-e082-494a-bb16-2bfc039faa80
Reply | Threaded
Open this post in threaded view
|

Re: Beginner with PCL on Windows 7

brizolara
This post has NOT been accepted by the mailing list yet.
In reply to this post by maxula
I got the LINK : fatal error LNK1123: failure during conversion to COFF: file
  invalid or corrupt
 too when generating with CMake.

Installing SP1 for my Visual Studio 2010 fixed it.

Thanks!