ITPP with MinGW

Help
victor
2014-04-02
2014-04-03
  • victor
    victor
    2014-04-02

    Hi all,

    I have a question regarding itpp under MinGW.
    I have tried to compile itpp using following instructions https://sites.google.com/site/yenhuanli/how-to-build-it-in-windows

    -- citation start ---

    Step by Step

    MinGW
        Download the latest installation file from the official download page.
        Double-click the .exe file to install. When asked for selcting elements to be installed, select all of the elements.
    FFTW
        Download FFTW from its official website and unzip the file.
        Open the MSYS command window.
        $cd [the directory of the unzipped file, e.g. c:\fftw-3.3.2]
        $./configure --prefix=/mingw
        $make
        $make install
    LAPACK
        Download LAPACK from its official website and unzip the file.
        Rename the file make.inc.example as make.inc.
        Open the MSYS command window.
        $cd [the directory of the unzipped file]
        $make blaslib
        $make lapacklib
        Copy the files librefblas.a and liblapack.a to [where you install MinGW]\lib\”, and rename the former one as libblas.a.
    IT++
        Download IT++ from its official website, and unzip the file.
        Open the MSYS command window.
        $cd [the directory of the unzipped file]
        $./configure --prefix=/mingw
        $make && make install
        $make check
        Create a test C++ source file named test.cpp. (You may copy any one of the examples in this page.)
        $cd [where the source file is]
        $g++ test.cpp -o test -litpp -lfftw3 -llapack -lblas -llibgfortranbegin -llibgfortran
        $./test
    

    -- citation end ---

    the itpp configuration fails saying it is not able to find BLAS library.
    I have built fftw-3.3.4 and lapack-3.5.0 as proposed above. Itpp version is 4.2. Windows 7, 64 bit.
    Would be very grateful for any help!

     
  • Bogdan Cristea
    Bogdan Cristea
    2014-04-02

    IT++ uses cmake as compilation management system. Please follow installation instructions found here: http://itpp.sourceforge.net/4.3.1/installation.html#inst_instr_cmake

     
    • victor
      victor
      2014-04-03

      Dear Bogdan,

      I have tried the section "How To Set Up a Local IT++ Installation without Being Root", as I assume this is the way to do it for MinGW.

      Unfortunately both section 3 and 5 are failing as LAPACK and FFT can not be found, even though the libblas.a and liblapack.a do reside in $Home\it++external-3.2.0\lib

      Here is a copy from my msys shell:

      tomashevich@IG4976 /c/Uni_Passau/RESEARCH/itpp-4.3.0/build
      $ cmake .. -DCMAKE_INCLUDE_PATH=/c/Uni_Passau/RESEARCH/it++external-3.2.0/inclu
      de -DCMAKE_LIBRARY_PATH=/c/Uni_Passau/RESEARCH/it++external-3.2.0/lib -DCMAKE_I
      NSTALL_PREFIX=/c/Uni_Passau/RESEARCH/it++4.3.0 -DBLA_STATIC=on -DITPP_SHARED=of
      f
      -- A library with BLAS API not found. Please specify library location.
      -- A library with BLAS API not found. Please specify library location.
      -- LAPACK requires BLAS
      -- A library with LAPACK API not found. Please specify library location.
      -- A library with FFT API not found. Please specify library location.
      -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
      CMake Warning at CMakeLists.txt:186 (message):
      BLAS library not found.

      CMake Warning at CMakeLists.txt:190 (message):
      LAPACK library not found.

      CMake Warning at CMakeLists.txt:194 (message):
      FFT library not found.

      CMake Warning at CMakeLists.txt:198 (message):
      You can still compile IT++ but the functionality will be reduced.

      -- Configuring done
      -- Generating done
      -- Build files have been written to: C:/Uni_Passau/RESEARCH/itpp-4.3.0

       
  • Bogdan Cristea
    Bogdan Cristea
    2014-04-03

    Please have a look at CMakeError.log file an post the relevant content here