Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: corvusoft/restbed/byte.hpp: No such file or directory #179

Open
SSez opened this issue Apr 5, 2022 · 2 comments
Open

fatal error: corvusoft/restbed/byte.hpp: No such file or directory #179

SSez opened this issue Apr 5, 2022 · 2 comments

Comments

@SSez
Copy link

SSez commented Apr 5, 2022

[ 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.

@SSez
Copy link
Author

SSez commented Apr 5, 2022

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

@SSez
Copy link
Author

SSez commented Apr 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant