Results 1 to 10 of 10

Thread: CMake vs Autotools

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Ottawa, ON
    Beans
    68
    Distro
    Kubuntu

    Question CMake vs Autotools

    Hello World,

    I've been using make/autotools for a couple of years now, and I feel quite comfortable using them. However, I'm starting to notice CMake, and recently learned that most (all?) of KDE moved to CMake.

    I'm curious to know if anyone has had any experience with CMake / autotools / makefiles, and what you have to say.

    J-F

  2. #2
    Join Date
    Apr 2008
    Location
    Vilnius, Lithuania
    Beans
    304
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: CMake vs Autotools

    I can say that it is annoying to learn new build systems. (sorry, OT)

  3. #3
    Join Date
    Jun 2006
    Location
    Ottawa, ON
    Beans
    68
    Distro
    Kubuntu

    Re: CMake vs Autotools

    Quote Originally Posted by Delever View Post
    I can say that it is annoying to learn new build systems. (sorry, OT)
    That was my first reactions

    I'm trying to keep an open mind.

  4. #4
    Join Date
    Feb 2007
    Beans
    23

    Re: CMake vs Autotools

    My only experience with CMake is wishing more people used it. I work on Linux and Windows machines, and trying to build third-party code natively on Windows is a huge pain using autotools. I think more and more projects are moving to CMake for this very reason (e.g. Trilinos).

  5. #5
    Join Date
    Apr 2005
    Beans
    849

    Re: CMake vs Autotools

    The makefiles generated with cmake actually has colors.

    Some people will tell you that cmake stands for cross compile make.
    This is not true, it stands for color make.

    If you are writing your program for one compiler one os.
    This funky color stuff will be the only real benifit.

    If you however plan to use a windows system with your program then cmake should have support for various versions for visual studio,
    which is the std on windows.

    There are currently no free c/c++ 64bit c/c++ compilers for windows other than the visual studio. And as far as I can tell the autotools build system requires the gnu tool chain, which is not available on 64bit windows.
    Running 8.10 on a lenovo 3000 n200!
    Fingerprint reader doesn't work.

  6. #6
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: CMake vs Autotools

    Quote Originally Posted by monkeyking View Post
    There are currently no free c/c++ 64bit c/c++ compilers for windows other than the visual studio. And as far as I can tell the autotools build system requires the gnu tool chain, which is not available on 64bit windows.
    That's not precisely true. As far as "free as in beer" is concerned, there's the "Borland C++ Compiler 5.5". Apart from that, you have the GNU toolchain available in Cygwin.

    If you've got relatively simple makefiles (i.e., you are just compiling code and no resource files or whatsoever) and you want to compile for both Windows and Linux, qmake might also be an option (although it is a little bit out-dated).

  7. #7
    Join Date
    Apr 2007
    Location
    Stockholm, Sweden
    Beans
    2,042

    Re: CMake vs Autotools

    Quote Originally Posted by monkeyking View Post
    There are currently no free c/c++ 64bit c/c++ compilers for windows other than the visual studio. And as far as I can tell the autotools build system requires the gnu tool chain, which is not available on 64bit windows.
    bs ftp://ftp.equation.com/gcc/gcc-4.5-20090521-64.exe
    nissband.com my post-metal/instrumental

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •