Game Development Community

GNU Build System

by John D. Dunlap · in Technical Issues · 10/24/2007 (12:14 pm) · 2 replies

I was wondering if there was a specific reason that the GNU Build System was not used to build Torque on Linux. I would think it a far superior way to ensure that it compiles on different distributions each with different build environments.
http://en.wikipedia.org/wiki/GNU_build_system

Thoughts anyone?

#1
10/24/2007 (3:18 pm)
GNU Autotools are a miserable trainwreck. They're not fun to work with, they're not fun to use. Everyone just uses them because they're there and they have momentum. They're actually a royal PITA to make work properly. Sounds a lot like a certain popular OS, really :-)

Torque's build system on unix is also awful, and I agree that something needs to change :-)

Nowadays my cross-platform build tool of choice is actually cmake. Your same base build files can be used to build software on a variety of things... including outputting makefiles, visual studio projects, and xcode projects.

I started trying to cmake-ify torque a while ago, but got bored pretty early on. There's just a lot of time and effort involved in moving a project as big as torque to another build system. CMake is really easy to use and work with, though, so if you were going to try changing the build system for torque, I'd strongly suggest trying it.

Gary (-;
#2
10/24/2007 (3:48 pm)
I've er, "cmake-ified" TGE 1.5 so it can be done. I only put together a bare-bones build for it (only builds DEBUG) and too many variables (library paths, output paths) are hard-coded instead of being configurable.

CMake is miles better than autotools.