Skip to content

building SHOT with CMAKE and MSVC #140

@jbensabat

Description

@jbensabat

Hello
I am trying to build SHOT with CMAKE GUI and MSVC
First I build CBC and the dependencies, brought a compiled version of IPOPT (MSVC 2019)
in CMAKE GUI I get the following errors

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
CMake Error at CMakeLists.txt:88 (file):
file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
exactly three arguments.

CMake Error at CMakeLists.txt:89 (file):
file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
exactly three arguments.

Git hash: n/a
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Searching for Cbc libraries and its dependencies, e.g. in C:\MINLP\CBC/lib/
Cbc library found at: C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libCbc.lib
CbcSolver library found at: C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libCbcSolver.lib
OsiClp library found at: C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libOsiClp.lib
Clp library found at: C:/MINLP/CLP/MSVisualStudio/v16/x64/Debug/libClp.lib
Osi library found at: C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libOsi.lib
CoinUtils library found at: C:/MINLP/COINUTILS/MSVisualStudio/v16/libCoinUtils/x64/Debug/libCoinUtils.lib
Cgl library found at: C:/MINLP/CGL/MSVisualStudio/v16/x64/Debug/libCgl.lib

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Checking for one of the modules 'ipopt'
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/FindPkgConfig.cmake:849 (message):
None of the required 'ipopt' found
Call Stack (most recent call first):
CMakeLists.txt:251 (pkg_search_module)

-- Cbc include files will be used from: C:\MINLP\CBC\src
-- The following Cbc libraries will be used from:
C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libCbc.lib;C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libCbcSolver.lib;C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libOsiClp.lib;C:/MINLP/CLP/MSVisualStudio/v16/x64/Debug/libClp.lib;C:/MINLP/CBC/MSVisualStudio/v16/x64/Debug/libOsi.lib;C:/MINLP/COINUTILS/MSVisualStudio/v16/libCoinUtils/x64/Debug/libCoinUtils.lib;C:/MINLP/CGL/MSVisualStudio/v16/x64/Debug/libCgl.lib
-- Ipopt include files will be used from: C:\MINLP\IPOPT\bin/include/coin
-- The following Ipopt libraries will be used from:

CMake Error at CMakeLists.txt:664 (install):
install TARGETS given target "SHOT" which does not exist.

Configuring incomplete, errors occurred!
See also "C:/MINLP/SHOT/build/CMakeFiles/CMakeOutput.log".

It seems that it does not find ipopt (there is no directory for the lib or any other input form) and
also this error that appears twice:

file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
exactly three arguments.

any help would really be appreciated
thanks
jac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions