-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option that build with FLANN dynamic linking on Windows #1918
Comments
I think the developer should always have the option to select if its dependencies are static or dynamic, so in that sense I endorse the proposal. Now the question we should be asking is why weren't we allowing to link against a dynamic flann on Windows? What happens if we simply do this? if(NOT PCL_SHARED_LIBS)
set(FLANN_USE_STATIC ON)
endif() We can wait for you to submit the PR with the proposal. |
I don't know the reason why it was implemented this. |
@UnaNancyOwen Can you try on your windows environment to modify the CMakeLists.txt to removed the check for windows and report on the results? if(NOT PCL_SHARED_LIBS)
set(FLANN_USE_STATIC ON)
endif()
If there's no real known reason at this point, then we should try to see what happens if we just try to mimic the linking behavior of the other OSs. |
I sent a pull request (#1919). This change does not affect other OS. @SergioRAgostinho I will confirm that. |
@SergioRAgostinho I tried some tutorials, and confirmed that these tutorials can be built and ran successfully. |
Then we definitely needs to revise things after this release. |
(new pretty labels nice :D) |
Superseeded by #2089. |
PCL always search static library of FLANN on Windows.
It is good operation as default settings.
But, I think that FLANN search should be introduce an option to search for dynamic libraries like a Boost for Windows users. (PCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32)
What do you think about this proposal?
The text was updated successfully, but these errors were encountered: