PCL on Windows

classic Classic list List threaded Threaded
140 messages Options
1234 ... 7
Reply | Threaded
Open this post in threaded view
|

PCL on Windows

kan2k
Hello everybody,

First of all, I am not an experienced programmer :D
I am a student and I am doing an internship at my university, where I am working with the Kinect.
Now I need the PCL for object recognition, but I have problems installing PCL correctly in Windows.
I installed PCL succesfully on Ubuntu, but there are other problems, which I couldn't solve.
Anyway, my question is, if and how you can build an install PCL in Windows.
I already configured and generated the *.sln file with CMake, but when I want to build it in VS10 I get many different errors, and I don't know why.
Most of them are linker errors, because it can't find some libraries. But the way how I understood, I need to build those "Projects" first, so the *.lib's are created.
I am very confused right now, and I have no clue how I could proceed with my work.

Here is an example of an error I get, when I try to build pcl_common:
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "private: void __thiscall boost::thread::start_thread(void)" (?start_thread@thread@boost@@AAEXXZ) already defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public: __thiscall boost::thread::~thread(void)" (??1thread@boost@@QAE@XZ) already defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "bool __cdecl boost::this_thread::interruptible_wait(void *,struct boost::detail::timeout)" (?interruptible_wait@this_thread@boost@@YA_NPAXUtimeout@detail@2@@Z) already defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public: void __thiscall boost::thread::join(void)" (?join@thread@boost@@QAEXXZ) already defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>time_trigger.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "double __cdecl pcl::getTime(void)" (?getTime@pcl@@YANXZ)

This is just one example. I just got 3 Projects building correctly and 39 Projects failed and 5 were skipped!

I am very lost and I appreciate any help! Thanks!

Best Regards,

Serkan.
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

Radu B. Rusu
Administrator
Serkan,

Take a look at http://dev.pointclouds.org on the issue tracker. We're working on fixing the VS/Windows support as we
speak :)

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

On 04/12/2011 08:27 AM, kan2k wrote:

> Hello everybody,
>
> First of all, I am not an experienced programmer :D
> I am a student and I am doing an internship at my university, where I am
> working with the Kinect.
> Now I need the PCL for object recognition, but I have problems installing
> PCL correctly in Windows.
> I installed PCL succesfully on Ubuntu, but there are other problems, which I
> couldn't solve.
> Anyway, my question is, if and how you can build an install PCL in Windows.
> I already configured and generated the *.sln file with CMake, but when I
> want to build it in VS10 I get many different errors, and I don't know why.
> Most of them are linker errors, because it can't find some libraries. But
> the way how I understood, I need to build those "Projects" first, so the
> *.lib's are created.
> I am very confused right now, and I have no clue how I could proceed with my
> work.
>
> Here is an example of an error I get, when I try to build pcl_common:
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "private:
> void __thiscall boost::thread::start_thread(void)"
> (?start_thread@thread@boost@@AAEXXZ) already defined in
> boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public:
> __thiscall boost::thread::~thread(void)" (??1thread@boost@@QAE@XZ) already
> defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "bool
> __cdecl boost::this_thread::interruptible_wait(void *,struct
> boost::detail::timeout)"
> (?interruptible_wait@this_thread@boost@@YA_NPAXUtimeout@detail@2@@Z) already
> defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public:
> void __thiscall boost::thread::join(void)" (?join@thread@boost@@QAEXXZ)
> already defined in
> boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>time_trigger.obj : error LNK2019: unresolved external symbol
> __imp__timeGetTime@0 referenced in function "double __cdecl
> pcl::getTime(void)" (?getTime@pcl@@YANXZ)
>
> This is just one example. I just got 3 Projects building correctly and 39
> Projects failed and 5 were skipped!
>
> I am very lost and I appreciate any help! Thanks!
>
> Best Regards,
>
> Serkan.
>
> --
> View this message in context: http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/PCL-on-Windows-tp2811875p2811875.html
> Sent from the Point Cloud Library (PCL) mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

Alessio Placitelli
I'm using Visual Studio 2008 so I don't know if the issues I've reported also affect Visual Studio 2010 users. I'll  install VS2010 and
try to check tonight or tomorrow evening :-)

Alessio

2011/4/12 Radu Bogdan Rusu <[hidden email]>
Serkan,

Take a look at http://dev.pointclouds.org on the issue tracker. We're working on fixing the VS/Windows support as we
speak :)

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

