#27 Не собирается LMDE6

Open
opened 1 year ago by Olej · 3 comments
Olej commented 1 year ago

olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ make -j

...

/home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/main.h:4:10: fatal error: sodium.h: Нет такого файла или каталога

4 | #include <sodium.h>
  |          ^~~~~~~~~~

compilation terminated. ...

olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ make -j ... /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/main.h:4:10: fatal error: sodium.h: Нет такого файла или каталога 4 | #include <sodium.h> | ^~~~~~~~~~ compilation terminated. ...
Olej commented 1 year ago
Poster

Это решается просто:

olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ sudo apt install libsodium-dev Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово
Следующие НОВЫЕ пакеты будут установлены: libsodium-dev

Это решается просто: olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ sudo apt install libsodium-dev Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово Следующие НОВЫЕ пакеты будут установлены: libsodium-dev
Olej commented 1 year ago
Poster

Но вот дальше - гораздо хуже:

olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ make -j

[ 66%] Building CXX object src/CMakeFiles/sygcpp.dir/main.cpp.o

[ 66%] Building CXX object src/CMakeFiles/sygcpp.dir/parameters.cpp.o

In file included from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/configure.h:5,

             from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/parametes.h:7,

             from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/parameters.cpp:1:

/home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/main.h:29:13: error: field ‘PublicKey’ has incomplete type ‘Key’ {aka ‘std::array’}

29 | Key PublicKey;

  |             ^~~~~~~~~

... In file included from /usr/include/c++/12/bits/std_thread.h:39,

             from /usr/include/c++/12/thread:43,
             from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/main.h:10:
Но вот дальше - гораздо хуже: olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ make -j [ 66%] Building CXX object src/CMakeFiles/sygcpp.dir/main.cpp.o [ 66%] Building CXX object src/CMakeFiles/sygcpp.dir/parameters.cpp.o In file included from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/configure.h:5, from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/parametes.h:7, from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/parameters.cpp:1: /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/main.h:29:13: error: field ‘PublicKey’ has incomplete type ‘Key’ {aka ‘std::array<unsigned char, 32>’} 29 | Key PublicKey; | ^~~~~~~~~ ... In file included from /usr/include/c++/12/bits/std_thread.h:39, from /usr/include/c++/12/thread:43, from /home/olej/2023/Yggdrasil/SimpleYggGen-CPP/src/main.h:10:
Olej reopened 1 year ago
Olej commented 1 year ago
Poster

Возможно это связано с версиями:

olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ c++ --version

c++ (Debian 12.2.0-14) 12.2.0

Copyright (C) 2022 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Возможно это связано с версиями: olej@nvme:~/2023/Yggdrasil/SimpleYggGen-CPP/_build$ c++ --version c++ (Debian 12.2.0-14) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Olej reopened 1 year ago
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.