c++ - Autotools vs CMake -


i have been looking pros & cons of autotools , cmake. know opinions people having used 1 (or both) of these tools projects.

i used autotools year ago , know 1 of points relies on shell scripting, hence not need installed run. looks linux oriented, , not possible run configure file on windows.

i have choose build system tool an open source project have compiled @ least linux & windows. written in c++, , uses qt gui front-end, rest of "generic".

thanks help.

i not recommend autotools windows. use cmake.

why? windows doesn't have native sh.exe, , emulation slow. it's easy configury stuff wrong. i'm not saying it's impossible in cmake, cmake surely abstracts more away, worry less. cmake documentation can bit hard read, once it's set up, should fine toolchains ever supported cmake. cmake integrates testing, packaging etc...

autotools slow on windows, not work msvc, , has weird quirks windows (and other oses) hard debug, , hard fix. libtool sucks on windows, refuses build shared library even, if think should , could. toolchain relocation issues prevalent libtool, may @ wrong files in user's toolchain. cmake lot easier in regard. assumes normal things target platform , creates generic , build instructions.

also, cmake has coloured output :) , nice progress percentages.

ps: have experience cmake , autotools on windows user. cmake tends work, autotools tends bite ear off when you're not looking, , smile @ when fails due strange error...


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -