<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Justin,<br>
    <br>
    I'm sorry about your frustration with the build. CMake isn't
    perfect, it has it's flaws and annoyances, but it's the best option
    we have.<br>
    <br>
    For example, if you compare the autoconf scripts (Makefile.am,
    configure.ac etc) with the CMakeLists.txt and FindXXX.cmake modules,
    you'll see that if you had to write a build system from scratch
    CMake would take much less time. There's been really a lot of work
    put in the autoconf over the years but it's archaic and had to go.
    Same for CVS - it had to go also. Git is also a little intimidating
    at the beginning but when you get used to it, you become grateful
    for having it around.<br>
    <br>
    I'm sure very soon people will get used to CMake also and will feel
    at home using it. <br>
    <br>
    Now back to your problem:) With CMake we have the shared libraries
    turned on by default, so you have to link against libfftw3f.so, not
    .la. I have to update the info on
    <a class="moz-txt-link-freetext" href="http://www.gromacs.org/Developer_Zone/Cmake/Custom_options">http://www.gromacs.org/Developer_Zone/Cmake/Custom_options</a> .<br>
    <br>
    Cheers,<br>
    Rossen<br>
    <br>
    On 09/02/2010 08:23 PM, Justin A. Lemkul wrote:
    <blockquote cite="mid:4C7FEBB9.9050906@vt.edu" type="cite">So I
      (after some additional trial-and-error) tried CMake:
      <br>
      <br>
      cmake ../gromacs-4.5.1
      -DFFTW3F_LIBRARIES=/apps/packages/FFTW32-3.0.1/lib/libfftw3f.la
      -DFFTW3F_INCLUDE_DIR=<i class="moz-txt-slash"><span
          class="moz-txt-tag">/</span>apps/packages/FFTW32-3.0.1/include<span
          class="moz-txt-tag">/</span></i>
      -DCMAKE_INSTALL_PREFIX=/home/rdiv1001/gromacs-4.5.1_cmake-linux
      –DGMX_BINARY_SUFFIX=_4.5.1_s –DGMX_THREADS=OFF –DGMX_X11=OFF
      –DCMAKE_CXX_COMPILER=/apps/local/packages/gcc-4.2.2/bin/g++
      -DCMAKE_C_COMPILER=/apps/local/packages/gcc-4.2.2/bin/gcc
      <br>
      <br>
      The code begins compiling, but then exits with:
      <br>
      <br>
      Linking C shared library libmd.so
      <br>
      /apps/packages/FFTW32-3.0.1/lib/libfftw3f.la: file not recognized:
      File format not recognized
      <br>
      collect2: ld returned 1 exit status
      <br>
      make[2]: *** [src/mdlib/libmd.so.6] Error 1
      <br>
      make[1]: *** [src/mdlib/CMakeFiles/md.dir/all] Error 2
      <br>
      make: *** [all] Error 2
    </blockquote>
    <br>
  </body>
</html>