ycollet / coinor-cmake

CMake files for compiling CoinOr projects
GNU Lesser General Public License v3.0
30 stars 9 forks source link

CMake Error for installing Ipopt #10

Open sogoogos opened 4 years ago

sogoogos commented 4 years ago

Hello, here what I did after downloading Ipopt-3.12.13.zip in Ubuntu 18.04.

unzip Ipopt-3.12.13.zip 
git clone https://github.com/ycollet/coinor-cmake.git
cp -r coinor-cmake/Ipopt/* Ipopt-3.12.13/
cd Ipopt-3.12.13
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/ipopt-3.12.13-2 -DCMAKE_BUILD_TYPE=RELEASE ..

Then I got:

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /home/sogo/work/python-virtualenvs/rmine-py3/bin/python (found version "3.6.8") 
statuscheck linker flag - test linker flags: -z muldef
-- Performing Test ZFLAGDEFINED
-- Performing Test ZFLAGDEFINED - Success
-- The Fortran compiler identification is GNU 7.4.0
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL but not MODULE mangling
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for bzlib.h
-- Looking for bzlib.h - not found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for ieeefp.h
-- Looking for ieeefp.h - not found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Looking for C++ include cctype
-- Looking for C++ include cctype - found
-- Looking for C++ include cmath
-- Looking for C++ include cmath - found
-- Looking for C++ include cieeefp
-- Looking for C++ include cieeefp - not found
-- Looking for C++ include cfloat
-- Looking for C++ include cfloat - found
-- Looking for C++ include cinttypes
-- Looking for C++ include cinttypes - found
-- Looking for C++ include cassert
-- Looking for C++ include cassert - found
-- Looking for C++ include cstdio
-- Looking for C++ include cstdio - found
-- Looking for C++ include cstdlib
-- Looking for C++ include cstdlib - found
-- Looking for C++ include cstdarg
-- Looking for C++ include cstdarg - found
-- Looking for C++ include cstddef
-- Looking for C++ include cstddef - found
-- Looking for C++ include cstring
-- Looking for C++ include cstring - found
-- Looking for C++ include ctime
-- Looking for C++ include ctime - found
-- Performing Test HAVE_QUNUSED_ARGUMENTS
-- Performing Test HAVE_QUNUSED_ARGUMENTS - Failed
-- Performing Test GCC_HAS_TYPEDEFS
-- Performing Test GCC_HAS_TYPEDEFS - Success
-- Performing Test GCC_HAS_NARROWING
-- Performing Test GCC_HAS_NARROWING - Success
-- Check size of int *
-- Check size of int * - done
-- Looking for std::isfinite
-- Looking for std::isfinite - not found
-- Looking for std::isnan
-- Looking for std::isnan - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for dran48
-- Looking for dran48 - not found
-- Looking for rand
-- Looking for rand - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for std::rand
-- Looking for std::rand - not found
-- Looking for va_copy
-- Looking for va_copy - not found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for _snprintf
-- Looking for _snprintf - not found
-- Looking for _vsnprintf
-- Looking for _vsnprintf - not found
-- Checking whether system has ANSI C header files
-- Looking for 8 include files dlfcn.h, ..., float.h
-- Looking for 8 include files dlfcn.h, ..., float.h - found
-- Performing Test memchrExists
-- Performing Test memchrExists - Success
-- Performing Test freeExists
-- Performing Test freeExists - Success
-- ANSI C header files - found
-- Looking for DIR in sys/stat.h;sys/types.h;dirent.h
-- Looking for DIR in sys/stat.h;sys/types.h;dirent.h - found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Package filename: IpOpt--Linux

************************
*                      *
* Configuration sum-up *
*                      *
************************

Installation directory: /opt/ipopt-3.12.13-2
Build type: RELEASE
-- Include directories:     /home/sogo/software/ipopt-cmake/Ipopt-3.12.13/build/Dependencies/./include;/home/sogo/software/ipopt-cmake/Ipopt-3.12.13/build/Dependencies/./include/ampl
-- Link directories:        /home/sogo/software/ipopt-cmake/Ipopt-3.12.13/build/Dependencies/./lib
-- Compilation definitions: HAVE_CONFIG_H
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- IPOPT_VERSION_STRING = 3.12.13
-- Current IPOPT revision is 0
-- Configuring done
CMake Error at ThirdParty/CMakeLists.txt:540 (_add_library):
  Cannot find source file:

    /home/sogo/software/ipopt-cmake/Ipopt-3.12.13/src/Algorithm/IpAdaptiveMuUpdate.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
Call Stack (most recent call first):
  Ipopt/CMakeLists.txt:262 (add_library)

CMake Error: CMake can not determine linker language for target: libipopt
CMake Error: Cannot determine link language for target "libipopt".
-- Generating done
-- Build files have been written to: /home/sogo/software/ipopt-cmake/Ipopt-3.12.13/build
ycollet commented 4 years ago

Yes, that's normal. The cmake files are in sync with the git repo of ipopt. If you want to use a specific version of ipopt, tell me, I will make a branch for this version.

sogoogos commented 4 years ago

Oh okay, I would like to use ipopt-3.12.13. Thanks!

ycollet commented 4 years ago

OK. I will try to have a version ASAP ...

ycollet commented 4 years ago

Ipopt-cmake-3.12.13.tar.gz The cmake files for ipopt 3.12.13. I need to rethink the way I organize this repo because I am not able to ship a cmake files by subproject and by version yet ...

sogoogos commented 4 years ago

Thank you so much!