openpst / sahara

A multi-platform tool for working with Qualcomm Sahara protocol using QT5 and libopenpst
GNU General Public License v3.0
188 stars 47 forks source link

Use boostorg/uuid as a library #14

Open alfonsojon opened 4 years ago

alfonsojon commented 4 years ago

The application cannot currently be compiled without manually cloning https://github.com/boostorg/uuid.git into lib. By adding the UUID library as a submodule, it resolves this issue.

Horkyze commented 4 years ago

I still get an error after manual clone:

../include/util/meid_converter.h:32:10: fatal error: boost/uuid/sha1.hpp: No such file or directory
   32 | #include <boost/uuid/sha1.hpp>
merkaG commented 9 months ago

I am not quite sure if there is restructuring in boost lib, but I had same issue that I solved using below fix

diff --git a/include/util/meid_converter.h b/include/util/meid_converter.h
index 934af39..0f5280a 100644
--- a/include/util/meid_converter.h
+++ b/include/util/meid_converter.h
@@ -29,7 +29,7 @@
 #include "definitions.h"
 #include <iostream>
 #include <sstream>
-#include <boost/uuid/sha1.hpp>
+#include <boost/uuid/detail/sha1.hpp>
 #include "util/string_helper.h"

 enum MeidConverterInputType {
@@ -86,4 +86,4 @@ namespace OpenPST {
                        MeidInfo convert(const std::string& input);
                        Esn calculatePesn(const std::string& meidHex);
        };
-}
\ No newline at end of file
+}

I might submit a pull request for this.