On 04/12/2011 08:27 AM, kan2k wrote:
> Hello everybody,
>
> First of all, I am not an experienced programmer :D
> I am a student and I am doing an internship at my university, where I am
> working with the Kinect.
> Now I need the PCL for object recognition, but I have problems installing
> PCL correctly in Windows.
> I installed PCL succesfully on Ubuntu, but there are other problems, which I
> couldn't solve.
> Anyway, my question is, if and how you can build an install PCL in Windows.
> I already configured and generated the *.sln file with CMake, but when I
> want to build it in VS10 I get many different errors, and I don't know why.
> Most of them are linker errors, because it can't find some libraries. But
> the way how I understood, I need to build those "Projects" first, so the
> *.lib's are created.
> I am very confused right now, and I have no clue how I could proceed with my
> work.
>
> Here is an example of an error I get, when I try to build pcl_common:
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "private:
> void __thiscall boost::thread::start_thread(void)"
> (?start_thread@thread@boost@@AAEXXZ) already defined in
> boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public:
> __thiscall boost::thread::~thread(void)" (??1thread@boost@@QAE@XZ) already
> defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "bool
> __cdecl boost::this_thread::interruptible_wait(void *,struct
> boost::detail::timeout)"
> (?interruptible_wait@this_thread@boost@@YA_NPAXUtimeout@detail@2@@Z) already
> defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public:
> void __thiscall boost::thread::join(void)" (?join@thread@boost@@QAEXXZ)
> already defined in
> boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
> 1>time_trigger.obj : error LNK2019: unresolved external symbol
> __imp__timeGetTime@0 referenced in function "double __cdecl
> pcl::getTime(void)" (?getTime@pcl@@YANXZ)
>
> This is just one example. I just got 3 Projects building correctly and 39
> Projects failed and 5 were skipped!
>
> I am very lost and I appreciate any help! Thanks!
>
> Best Regards,
>
> Serkan.
>
> --
> View this message in context: http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/PCL-on-Windows-tp2811875p2811875.html
> Sent from the Point Cloud Library (PCL) mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users



--
Alessio Placitelli


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

Re: PCL on Windows

Mourad Boufarguine
In reply to this post by kan2k

On Tue, Apr 12, 2011 at 5:27 PM, kan2k <[hidden email]> wrote:
Hello everybody,

First of all, I am not an experienced programmer :D
I am a student and I am doing an internship at my university, where I am
working with the Kinect.
Now I need the PCL for object recognition, but I have problems installing
PCL correctly in Windows.
I installed PCL succesfully on Ubuntu, but there are other problems, which I
couldn't solve.
Anyway, my question is, if and how you can build an install PCL in Windows.
I already configured and generated the *.sln file with CMake, but when I
want to build it in VS10 I get many different errors, and I don't know why.
Most of them are linker errors, because it can't find some libraries. But
the way how I understood, I need to build those "Projects" first, so the
*.lib's are created.
I am very confused right now, and I have no clue how I could proceed with my
work.

Here is an example of an error I get, when I try to build pcl_common:
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "private:
void __thiscall boost::thread::start_thread(void)"
(?start_thread@thread@boost@@AAEXXZ) already defined in
boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public:
__thiscall boost::thread::~thread(void)" (??1thread@boost@@QAE@XZ) already
defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "bool
__cdecl boost::this_thread::interruptible_wait(void *,struct
boost::detail::timeout)"
(?interruptible_wait@this_thread@boost@@YA_NPAXUtimeout@detail@2@@Z) already
defined in boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>libboost_thread-vc100-mt-1_43.lib(thread.obj) : error LNK2005: "public:
void __thiscall boost::thread::join(void)" (?join@thread@boost@@QAEXXZ)
already defined in
boost_thread-vc100-mt-1_43.lib(boost_thread-vc100-mt-1_43.dll)
1>time_trigger.obj : error LNK2019: unresolved external symbol
__imp__timeGetTime@0 referenced in function "double __cdecl
pcl::getTime(void)" (?getTime@pcl@@YANXZ)

This is just one example. I just got 3 Projects building correctly and 39
Projects failed and 5 were skipped!

I am very lost and I appreciate any help! Thanks!

Best Regards,

Serkan.



Hi Serkan,

Seems like you are mixing static (libboost*.lib) and shared (boost*.lib) boost libraries.
As Radu said, Windows port is almost complete but only for static building (i think).

Mourad


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

Re: PCL on Windows

