PCL Features Library Limit Exceeded

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

PCL Features Library Limit Exceeded

mrtm3050
Hi All,

I'm trying to create a static library in windows (visual studio 2010). I'm including four pcl libraries (PCL 1.7 trunk):

pcl_common_debug.lib
pcl_features_debug.lib
pcl_segmentation_debug.lib
pcl_filters_debug.lib

The purpose of the static library is to do plane segmentation (I'm using the organizedMultiPlane segmentation sample).

I get the following error: fatal error LNK1189: library limit of 65535 objects exceeded
http://support.microsoft.com/kb/949945

Any ideas on how to fix this? The corresponding application (.exe) sample works great. It looks like the bulk of the exports are from features and filters. If I take one of those libraries out, it compiles (though I have to take the corresponding references in the code out).

Thanks


Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

baggepinnen
If you found a solution to this problem, please consider posting it here. I have run into the same problem :(

Best regards
Fredrik

mrtm3050 wrote
Hi All,

I'm trying to create a static library in windows (visual studio 2010). I'm including four pcl libraries (PCL 1.7 trunk):

pcl_common_debug.lib
pcl_features_debug.lib
pcl_segmentation_debug.lib
pcl_filters_debug.lib

The purpose of the static library is to do plane segmentation (I'm using the organizedMultiPlane segmentation sample).

I get the following error: fatal error LNK1189: library limit of 65535 objects exceeded
http://support.microsoft.com/kb/949945

Any ideas on how to fix this? The corresponding application (.exe) sample works great. It looks like the bulk of the exports are from features and filters. If I take one of those libraries out, it compiles (though I have to take the corresponding references in the code out).

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

mrtm3050
Was a resolution to this ever found by anyone else? Still getting this
error when compiling. -Raj

On Tue, Aug 13, 2013 at 2:47 AM, baggepinnen <[hidden email]> wrote:

> If you found a solution to this problem, please consider posting it here. I
> have run into the same problem :(
>
> Best regards
> Fredrik
>
>
> mrtm3050 wrote
>> Hi All,
>>
>> I'm trying to create a static library in windows (visual studio 2010). I'm
>> including four pcl libraries (PCL 1.7 trunk):
>>
>> pcl_common_debug.lib
>> pcl_features_debug.lib
>> pcl_segmentation_debug.lib
>> pcl_filters_debug.lib
>>
>> The purpose of the static library is to do plane segmentation (I'm using
>> the organizedMultiPlane segmentation sample).
>>
>> I get the following error: fatal error LNK1189: library limit of 65535
>> objects exceeded
>> http://support.microsoft.com/kb/949945
>>
>> Any ideas on how to fix this? The corresponding application (.exe) sample
>> works great. It looks like the bulk of the exports are from features and
>> filters. If I take one of those libraries out, it compiles (though I have
>> to take the corresponding references in the code out).
>>
>> Thanks
>
>
>
>
>
> --
> View this message in context: http://www.pcl-users.org/PCL-Features-Library-Limit-Exceeded-tp4026817p4029054.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: PCL Features Library Limit Exceeded

mrtm3050
I should add that I've updated to 1.7.2.

On Wed, Aug 6, 2014 at 9:30 PM, Raj Sodhi <[hidden email]> wrote:

> Was a resolution to this ever found by anyone else? Still getting this
> error when compiling. -Raj
>
> On Tue, Aug 13, 2013 at 2:47 AM, baggepinnen <[hidden email]> wrote:
>> If you found a solution to this problem, please consider posting it here. I
>> have run into the same problem :(
>>
>> Best regards
>> Fredrik
>>
>>
>> mrtm3050 wrote
>>> Hi All,
>>>
>>> I'm trying to create a static library in windows (visual studio 2010). I'm
>>> including four pcl libraries (PCL 1.7 trunk):
>>>
>>> pcl_common_debug.lib
>>> pcl_features_debug.lib
>>> pcl_segmentation_debug.lib
>>> pcl_filters_debug.lib
>>>
>>> The purpose of the static library is to do plane segmentation (I'm using
>>> the organizedMultiPlane segmentation sample).
>>>
>>> I get the following error: fatal error LNK1189: library limit of 65535
>>> objects exceeded
>>> http://support.microsoft.com/kb/949945
>>>
>>> Any ideas on how to fix this? The corresponding application (.exe) sample
>>> works great. It looks like the bulk of the exports are from features and
>>> filters. If I take one of those libraries out, it compiles (though I have
>>> to take the corresponding references in the code out).
>>>
>>> Thanks
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://www.pcl-users.org/PCL-Features-Library-Limit-Exceeded-tp4026817p4029054.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: PCL Features Library Limit Exceeded

zavataafnan
This post has NOT been accepted by the mailing list yet.
Yes, I got this error when i am compiling in 64-bit mode!
Is that really correct that PCL_features contains more than 65535 exports?
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

zavataafnan
This post has NOT been accepted by the mailing list yet.
i can build PCL_features by editing some parts of grsd.hpp!!!
I do not know why these changes can correct it!


// Instantiations of specific point types
//#ifdef PCL_ONLY_CORE_POINT_TYPES
  PCL_INSTANTIATE_PRODUCT(GRSDEstimation, ((pcl::PointXYZ)(pcl::PointXYZI)(pcl::PointXYZRGBA))((pcl::Normal))((pcl::GRSDSignature21)))
//#else
//  PCL_INSTANTIATE_PRODUCT(GRSDEstimation, (PCL_XYZ_POINT_TYPES)(PCL_NORMAL_POINT_TYPES)((pcl::GRSDSignature21)))
//#endif


Best Regards,
Mostafa
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

superchao
This post has NOT been accepted by the mailing list yet.
I got the same problem. And your method works for me too. Can also refer to this link: http://www.pcl-developers.org/Win-64-linking-fails-on-TeamCity-td5707562.html
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

Lars Glud
Hi all,

This commit has added a new feature in the feature library, which makes the export symbol count exceed the 65535.

So a temporary solution is to either uncomment it as told earlier in this thread or checkout master branch just before this new addition.

A more forward minded solution is, atleast not for me, so easily done, and should properly be discussed by some of the core developers - though people should ofc. come with suggestions :)

I can think of:

- Start a new feature2 library (not optimal)
- split the feature library into several dlls: one for features declaration and one for algorithm implementations.
- Maybe several dlls where features and algorithm is in same library, if the feature is only used locally and then sort them by type of feature - or maybe requirements like with/without normals, with/without color.

I have created a thread on the developer-mailing list, but there hasn't been much activity yet - perhaps due to holidays or something...

Also a issue on github.

Regards, Lars
Vision System Engineer
Danrobotics A/S
DK
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

zavataafnan
This post has NOT been accepted by the mailing list yet.
Hi all,

But it seems that is really strange! this number of exports shows that each functions declare as exports to library. However it is not necessary to do that!
another major, Has the PCL_feature been written in OOP completely? In this case, most of the functions declare in polymorphism solution!
Excuse me for my comments! I am new to PCL and I hope I could be an effective user! I just want to import Geometric Moment Invariants (https://sites.google.com/site/jabaroutimoghaddam/) and extract the key points using PCL.


Best Regards,
Mostafa    
 
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

ruben
This post has NOT been accepted by the mailing list yet.
In reply to this post by zavataafnan
Hi Mostafa,

what did you exactly change in grsd.hpp?  Did you add the following lines at the beginning?
// Instantiations of specific point types
#ifdef PCL_ONLY_CORE_POINT_TYPES
  PCL_INSTANTIATE_PRODUCT(GRSDEstimation, ((pcl::PointXYZ)(pcl::PointXYZI)(pcl::PointXYZRGBA))((pcl::Normal))((pcl::GRSDSignature21)))
#else
  PCL_INSTANTIATE_PRODUCT(GRSDEstimation, (PCL_XYZ_POINT_TYPES)(PCL_NORMAL_POINT_TYPES)((pcl::GRSDSignature21)))
#endif
BR,
Ruben
Reply | Threaded
Open this post in threaded view
|

Re: PCL Features Library Limit Exceeded

xgiralt
ruben wrote
Hi Mostafa,
what did you exactly change in grsd.hpp?  Did you add the following lines at the beginning?
pcl_features contains in several files the code mentioned
#ifdef PCL_ONLY_CORE_POINT_TYPES
In MS Visual Studio you can define it for the whole library by right clicking the project name 'pcl_features' in the Solution Explorer, going to properties -> C/C++ -> Preprocessor -> Preprocessor Definitions and including  PCL_ONLY_CORE_POINT_TYPES in both Debug and Release configurations.
I have managed to bypass the Visual Studio Library Limit Exceeded error by doing this.
Regards
xavi