openmonero
openmonero copied to clipboard
fatal error: corvusoft/restbed/byte.hpp: No such file or directory
[ 34%] Building CXX object src/CMakeFiles/myxmr.dir/OpenMoneroRequests.cpp.o In file included from /root/openmonero/src/../ext/restbed/source/restbed:5, from /root/openmonero/src/OpenMoneroRequests.h:14, from /root/openmonero/src/OpenMoneroRequests.cpp:8: /root/openmonero/src/../ext/restbed/source/corvusoft/restbed/uri.hpp:15:10: fatal error: corvusoft/restbed/byte.hpp: No such file or directory 15 | #include <corvusoft/restbed/byte.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
After replacing:
ext/restbed/source/corvusoft/restbed/uri.hpp:
//#include <corvusoft/restbed/byte.hpp>
#include "byte.hpp"
and the rest of .hpp files with the same type of implementation got:
[ 65%] Building CXX object CMakeFiles/openmonero.dir/main.cpp.o make[2]: *** No rule to make target 'distribution/library/librestbed.a', needed by 'openmonero'. Stop. make[1]: *** [CMakeFiles/Makefile2:161: CMakeFiles/openmonero.dir/all] Error 2 make: *** [Makefile:84: all] Error 2
Fix: cd ~ git clone --recursive https://github.com/moneroexamples/openmonero.git ln -s /root/openmonero/ext/restbed/source/corvusoft /usr/include mkdir ~/openmonero/build && ~/openmonero/build cmake .. cd ~/openmonero/ext/restbed mkdir build && cd build cmake .. make install cd ../distribution && cp * -R ~/openmonero/build/distribution cd ~/openmonero/build make