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

Create VCPKG port #767

Open
fabiencastan opened this issue Apr 14, 2020 · 15 comments
Open

Create VCPKG port #767

fabiencastan opened this issue Apr 14, 2020 · 15 comments
Labels
deploying Anything related to deploying (packaging etc) do not close feature

Comments

@fabiencastan
Copy link
Member

fabiencastan commented Apr 14, 2020

Someone started a PR in this direction:
microsoft/vcpkg#8829

It would be good to finalize it, without hacking/patching the CMakeList.txt but doing the fixes needed directly in the repo.

@fabiencastan fabiencastan added feature deploying Anything related to deploying (packaging etc) labels Apr 14, 2020
@fabiencastan
Copy link
Member Author

fabiencastan commented Apr 19, 2020

@ChaoJia @JackBoosY Would you be interested in helping us on that?

Currently the build of all the dependencies works fine on windows.
The build of the dependencies works almost fine on linux with the exception of alembic which is still a windows-only port file.

We also need to create the port files for https://github.com/alicevision/popsift, https://github.com/alicevision/CCTag and https://github.com/laurentkneip/opengv.

@fabiencastan
Copy link
Member Author

fabiencastan commented Apr 19, 2020

PopSift PR: microsoft/vcpkg#10979

@fabiencastan
Copy link
Member Author

fabiencastan commented Apr 19, 2020

Alembic PR: microsoft/vcpkg#10912

Regarding alembic there is a build error, due to -Werror in debug:
alembic/alembic#263
So there is a workaround in the vcpkg portfile.

@JackBoosY
Copy link
Contributor

We very much look forward to you can propose more PRs to add more ports in vcpkg!

@github-actions github-actions bot added the stale label Apr 20, 2021
@alicevision alicevision deleted a comment from github-actions bot Apr 20, 2021
@fabiencastan
Copy link
Member Author

CCTag PR: microsoft/vcpkg#16719

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Apr 16, 2022
@simogasp simogasp removed the stale label Apr 16, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Apr 12, 2023
@simogasp simogasp removed the stale label Apr 12, 2023
Copy link

github-actions bot commented Apr 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Apr 7, 2024
@simogasp simogasp removed the stale label Apr 7, 2024
@JackBoosY
Copy link
Contributor

Will continue to add this to vcpkg.

@JackBoosY
Copy link
Contributor

JackBoosY commented Apr 8, 2024

One question, I found the temporary code here:

if(WIN32)
# Disable BOOST autolink
add_definitions(-DBOOST_ALL_NO_LIB)
#To be removed later, a bug to make things work with current vcpkg
#https://github.com/microsoft/vcpkg/issues/22495
add_definitions(-DBOOST_USE_WINAPI_VERSION=BOOST_WINAPI_VERSION_WIN7)
endif()

Why disable dynamic boost here?

I disabled the code block and built successfully.

@JackBoosY
Copy link
Contributor

Another question:
We have cmake option ALICEVISION_USE_MESHSDFILTER here:

option(ALICEVISION_USE_MESHSDFILTER "Use MeshSDFilter library (enable MeshDenoising and MeshDecimate)" ON)

However, the configure system checks whether meshsdfilter folder is exists:

if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/MeshSDFilter/external)
message(FATAL_ERROR
"\n submodule(s) are missing, please update your repository:\n"
" > git submodule update -i\n")
endif()

I think the code block should requires ALICEVISION_USE_MESHSDFILTER is ON.

@simogasp
Copy link
Member

simogasp commented Apr 8, 2024

I think the code block should requires ALICEVISION_USE_MESHSDFILTER is ON.

Yes, you are right, that piece of code should be surrounded by an IF (ALICEVISION_USE_MESHSDFILTER)

@JackBoosY
Copy link
Contributor

@simogasp Can you explain why the first question happens?

@simogasp
Copy link
Member

@simogasp Can you explain why the first question happens?

Sorry, I have no idea, does disabling auto-linking via BOOST_ALL_NO_LIB mean that dynamic linking is also disabled?

@JackBoosY
Copy link
Contributor

Can anyone review my PR microsoft/vcpkg#38034?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploying Anything related to deploying (packaging etc) do not close feature
Projects
None yet
Development

No branches or pull requests

3 participants