GithubHelp home page GithubHelp logo

C++ build error about mpcc HOT 3 CLOSED

Geonhee-LEE avatar Geonhee-LEE commented on July 18, 2024
C++ build error

from mpcc.

Comments (3)

alexliniger avatar alexliniger commented on July 18, 2024

the two branches use different approaches for matplotlib-cpp in the CMake file, can you try out the other one as well. I will have a look as soon as possible. But over the years I had also several times issues with matplotlib-cpp.
Best,
Alex

from mpcc.

Geonhee-LEE avatar Geonhee-LEE commented on July 18, 2024

Thanks for your reply.
I tried to change from master branch to /wip/install-target branch. It also happened a same problem.
image

from mpcc.

Geonhee-LEE avatar Geonhee-LEE commented on July 18, 2024
  • The python configurations:
    image

    image

  • Modified CMakeLists:

    cmake_minimum_required(VERSION 3.7)
    project(MPCC)
    
    set(CMAKE_CXX_STANDARD 14)
    set(CMAKE_CXX_FLAGS "-O2")
    
    find_package(PythonLibs REQUIRED)
    include_directories(${PYTHON_INCLUDE_DIRS})
    
    include_directories(.)
    include_directories(External/blasfeo/lib/include)
    include_directories(External/hpipm/lib/include)
    include_directories(External/matplotlib)
    include_directories(External/Eigen)
    include_directories(External/Json/include)
    
    add_executable(MPCC
            main.cpp
            types.cpp
            types.h
            config.h
            Params/params.cpp
            Spline/cubic_spline.cpp
            Spline/arc_length_spline.cpp
            Interfaces/hpipm_interface.cpp
            Interfaces/solver_interface.cpp
            Constraints/constraints.cpp
            Constraints/bounds.cpp
            Cost/cost.cpp
            Model/model.cpp
            Model/integrator.cpp
            Tests/spline_test.cpp
            Tests/cost_test.cpp
            Tests/model_integrator_test.cpp
            Tests/constratins_test.cpp
            MPC/mpc.cpp
            Params/track.cpp
            Params/track.h
            Plotting/plotting.cpp
            Plotting/plotting.h)
    
    
    #find_package(Python COMPONENTS Development)
    #target_include_directories(MPCC PRIVATE ${Python_INCLUDE_DIRS} ${Python_INCLUDE_DIRS})
    #target_link_libraries(MPCC ${Python_LIBRARIES} )
    
    target_link_libraries(MPCC ${CMAKE_SOURCE_DIR}/External/hpipm/lib/lib/libhpipm.a ${CMAKE_SOURCE_DIR}/External/blasfeo/lib/lib/libblasfeo.a ${PYTHON_LIBRARIES} )

from mpcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.