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

Newer versions of boost libraries don't compile #7

Open
stephenc87 opened this issue Apr 20, 2021 · 1 comment
Open

Newer versions of boost libraries don't compile #7

stephenc87 opened this issue Apr 20, 2021 · 1 comment

Comments

@stephenc87
Copy link

Trying to compile with libboost-dev 1.71 on Ubuntu 20.10 will give me the error
g++ -c -pipe -g -fPIC -Wall -Wextra -DDEBUG -DHEXDUMP_PORT_RX -DHEXDUMP_PORT_TX -I../../libopenpst -I. -I../include -I../lib/serial/include -I../lib/pugixml/src -IDEPENDPATH -I+= -I../../libopenpst -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o debug/obj/meid_converter.o ../src/util/meid_converter.cpp In file included from ../src/util/meid_converter.cpp:27: ../include/util/meid_converter.h:32:10: fatal error: boost/uuid/sha1.hpp: No such file or directory 32 | #include <boost/uuid/sha1.hpp> | ^~~~~~~~~~~~~~~~~~~~~

A quick google search showed me that this is happening with others
https://github.com/anura-engine/anura/issues/283

@tronchama
Copy link

After a bit of research, I found that the missing file does in fact exist but it has been moved from its initial location. You can find it in /usr/include/boost/uuid/detail/sha1.hpp

Notice the extra detail/ folder in the path. To compile it correctly, you just have to copy sha1.hpp to its original position. I guess you could also try using mv but I prefer this method just in case moving it breaks more things down the pipe.
sudo cp /usr/include/boost/uuid/detail/sha1.hpp /usr/include/boost/uuid/

It should compile easily after that.

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

2 participants