You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on an application which is primarily on Linux. We have moved to conan packaging recently. I am exploring Visual Studio IDE. Now, I am using the remote build option of VS. What it does, as I understand is, copy all files required from the windows filesystem (source has to be in windows fs, for some reason) to a destination folder in linux and then issue the command like cmake, cmake build/install there. Now, we have two versions, before conan(the monolith, built with cmake) and after conan (slightly modular, built with conan install/build/export-pkg/create).
How do I make it happen that, the conan packages VS can copy over to Linux and build? P.S. I tried building the monolith, it worked.
To my understanding, the hurdles are,
Conan fetches platform specific packages. So, from windows machine it might fetch windows specific packages and fail as all our packages are Linux specific.
When integrated with conan, the project stops being a CMake project in the face of it (not sure), though it is there inside. I am saying this because we lose the ability to issue cmake commands, right? I might be wrong.
I am using,
the latest conan version,
Ubuntu 22
windows 11
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
I don't know how the Visual Studio remote build works.
Conan fetches platform specific packages. So, from windows machine it might fetch windows specific packages and fail as all our packages are Linux specific.
You can easily override that, simply by defining a linux profile, you can use --profile=mylinuxprofile, to download the dependencies for Linux instead of Windows one.
There are some limitations to this approach, for example if there are recipes that have system_requirements() to install system packages, it will obviously not work in the Windows host.
Then the packages are installed in the Conan cache, typically <userhome>/.conan2, but I think this folder will not be copied to the Linux remote by default. Maybe it is possible to define with CONAN_HOME env-var some folder for the cache that will be copied to the remote Linux
When integrated with conan, the project stops being a CMake project in the face of it (not sure), though it is there inside. I am saying this because we lose the ability to issue cmake commands, right? I might be wrong.
Not really, the consumer project is still a regular CMake project, that find dependencies with find_package(). The only special thing is that the packages will be found in the Conan cache. But I suspect this will be an issue also for any other external dependencies to the project? But it is a cmake project, the most typical flow is actually something like:
What is your question?
Hi,
I am working on an application which is primarily on Linux. We have moved to conan packaging recently. I am exploring Visual Studio IDE. Now, I am using the remote build option of VS. What it does, as I understand is, copy all files required from the windows filesystem (source has to be in windows fs, for some reason) to a destination folder in linux and then issue the command like cmake, cmake build/install there. Now, we have two versions, before conan(the monolith, built with cmake) and after conan (slightly modular, built with conan install/build/export-pkg/create).
How do I make it happen that, the conan packages VS can copy over to Linux and build? P.S. I tried building the monolith, it worked.
To my understanding, the hurdles are,
I am using,
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: