Как устранить ошибку установки лимон-графа?Linux

Ответить
Anonymous
 Как устранить ошибку установки лимон-графа?

Сообщение Anonymous »

Я клонирую репозиторий git с https://github.com/The-OpenROAD-Project/lemon-graph.git и выполнил шаги установки,
  • < li>cd лимон-граф
  • mkdir build && cd build
  • cmake .. // До этого не было error
  • make // я получил ошибку, как показано на изображении
    я новичок в Linux, помогите мне установить лимон- график для установки OpenROAD.
    Ошибка:

    Код: Выделить всё

    krishna_rk@krishnark:~/lemon-graph/build$ make
    Consolidate compiler generated dependencies of target lemon
    [  4%] Building CXX object lemon/CMakeFiles/lemon.dir/soplex.cc.o
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:31:18: error: allocation of incomplete type 'soplex::SoPlex'
    31 |     soplex = new soplex::SoPlex;
    |                  ^~~~~~~~~~~~~~
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:36:5: warning: deleting pointer to incomplete type 'soplex::SoPlex' is incompatible with C++2c and may cause undefined behavior [-Wdelete-incomplete]
    36 |     delete soplex;
    |     ^      ~~~~~~
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:43:18: error: allocation of incomplete type 'soplex::SoPlex'
    43 |     soplex = new soplex::SoPlex;
    |                  ^~~~~~~~~~~~~~
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:44:7: error: static_cast from 'soplex::SoPlex *' to 'soplex::SPxLP *' (aka 'SPxLPBase *'), which are not related by inheritance, is not allowed
    44 |     (*static_cast(soplex)) = *(lp.soplex);
    |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: 'SoPlex' is incomplete
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:76:11: error: member access into incomplete type 'soplex::SoPlex'
    76 |     soplex->addCol(c);
    |           ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:80:18: error: member access into incomplete type 'soplex::SoPlex'
    80 |     return soplex->nCols() - 1;
    |                  ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:87:11: error: member access into incomplete type 'soplex::SoPlex'
    87 |     soplex->addRow(r);
    |           ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:91:18: error: member access into incomplete type 'soplex::SoPlex'
    91 |     return soplex->nRows() - 1;
    |                  ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:100:11: error: member access into incomplete type 'soplex::SoPlex'
    100 |     soplex->addRow(r);
    |           ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:104:18: error: member access into incomplete type 'soplex::SoPlex'
    104 |     return soplex->nRows() - 1;
    |                  ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:109:11: error: member access into incomplete type 'soplex::SoPlex'
    109 |     soplex->removeCol(i);
    |           ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:117:11: error: member access into incomplete type 'soplex::SoPlex'
    117 |     soplex->removeRow(i);
    |           ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:179:31: error: member access into incomplete type 'soplex::SoPlex'
    179 |     for (int j = 0; j < soplex->nCols();  ++j) {
    |                               ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:180:13: error: member access into incomplete type 'soplex::SoPlex'
    180 |       soplex->changeElement(i, j, 0.0);
    |             ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:183:13: error: member access into incomplete type 'soplex::SoPlex'
    183 |       soplex->changeElement(i, it->first, it->second);
    |             ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:188:40: error: member access into incomplete type 'soplex::SoPlex'
    188 |     const soplex::SVector& vec = soplex->rowVector(i);
    |                                        ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:196:31: error: member access into incomplete type 'soplex::SoPlex'
    196 |     for (int i = 0; i < soplex->nRows(); ++i) {
    |                               ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:197:13: error: member access into incomplete type 'soplex::SoPlex'
    197 |       soplex->changeElement(i, j, 0.0);
    |             ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:200:13: error: member access into incomplete type 'soplex::SoPlex'
    200 |       soplex->changeElement(it->first, j, it->second);
    |             ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    /home/krishna_rk/lemon-graph/lemon/soplex.cc:205:40: error: member access into incomplete type 'soplex::SoPlex'
    205 |     const soplex::SVector& vec = soplex->colVector(i);
    |                                        ^
    /home/krishna_rk/lemon-graph/lemon/soplex.h:32:9: note: forward declaration of 'soplex::SoPlex'
    32 |   class SoPlex;
    |         ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    1 warning and 20 errors generated.
    make[2]: *** [lemon/CMakeFiles/lemon.dir/build.make:216: lemon/CMakeFiles/lemon.dir/soplex.cc.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:337: lemon/CMakeFiles/lemon.dir/all] Error 2
    make: *** [Makefile:166: all] Error 2
    krishna_rk@krishnark:~/lemon-graph/build$
    
-Помогите мне устранить эту ошибку.

Подробнее здесь: https://stackoverflow.com/questions/792 ... tion-error
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»