HavocFramework / Havoc

The Havoc Framework.
https://havocframework.com
GNU General Public License v3.0
6.76k stars 953 forks source link

When I compile the client, I get an error saying that the toml.hpp file is missing[Teamserver-Client--Bug]: #502

Closed r4ynorth closed 2 months ago

r4ynorth commented 2 months ago

Contact Details

northtor@qq.com

What happened?

When I compile the client, I get an error saying that the toml.hpp file is missing. I tried to download the toml library file but it didn't work, can you give me some advice? I am using Ubuntu and Kali.I tried comand “sudo `apt install toml*”,but it didnt work 666 777

Did You Do a Pull First?

Latest (You performed a pull first)

Did You Try With the Dev Branch?

Yes (You tried using the dev branch but the problem persist)

Relevant log output

root@north-virtual-machine:/opt/Havoc/client# make
mkdir: 无法创建目录 “build”: 文件已存在
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/Havoc/client/build
Modules installed
[  2%] Automatic MOC and UIC for target Havoc
[  2%] Built target Havoc_autogen
[  4%] Building CXX object CMakeFiles/Havoc.dir/src/Main.cc.o
[  6%] Building CXX object CMakeFiles/Havoc.dir/Havoc_autogen/mocs_compilation.cpp.o
[  8%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Connector.cc.o
[ 10%] Building CXX object CMakeFiles/Havoc.dir/src/Havoc/Packager.cc.o
In file included from /opt/Havoc/client/include/global.hpp:36,
                 from /opt/Havoc/client/include/Havoc/Connector.hpp:4,
                 from /opt/Havoc/client/src/Havoc/Connector.cc:1:
/opt/Havoc/client/include/External.h:6:10: fatal error: toml.hpp: 没有那个文件或目录
    6 | #include <toml.hpp>
      |          ^~~~~~~~~~
compilation terminated.
In file included from /opt/Havoc/client/include/global.hpp:36,
                 from /opt/Havoc/client/src/Main.cc:1:
/opt/Havoc/client/include/External.h:6:10: fatal error: toml.hpp: 没有那个文件或目录
    6 | #include <toml.hpp>
      |          ^~~~~~~~~~
compilation terminated.
In file included from /opt/Havoc/client/include/global.hpp:36,
                 from /opt/Havoc/client/include/UserInterface/Widgets/SessionGraph.hpp:4,
                 from /opt/Havoc/client/build/Havoc_autogen/4B7M45MYCV/moc_SessionGraph.cpp:9,
                 from /opt/Havoc/client/build/Havoc_autogen/mocs_compilation.cpp:2:
/opt/Havoc/client/include/External.h:6:10: fatal error: toml.hpp: 没有那个文件或目录
    6 | #include <toml.hpp>
      |          ^~~~~~~~~~
compilation terminated.
In file included from /opt/Havoc/client/include/global.hpp:36,
                 from /opt/Havoc/client/src/Havoc/Packager.cc:1:
/opt/Havoc/client/include/External.h:6:10: fatal error: toml.hpp: 没有那个文件或目录
    6 | #include <toml.hpp>
      |          ^~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/Havoc.dir/build.make:146:CMakeFiles/Havoc.dir/src/Havoc/Connector.cc.o] 错误 1
make[3]: *** 正在等待未完成的任务....
make[3]: *** [CMakeFiles/Havoc.dir/build.make:107:CMakeFiles/Havoc.dir/Havoc_autogen/mocs_compilation.cpp.o] 错误 1
make[3]: *** [CMakeFiles/Havoc.dir/build.make:133:CMakeFiles/Havoc.dir/src/Havoc/Packager.cc.o] 错误 1
make[3]: *** [CMakeFiles/Havoc.dir/build.make:120:CMakeFiles/Havoc.dir/src/Main.cc.o] 错误 1
make[2]: *** [CMakeFiles/Makefile2:77:CMakeFiles/Havoc.dir/all] 错误 2
make[1]: *** [Makefile:84:all] 错误 2
make: *** [makefile:10:all] 错误 2

Did You Read Over Your Issue First?

Cracked5pider commented 2 months ago

try to execute the following command inside of the havoc directory to install all of the git submodules.

git submodule update --init --recursive
r4ynorth commented 2 months ago

Thank you for answering my question. My problem has been solved. Thank you very much