CForge version (cforge version)
beta-3.1.0
$ cforge --version
cforge - C/C++ Build System beta-3.1.0
cforge version beta-3.1.0
C++ Project Management Tool
Copyright (c) 2023-2024
Finished Command completed successfully
$ which cforge
/home/username/.local/bin/cforge
$ readlink -f "$(which cforge)"
/home/username/.local/share/cforge/installed/cforge/bin/cforge
Operating system
Ubuntu 25.10, amd64, Linux 6.17.0-12-generic
Full error message
$ cforge vcpkg setup
cforge - C/C++ Build System beta-3.1.0
error Unknown command: vcpkg
Run 'cforge help' for a list of available commands.
error Command failed
Steps to reproduce
I was following the Installation and Quick Start guide and installed CForge with the curl to bash command. I tried to add a dependency with --vcpkg flag to a newly created project (cforge init my_project), which showed an error:
$ cforge deps add fmt --vcpkg
cforge - C/C++ Build System beta-3.1.0
error vcpkg not found. Checked: /home/username/Workspace/Playground/my_project/vcpkg/vcpkg and /home/username/vcpkg/vcpkg
Run cforge vcpkg setup to set up vcpkg integration
warning Dependency 'fmt' added to config, but installation failed. Run 'cforge vcpkg setup' then rebuild
Added fmt
Finished Command completed successfully
It tells me to run cforge vcpkg setup, which results in this error:
$ cforge vcpkg setup
cforge - C/C++ Build System beta-3.1.0
error Unknown command: vcpkg
Run 'cforge help' for a list of available commands.
error Command failed
This error is returned for any cforge vcpkg [clean|setup|update|...] subcommand.
vcpkg is installed and in my $PATH, including the $VCPKG_ROOT environment variable:
$ which vcpkg
/home/username/Workspace/Dependencies/vcpkg/vcpkg
$ env | grep VCPKG
VCPKG_ROOT=/home/username/Workspace/Dependencies/vcpkg
I then symlinked it:
$ ln -s "${VCPKG_ROOT}" "${HOME}/vcpkg"
$ ls -dalh "${HOME}/vcpkg"
lrwxrwxrwx 1 username username 41 Feb 8 13:19 /home/username/vcpkg -> /home/username/Workspace/Dependencies/vcpkg
CForge can now find my vcpkg installation, but when trying to build the project, it still gives me a linker error.
I upgraded CForge with cforge upgrade, but this didn't change anything.
As a test, I added fmt without the --vcpkg flag and it builds and runs as expected.
Thanks for your time.
CForge version (cforge version)
beta-3.1.0Operating system
Ubuntu 25.10, amd64, Linux 6.17.0-12-generic
Full error message
$ cforge vcpkg setup cforge - C/C++ Build System beta-3.1.0 error Unknown command: vcpkg Run 'cforge help' for a list of available commands. error Command failedSteps to reproduce
I was following the Installation and Quick Start guide and installed CForge with the curl to bash command. I tried to add a dependency with
--vcpkgflag to a newly created project (cforge init my_project), which showed an error:$ cforge deps add fmt --vcpkg cforge - C/C++ Build System beta-3.1.0 error vcpkg not found. Checked: /home/username/Workspace/Playground/my_project/vcpkg/vcpkg and /home/username/vcpkg/vcpkg Run cforge vcpkg setup to set up vcpkg integration warning Dependency 'fmt' added to config, but installation failed. Run 'cforge vcpkg setup' then rebuild Added fmt Finished Command completed successfullyIt tells me to run
cforge vcpkg setup, which results in this error:$ cforge vcpkg setup cforge - C/C++ Build System beta-3.1.0 error Unknown command: vcpkg Run 'cforge help' for a list of available commands. error Command failedThis error is returned for any
cforge vcpkg [clean|setup|update|...]subcommand.vcpkg is installed and in my
$PATH, including the$VCPKG_ROOTenvironment variable:I then symlinked it:
CForge can now find my vcpkg installation, but when trying to build the project, it still gives me a linker error.
I upgraded CForge with
cforge upgrade, but this didn't change anything.As a test, I added
fmtwithout the--vcpkgflag and it builds and runs as expected.Thanks for your time.