libopenpst icon indicating copy to clipboard operation
libopenpst copied to clipboard

Newer versions of boost libraries don't compile

Open stephenc87 opened this issue 3 years ago • 1 comments

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

stephenc87 avatar Apr 20 '21 09:04 stephenc87

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.

tronchama avatar Aug 12 '21 10:08 tronchama