Skip to content

CMake Compile error - cannot open file Epigraph\solvers\ecos\ecos.lib #12

@WaylonLee

Description

@WaylonLee

Trying to compile this to use in a C++ sim program. The CMake configuration works fine, but we get these errors on build:

[1/2] Linking C shared library packages\GNCLunarLander\LL_SCvx_Guidance\lib\Epigraph\solvers\ecos\ecos.dll
[2/2] Linking CXX shared library packages\GNCLunarLander\LL_SCvx_Guidance\lib\Epigraph\epigraph.dll
FAILED: packages/GNCLunarLander/LL_SCvx_Guidance/lib/Epigraph/epigraph.dll packages/GNCLunarLander/LL_SCvx_Guidance/lib/Epigraph/epigraph.lib 

... huge command line for the link ...

fatal error LNK1104: cannot open file 'packages\GNCLunarLander\LL_SCvx_Guidance\lib\Epigraph\solvers\ecos\ecos.lib'

Here's the build options:

set(ENABLE_OSQP  FALSE)
set(ENABLE_ECOS TRUE)
set(ENABLE_EICOS FALSE)
add_subdirectory("lib/Epigraph")

Configuration

  • Windows 10 Pro
  • Visual Studio 2022
  • MSVC 14.40
  • C++20
  • RelWithDebInfo configuration
  • CMake build-related options
    CMAKE_CXX_STANDARD_REQUIRED ON
    CMAKE_CXX_EXTENSIONS OFF
    CMAKE_POSITION_INDEPENDENT_CODE ON
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions