C++ Weekly - Ep 118 - Trying Out The vcpkg Package Manager

preview_player
Показать описание
☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟

T-SHIRTS AVAILABLE!

WANT MORE JASON?

SUPPORT THE CHANNEL

GET INVOLVED

JASON'S BOOKS

► C++23 Best Practices

► C++ Best Practices

JASON'S PUZZLE BOOKS

► Object Lifetime Puzzlers Book 1

► Object Lifetime Puzzlers Book 2

► Object Lifetime Puzzlers Book 3

► Copy and Reference Puzzlers Book 1

► Copy and Reference Puzzlers Book 2

► Copy and Reference Puzzlers Book 3

► OpCode Puzzlers Book 1


RECOMMENDED BOOKS

AWESOME PROJECTS

O'Reilly VIDEOS

Рекомендации по теме
Комментарии
Автор

I'm pretty sure the reason to make the packages into system includes is that they aren't really part of *your* project. If they do generate warnings, you can't fix them (without either using a patched version, or submitting a patch upstream, or something).

danielrhouck
Автор

Nice work. Please note getting the package managers to work with a source install of boost with c++17 and libc++ is a bit of a battle FWIW

MattHurd
Автор

I think that on Windows, the integrate part it wants you to run hooks things up with Visual Studio (and presumably Code) so that you can use the packages across any projects without messing with any include paths. That's a somewhat vague recollection, though, so it could be partly or fully wrong. Either way, I'm not sure how that applies to Linux.

Qazqi
Автор

The user-wide integration relates only to MSBuild and does not affect CMake.
Link to docs about integration is missing from README.
vcpkg #3657 pull request has been submitted to add the link.

mloskot
Автор

Just a note, if you are using windows it installs the x86 libraries by default, so if you have a 64-bit build you should change it to 64-bit by adding the postfix :x64-windows

danaadalaide
Автор

i have a problem when i try to ./bootstrap-vcpkg.bat it brings me out 2 errors about the instance property inside the bootstrap script. Can anyone help me ?

sotosgamias
Автор

You might consider testing Meson. It has fmtlib in wrapdb, and using it is fairly simple. Add the test file, do "mkdir subprojects; meson wrap install fmt" and then use it in the usual way with "fmt_dep = dependency('fmt', fallback : ['fmt', 'fmt_dep'])".

jpakkane
Автор

Kinda strange that there's no direct integration within Visual Studio. It should be shipped as built-in package manager with some GUI.

sephirostoy
Автор

That's M$ so to disalbe telemetric you can do:
./vcpkg/bootstrap-vcpkg.sh -disableMetrics
VCPKG_DISABLE_METRICS=yes ./vcpkg/vcpkg install fmt
vcpkg --disable-metrics install fmt

lisekSL
Автор

Heyy, for someone trying to integrate a cpp package manager, which one do you recommend vcpkg or conan?

dibyojyotibhattacherjee
Автор

some people don't speak English native, and music make hard to understand, thank you, for your job.

helviohild