Recent Changes - Search:

PmWiki

pmwiki.org

edit SideBar

Eplex

Alternatives

Building HiGHS

See also https://ergo-code.github.io/HiGHS/dev/interfaces/cpp

---$ECLIPSETHIRDPARTY
   |
   +---highs
       |
       +---$ECLIPSEARCH
           |
           +---bin
           +---include
           +---lib

Make a source directory

    mkdir -p $ECLIPSETHIRDPARTY/src

Get the source and create $ECLIPSETHIRDPARTY/src/HiGHS

    cd $ECLIPSETHIRDPARTY/src
    git clone https://github.com/ERGO-Code/HiGHS.git
    cd HiGHS

Change this line in highs/CMakeLists.txt (October 2025, version 1.11), in order to force building a static library

    131c131
    <   add_library(highs)
    ---
    >   add_library(highs STATIC)

Build from source, creating the executable build/bin/highs etc

    cmake -S. -B build -DCMAKE_INSTALL_PREFIX=$ECLIPSETHIRDPARTY/highs/$ECLIPSEARCH
    cmake --build build --parallel 2

(note: without the limit of 2 it crashes e.g. on coninferpc with 8GB)

Then install to $ECLIPSETHIRDPARTY/highs/$ECLIPSEARCH

    cmake --install build

This may give warnings like

-- Set non-toolchain portion of runtime path of
   "/home/jschimpf/Eclipse/thirdparty/src/HiGHS/lib/libhighs.so.1.8.1"
   to "$ORIGIN"
-- Set non-toolchain portion of runtime path of
   "/home/jschimpf/Eclipse/thirdparty/src/HiGHS/bin/highs" to
   "$ORIGIN:$ORIGIN/../lib"

On Cygwin

    CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ cmake -S. -B build -DCMAKE_INSTALL_PREFIX=$ECLIPSETHIRDPARTY/highs/$ECLIPSEARCH
Edit - History - Print - Recent Changes - Search
Page last modified on November 22, 2025, at 11:16 PM