Giter Club home page Giter Club logo

Comments (14)

MikeGitb avatar MikeGitb commented on August 15, 2024 14

The Question about the individual configuration aside: Shouldn't the default be x64 anyway?

from vcpkg.

Kwizatz avatar Kwizatz commented on August 15, 2024 11

Sooner or later the need for a config file will arise. Why wait?

from vcpkg.

KindDragon avatar KindDragon commented on August 15, 2024 10

@9prady9 you can set environment variable VCPKG_DEFAULT_TRIPLET https://vcpkg.readthedocs.io/en/latest/users/triplets/#additional-remarks

from vcpkg.

ras0219-msft avatar ras0219-msft commented on August 15, 2024 8

@MikeGitb The reason to use x86-windows as the default triplet is to make the new user experience as absolutely streamlined as possible: Visual Studio defaults to x86 for new projects and remembering to change the architecture is one of those tiny details that's easy to overlook even for experts.

@Kwizatz You're absolutely right, we will certainly need a config file eventually. However, I'd like to accumulate as many concrete use cases as reasonable first to make sure we can make solid design decisions (for example, should the setting be per-repository or user-wide? It's easy to say both, but I'd like to hear of the need in practice before jumping to the most complex option).

Additionally, I've heard asks offline for a triplet environment variable as well, so that's the motive for proposing it above.

from vcpkg.

ras0219-msft avatar ras0219-msft commented on August 15, 2024 5

Would an environment variable work?

Something like VCPKG_DEFAULT_TRIPLET or VCPKG_TRIPLET?

from vcpkg.

MikeGitb avatar MikeGitb commented on August 15, 2024 4

Right, and imho the default in VS is wrong too ;)
But I see your point.

from vcpkg.

Telokis avatar Telokis commented on August 15, 2024 3

If you install everything at once, you can use --triplet x64-windows to save yourself some typing.

from vcpkg.

albertziegenhagel avatar albertziegenhagel commented on August 15, 2024

I think an environment variable would be great.

from vcpkg.

9prady9 avatar 9prady9 commented on August 15, 2024

Having a way to atleast switch the default triplet helps, especially in docker and/or ci environments.

from vcpkg.

9prady9 avatar 9prady9 commented on August 15, 2024

thank you @KindDragon

from vcpkg.

AI-ML-Enthusiast avatar AI-ML-Enthusiast commented on August 15, 2024

@albertziegenhagel @9prady9 @Telokis

where will I set VCPKG_DEFAULT_TRIPLET or use --triplet x64-windows? would you tell me please?

from vcpkg.

drescherjm avatar drescherjm commented on August 15, 2024

One way is to set it as a windows environment variable.

from vcpkg.

AI-ML-Enthusiast avatar AI-ML-Enthusiast commented on August 15, 2024

@drescherjm

One way is to set it as a windows environment variable.

Thank you very much for your comment. How can I use --triplet x64-windows? it will be look like this:
./vcpkg.exe --triplet x64-windows install cgal
or in a different way

from vcpkg.

Timmmm avatar Timmmm commented on August 15, 2024

The reason to use x86-windows as the default triplet is to make the new user experience as absolutely streamlined as possible: Visual Studio defaults to x86 for new projects

Not on my system. At least, not with CMake:

PS C:\Users\Tim\Realsense\realsense_recorder> cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=C:/Users/Tim/local/vcpkg/scripts/buildsystems/vcpkg.cmake
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- The CXX compiler identification is MSVC 19.28.29913.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features - done
CMake Error at C:/Users/Tim/local/vcpkg/scripts/buildsystems/vcpkg.cmake:794 (_find_package):
  Could not find a package configuration file provided by "realsense2" with
  any of the following names:

    realsense2Config.cmake
    realsense2-config.cmake

Has that changed?

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.