kan2k
Hi Mourad,

as I said, I am not so experienced with VS and C++ etc. I would not say I am a beginner, but I am not a pro either :)
So, you say, I am mixing static (libboost*.lib) and shared (boost*.lib) boost libraries. How can I fix this?
I will have a look at that myself, but right now, I have no idea how to fix this :D
I just wanted to mention, that all I did was to add all the external dependencies in the CMake-GUI, and I managed it so far, that CMake configured and generated the *.sln file etc.
So I don't really know, how I can fix the other problems, which occur, when I want to compile them.
But for now, I will look at dev.pointclouds.org, maybe I can fix some problems with that.

Serkan.
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

kan2k
Hey guys,

I think I removed the error with the static libraries. But now I have another error when I try to compile pcl_common:
1>time_trigger.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "double __cdecl pcl::getTime(void)" (?getTime@pcl@@YANXZ)
1>D:\Meine Dateien\Uni\IP\PCL\build\common\Release\pcl_common.dll : fatal error LNK1120: 1 unresolved externals

Do somebody know how to solve this?

Serkan
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

Mourad Boufarguine

Hi Serkan,


I think I removed the error with the static libraries.

Good to hear that.
 
But now I have
another error when I try to compile pcl_common:
1>time_trigger.obj : error LNK2019: unresolved external symbol
__imp__timeGetTime@0 referenced in function "double __cdecl
pcl::getTime(void)" (?getTime@pcl@@YANXZ)

Do somebody know how to solve this?


try linking with winmm.lib . I remember i got this problem with vs 2008, but it disappeared with vs 2010.

 
Serkan

--


Mourad


 


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

Re: PCL on Windows

Mourad Boufarguine
Hi Serkan,

What svn revision are you using ? I thought this problem disappeared with some recent changes in svn trunk...

Are you trying to build static or shared pcl libs ? (in cmake gui , PCL_SHARED_LIBS is checked or not ?)

Mourad


On Wed, Apr 13, 2011 at 10:26 AM, Mourad Boufarguine <[hidden email]> wrote:

Hi Serkan,


I think I removed the error with the static libraries.

Good to hear that.
 
But now I have
another error when I try to compile pcl_common:
1>time_trigger.obj : error LNK2019: unresolved external symbol
__imp__timeGetTime@0 referenced in function "double __cdecl
pcl::getTime(void)" (?getTime@pcl@@YANXZ)

Do somebody know how to solve this?


try linking with winmm.lib . I remember i got this problem with vs 2008, but it disappeared with vs 2010.

 
Serkan

--


Mourad


 



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

Re: PCL on Windows

Mourad Boufarguine
It seems like you are building debug libs, right ?
Try building in release, because vs doesn't allow mixing debug and release libs. If you want to build debug libraries, you need also to compile all dependencies in debug configuration. For the moment, the CMake scripts of PCL don't allow specifiying a debug and a release version of each dependency..

Mourad

2011/4/13 Serkan Türker <[hidden email]>
Hi Mourad,

I think I am using the latest version, since I downloaded it yesterday :D
I was able to compile pcl_common correctly, the hint with WinMM.lib solved the error.

