Open amine-aboufirass opened 1 week ago
I also notice that a directory called p
has been created in $HOME/.conan2
which weighs over 10GB. Not sure what that's doing there....
Hi @amine-aboufirass
Thanks for your question
conan install . --output-folder=build
It seems this is an issue with the paths. If your conanfile
has cmake_layout
, this is typically no longer necessary.
Then please check the output, when you run conan install
in the output messages you will see the real location of the different generated files. The conan toolchain will be somewhere more like:
$ cmake . -DCMAKE_TOOLCHAIN_FILE=build/generators/conan_toolchain.cmake
Also, in many cases and if using CMake>=3.23, it is more convenient to just use the generated presets, so
$ cmake --preset conan-default
$ cmake --build --preset conan-debug
I also notice that a directory called p has been created in $HOME/.conan2 which weighs over 10GB. Not sure what that's doing there....
Yes, that is the Conan cache, where the actual packages are installed, and yes, the C++ packages can be large, 10Gb sounds a bit too much unless you are installing a ton of dependencies. It also depends on different factors, for example Debug packages use way more space than Release packages
Hi @amine-aboufirass
Any further question or issue here? If not maybe we can close the ticket? Thanks for your feedback.
I would like to write some code which has GDAL as a dependency. Here's what I came up with so far:
profile
conanfile.txt
CMakeLists.txt
CMakeUserPresets.json
I followed the Getting Started portion of the Conan docs as closely as was necessary. It does so happen that I would like to debug the code, so I am focusing on creating a debug configuration. The following install command took a WHILE, but appears to have run successfully:
I then
cd
to mybuild
directory and run the following:This unfortunately fails with an error:
What could I possibly be doing wrong here?