Hi,
I´m including the pcl library (and therefore also boost and eigen) in a plugin, using the [Tutorial from ][1].
Actually I did use [his code from github][2] and had no problems compiling it.
Then I wanted to use a PCDWriter in a method - since then I got a linking error:
LNK1104 cannot open file ‘libboost_thread-vc141-mt-1_64.lib’
But in my project, everything is there:
I also tried deleting the Binary and Intermediate folder and refreshing the VS project as this is [sometimes mentioned][4] als solution for linking problems.
Any Ideas what I can try?
Ok I found out some things:
-
The Path to the lib file was not there. Somehow the line PublicAdditionalLibraries.Add(Path.Combine(ModulePath, "Boost/lib/libboost_thread-vc141-mt-1_64.lib"));
in the PCL.build.cs
did not do the job. If I add the path to the lib files manually in the VS project settings, the error goes away (and is replaced by some other, internal error meaning I actually cant use the lib file).
-
The need of having the libboost_thread-vc141-mt-1_64.lib is also defined somewhere else, and I cant find where. Because when I want to include another version of the lib ( libboost_thread-vc140-mt-1_64.lib comming with the current download of PCL 1.8.1) and change the line to PublicAdditionalLibraries.Add(Path.Combine(ModulePath, "Boost/lib/libboost_thread-vc140-mt-1_64.lib"));
it still has the error “cant open libboost_thread-vc14 **1 **-mt-1_64.lib”