Skip to content
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

[dep] add PCL as dependency #1258

Merged
merged 5 commits into from
Oct 7, 2022
Merged

[dep] add PCL as dependency #1258

merged 5 commits into from
Oct 7, 2022

Conversation

simogasp
Copy link
Member

@simogasp simogasp commented Oct 3, 2022

This PR is a pre-requisite for the registration module that will be added by #425 .
It adds the CMake scripts to build PCL as a dependency as well as its own dependencies that were not already included in our scripts, flann and lz4.
It also add pcl among the dependencies to build in CI

Implementation remarks

NB
Flann at the moment is an embedded dependency of the project. The moment we will take it out and use it as an external dependency, the script should be modified to include flann and lz4 (its dependency) as a mandatory dependency.

@simogasp simogasp added this to the 2.5.0 milestone Oct 3, 2022
CMakeLists.txt Outdated Show resolved Hide resolved
p12tic
p12tic previously approved these changes Oct 3, 2022
p12tic
p12tic previously approved these changes Oct 3, 2022
@fabiencastan
Copy link
Member

Thanks. I will merge it for now, but it would be great to replace the internal flann soon to avoid version conflicts.

CMakeLists.txt Outdated
${LZ4_CMAKE_FLAGS}
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR> <SOURCE_DIR>
BUILD_COMMAND $(MAKE) -j${AV_BUILD_DEPENDENCIES_PARALLEL}
DEPENDS ${FLANN_TARGET} ${LZ4_TARGET} ${EIGEN_TARGET} ${BOOST_TARGET} ${PNG_TARGET}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DEPENDS ${FLANN_TARGET} ${LZ4_TARGET} ${EIGEN_TARGET} ${BOOST_TARGET} ${PNG_TARGET}
DEPENDS ${FLANN_TARGET} ${LZ4_TARGET} ${EIGEN_TARGET} ${BOOST_TARGET} ${PNG_TARGET} ${CUDA_TARGET}

CMakeLists.txt Outdated
Comment on lines 933 to 934
${CUDA_CMAKE_FLAGS}
-DWITH_CUDA:BOOL=OFF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with or without cuda?

Copy link
Member Author

@simogasp simogasp Oct 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not required for the registration module in pcl, that's why I set it to off.
I can put

Suggested change
${CUDA_CMAKE_FLAGS}
-DWITH_CUDA:BOOL=OFF
${CUDA_CMAKE_FLAGS}
-DWITH_CUDA:BOOL=${AV_USE_CUDA}

so that it is coherent with rest?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point was just that you added ${CUDA_CMAKE_FLAGS} which does not make sense if you disable cuda usage.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But yes, if we enable it as it's done now, that makes sense.

@fabiencastan fabiencastan merged commit 3581da7 into develop Oct 7, 2022
@fabiencastan fabiencastan deleted the dev/deps/add_pcl branch October 7, 2022 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants