tdm-gcc icon indicating copy to clipboard operation
tdm-gcc copied to clipboard

Consider adding a vcpkg / package manager section to the website

Open cristianadam opened this issue 4 years ago • 2 comments

Frist of all congratulations to the new release!

TDM-GCC delivers the minimum requirement for building applications: a compiler, and a debugger, and a make tool.

Complex application do have dependencies, which on Windows are hard to fulfill. A solution for this problem is a package manager like vcpkg, conan, and hunter.

vcpkg has the biggest community and ported packages from them all.

vcpkg consists in a C++17 application (using C++17 filesystem) which needs to be bootstraped, and then used to install packages.

I used the following commands to build vcpkg with TDM-GCC-9.2:

$ git clone https://github.com/microsoft/vcpkg.git
$ cd vcpkg
$ git checkout 2020.01

$ cmake -S toolsrc -B build -GNinja -DCMAKE_BUILD_TYPE=Release
$ cmake --build build

$ cd build
$ vcpkg install libpng --triplet x64-mingw

This assumes that you have git, cmake, and ninja in PATH.

Not all vcpkg packages will work with MinGW, since is not officially supported by Microsoft. Packages that have a native CMake build system should work out of the box.

cristianadam avatar Mar 27 '20 11:03 cristianadam

Hi @cristianadam,

That's excellent news that TDM-GCC works with vcpkg out of the box. I'll consider whether there is a good default dependency manager to recommend for TDM-GCC; I've never heard of or used vcpkg before, but it looks promising!

jmeubank avatar Mar 28 '20 17:03 jmeubank

Thanks for sharing @cristianadam Was looking for info on using vcpkg with tdm-gcc and came across this, and found to be helpful.

KrishnaPG avatar Nov 28 '21 01:11 KrishnaPG