But there are so may other erros yet to fix, I don't know where to start :S
For example, when I want to compile pcL_kdtree this error messages appear.
1>flann_s.lib(logger.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>flann_s.lib(saving.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>flann_s.lib(random.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>flann_s.lib(index_testing.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>D:\Meine Dateien\Uni\IP\PCL\build\kdtree\Debug\pcl_kdtree.dll : fatal error LNK1319: 4 mismatches detected

Serkan

Am 13.04.2011 10:38, schrieb Mourad Boufarguine:
Hi Serkan,

What svn revision are you using ? I thought this problem disappeared with some recent changes in svn trunk...

Are you trying to build static or shared pcl libs ? (in cmake gui , PCL_SHARED_LIBS is checked or not ?)

Mourad


On Wed, Apr 13, 2011 at 10:26 AM, Mourad Boufarguine <[hidden email]> wrote:

Hi Serkan,


I think I removed the error with the static libraries.

Good to hear that.
 
But now I have
another error when I try to compile pcl_common:
1>time_trigger.obj : error LNK2019: unresolved external symbol
__imp__timeGetTime@0 referenced in function "double __cdecl
pcl::getTime(void)" (?getTime@pcl@@YANXZ)

Do somebody know how to solve this?


try linking with winmm.lib . I remember i got this problem with vs 2008, but it disappeared with vs 2010.

 
Serkan

--


Mourad


 





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

Re: PCL on Windows

Mourad Boufarguine
In reply to this post by Mourad Boufarguine
Yes you need to uncheck it in order to build static libs. Shared libs aren' supported yet for msvc.

Mourad

2011/4/13 Serkan Türker <[hidden email]>
Hi Mourad,

just quick, the PCL_SHARED_LIBRARIES box was checked, do I have to uncheck?

I just did right now and I will look if some other errors will disapper.


Serkan

Am 13.04.2011 10:38, schrieb Mourad Boufarguine:
Hi Serkan,


What svn revision are you using ? I thought this problem disappeared with some recent changes in svn trunk...

Are you trying to build static or shared pcl libs ? (in cmake gui , PCL_SHARED_LIBS is checked or not ?)

Mourad


On Wed, Apr 13, 2011 at 10:26 AM, Mourad Boufarguine <[hidden email]> wrote:

Hi Serkan,


I think I removed the error with the static libraries.

Good to hear that.
 
But now I have
another error when I try to compile pcl_common:
1>time_trigger.obj : error LNK2019: unresolved external symbol
__imp__timeGetTime@0 referenced in function "double __cdecl
pcl::getTime(void)" (?getTime@pcl@@YANXZ)

Do somebody know how to solve this?


try linking with winmm.lib . I remember i got this problem with vs 2008, but it disappeared with vs 2010.

 
Serkan

--


Mourad


 





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

Re: PCL on Windows

Mourad Boufarguine
In reply to this post by Mourad Boufarguine
You are welcome :) but, for the records, try to keep the pcl mailing list informed, it could be useful for someone else :)
Mourad

2011/4/13 Serkan Türker <[hidden email]>
Yeah, this error occured when I was compiling in Debug Mode. But I was building in Debug and Release Mode, since I was just testing in which mode are the less errors. 
Now I compiled pcl_common and it gave me the pcl_common.lib back :D
I think I am on a good way, thank you very much.
I will now try to compile the other projects and report to you if there are other problems, if you don't mind.

Serkan

Am 13.04.2011 10:55, schrieb Mourad Boufarguine:
It seems like you are building debug libs, right ?
Try building in release, because vs doesn't allow mixing debug and release libs. If you want to build debug libraries, you need also to compile all dependencies in debug configuration. For the moment, the CMake scripts of PCL don't allow specifiying a debug and a release version of each dependency..

Mourad

2011/4/13 Serkan Türker <[hidden email]>
Hi Mourad,

I think I am using the latest version, since I downloaded it yesterday :D
I was able to compile pcl_common correctly, the hint with WinMM.lib solved the error.

But there are so may other erros yet to fix, I don't know where to start :S
For example, when I want to compile pcL_kdtree this error messages appear.
1>flann_s.lib(logger.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>flann_s.lib(saving.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>flann_s.lib(random.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>flann_s.lib(index_testing.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in kdtree_flann.obj
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>D:\Meine Dateien\Uni\IP\PCL\build\kdtree\Debug\pcl_kdtree.dll : fatal error LNK1319: 4 mismatches detected

Serkan

Am 13.04.2011 10:38, schrieb Mourad Boufarguine:
Hi Serkan,

What svn revision are you using ? I thought this problem disappeared with some recent changes in svn trunk...

Are you trying to build static or shared pcl libs ? (in cmake gui , PCL_SHARED_LIBS is checked or not ?)

Mourad


On Wed, Apr 13, 2011 at 10:26 AM, Mourad Boufarguine <[hidden email]> wrote:

Hi Serkan,


I think I removed the error with the static libraries.

Good to hear that.
 
But now I have
another error when I try to compile pcl_common:
1>time_trigger.obj : error LNK2019: unresolved external symbol
__imp__timeGetTime@0 referenced in function "double __cdecl
pcl::getTime(void)" (?getTime@pcl@@YANXZ)

Do somebody know how to solve this?


try linking with winmm.lib . I remember i got this problem with vs 2008, but it disappeared with vs 2010.

 
Serkan

--


Mourad


 







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

Re: PCL on Windows

Mourad Boufarguine


2011/4/13 Serkan Türker <[hidden email]>
Ok, I will do :)

I was able to compile some project for now, but when I want to compile pcl_io I get this nasty error message:

1>d:\meine dateien\uni\ip\eigen-eigen-65ee2328342f\eigen-eigen-65ee2328342f\eigen\Core(181): fatal error C1189: #error :  The preprocessor symbols 'min' or 'max' are defined. If you are compiling on Windows, do #define NOMINMAX to prevent windows.h from defining these symbols.

Apparently this is a Windows problem, and I tried to add this line "#define NOMINMAX" to Core but it didn't help :D

#define NOMINMAX is added to <pcl/win32_macros.h>

you should add #include <pcl/win32_macros.h> on top of the cpp file that gave you this error. I am sorry, i can't be more specific as i don't have a running pcl solution right now.

Mourad

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

Re: PCL on Windows

Mourad Boufarguine

2011/4/13 Serkan Türker <[hidden email]>
The error occurs in Eigen/Core I think. So it is not a cpp file. I added the line on top of Core but still the error is not gone. Also, there are other erros when compiling pcl_io:

2>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h(288): fatal error C1083: Cannot open include file: 'sched.h': No such file or directory

2>..\..\io\src\openni_camera\openni_device_primesense.cpp(57): error C2065: '__PRETTY_FUNCTION__' : undeclared identifier

2>..\..\io\src\openni_camera\openni_driver.cpp(45): fatal error C1083: Cannot open include file: 'libusb-1.0/libusb.h': No such file or directory

I think sched.h is a Linux header right? So its obvious that it does not find it in Windows?
The '__PRETTY_FUNCTION__' error occurs like a hundred times, but I have no idea what this might be.
And of course the error with libusb.h. There is a bug reported on dev.pointclouds.org regarding to that error, but I think it's not solved right now?


take a look at this : http://dev.pointclouds.org/issues/56
there are some solutions/hints how to solve most of your errors.
Some of the issues of this ticket were resolved, some not yet .

Could you cc the pcl mailing list , to keep track of this conversation, so others stay informed ? :)

Mourad

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

Re: PCL on Windows

kan2k
@ Mourad:

I looked at http://dev.pointclouds.org/issues/56. The openni errors are gone now but I still get this error:

1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h(288): fatal error C1083: Cannot open include file: 'sched.h': No such file or directory

Is it not possible to solve this at the moment, or am I missing something?

Serkan.
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

nizar sallem
Hi,

sched.h is a header from pthread so try installing pthread for Windows
and rerun compilation.

Cheers,
--
Nizar
At Wed, 13 Apr 2011 04:20:02 -0700 (PDT),
kan2k wrote:

>
> @ Mourad:
>
> I looked at http://dev.pointclouds.org/issues/56. The openni errors are gone
> now but I still get this error:
>
> 1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h(288):
> fatal error C1083: Cannot open include file: 'sched.h': No such file or
> directory
>
> Is it not possible to solve this at the moment, or am I missing something?
>
> Serkan.
>
> --
> View this message in context: http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/PCL-on-Windows-tp2811875p2815610.html
> Sent from the Point Cloud Library (PCL) mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> https://code.ros.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

Mourad Boufarguine
In reply to this post by kan2k

On Wed, Apr 13, 2011 at 1:20 PM, kan2k <[hidden email]> wrote:
@ Mourad:

I looked at http://dev.pointclouds.org/issues/56. The openni errors are gone
now but I still get this error:

1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h(288):
fatal error C1083: Cannot open include file: 'sched.h': No such file or
directory

Is it not possible to solve this at the moment, or am I missing something?

Serkan.

--


mmm, i didn't know of pthread included in vs..
Could you post the whole output os vs please?

Mourad


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

Re: PCL on Windows

Mourad Boufarguine
In reply to this post by nizar sallem

On Wed, Apr 13, 2011 at 1:23 PM, Nizar Khalifa Sallem <[hidden email]> wrote:
Hi,

sched.h is a header from pthread so try installing pthread for Windows
and rerun compilation.

Cheers,
--
Nizar


 
It is weird. I didn't need to install pthread for windows to make pcl libs compile.

Mourad

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

Re: PCL on Windows

kan2k
In reply to this post by Mourad Boufarguine
hmm, now I am a little bit confused. I manually added the include path for libusb in VS. But suddenly I am not able to add the libusb-1.0.lib to my project because there is no longer a window in VS, where I could add libraries to my project. Anyway, now I get this output when I try to compile pcl_io:

1>------ Build started: Project: pcl_io, Configuration: Release Win32 ------
1>Build started 13.04.2011 13:31:28.
1>InitializeBuildStatus:
1>  Touching "pcl_io.dir\Release\pcl_io.unsuccessfulbuild".
1>CustomBuild:
1>  All outputs are up-to-date.
1>ClCompile:
1>  io.cpp
1>  pcd_io.cpp
1>  vtk_io.cpp
1>  openni_device.cpp
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h(288): fatal error C1083: Cannot open include file: 'sched.h': No such file or directory
1>  openni_device_primesense.cpp
1>  openni_image_bayer_grbg.cpp
1>  openni_depth_image.cpp
1>  openni_device_kinect.cpp
1>  openni_driver.cpp
1>..\..\io\src\openni_camera\openni_driver.cpp(247): error C2872: 'uint8_t' : ambiguous symbol
1>          could be 'C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdint.h(21) : unsigned char uint8_t'
1>          or       'C:/Program Files/boost/boost_1_43\boost/cstdint.hpp(211) : boost::uint8_t'
1>..\..\io\src\openni_camera\openni_driver.cpp(252): error C2872: 'uint8_t' : ambiguous symbol
1>          could be 'C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdint.h(21) : unsigned char uint8_t'
1>          or       'C:/Program Files/boost/boost_1_43\boost/cstdint.hpp(211) : boost::uint8_t'
1>  openni_exception.cpp
1>  openni_image_yuv_422.cpp
1>  kinect_grabber.cpp
1>  pcd_grabber.cpp
1>  Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:48.82
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Reply | Threaded
Open this post in threaded view
|

Re: PCL on Windows

Alessio Placitelli
That the issue I've reported in http://dev.pointclouds.org/issues/39  :-)

2011/4/13 kan2k <[hidden email]>
hmm, now I am a little bit confused. I manually added the include path for
libusb in VS. But suddenly I am not able to add the libusb-1.0.lib to my
project because there is no longer a window in VS, where I could add
libraries to my project. Anyway, now I get this output when I try to compile
pcl_io:

1>------ Build started: Project: pcl_io, Configuration: Release Win32 ------
1>Build started 13.04.2011 13:31:28.
1>InitializeBuildStatus:
1>  Touching "pcl_io.dir\Release\pcl_io.unsuccessfulbuild".
1>CustomBuild:
1>  All outputs are up-to-date.
1>ClCompile:
1>  io.cpp
1>  pcd_io.cpp
1>  vtk_io.cpp
1>  openni_device.cpp
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h(288):
fatal error C1083: Cannot open include file: 'sched.h': No such file or
directory
1>  openni_device_primesense.cpp
1>  openni_image_bayer_grbg.cpp
1>  openni_depth_image.cpp
1>  openni_device_kinect.cpp
1>  openni_driver.cpp
1>..\..\io\src\openni_camera\openni_driver.cpp(247): error C2872: 'uint8_t'
: ambiguous symbol
1>          could be 'C:\Program Files\Microsoft Visual Studio
10.0\VC\include\stdint.h(21) : unsigned char uint8_t'
1>          or       'C:/Program
Files/boost/boost_1_43\boost/cstdint.hpp(211) : boost::uint8_t'
1>..\..\io\src\openni_camera\openni_driver.cpp(252): error C2872: 'uint8_t'
: ambiguous symbol
1>          could be 'C:\Program Files\Microsoft Visual Studio
10.0\VC\include\stdint.h(21) : unsigned char uint8_t'
1>          or       'C:/Program
Files/boost/boost_1_43\boost/cstdint.hpp(211) : boost::uint8_t'
1>  openni_exception.cpp
1>  openni_image_yuv_422.cpp
1>  kinect_grabber.cpp
1>  pcd_grabber.cpp
1>  Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:48.82
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

--
View this message in context: http://point-cloud-library-pcl-mailing-list.967500.n3.nabble.com/PCL-on-Windows-tp2811875p2815655.html
Sent from the Point Cloud Library (PCL) mailing list mailing list archive at Nabble.com.
_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users



--
Alessio Placitelli


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

Re: PCL on Windows

Mourad Boufarguine
In reply to this post by kan2k

On Wed, Apr 13, 2011 at 1:38 PM, kan2k <[hidden email]> wrote:
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\pthread.h

I am quite sure there should not be any pthread.h in this folder, did you get it somewhere and put it there ??
From where did you get libusb ?

Mourad

_______________________________________________
[hidden email] / http://pointclouds.org
https://code.ros.org/mailman/listinfo/pcl-users
1234 ... 7