Loki-Astari / ThorsMongo

C++ MongoDB API and BSON/JSON Serialization library
GNU General Public License v3.0
316 stars 72 forks source link

Having trouble installing the library with Homebrew #43

Closed isasmarthalo closed 5 years ago

isasmarthalo commented 5 years ago

When I run this command in the terminal brew install thors-serializer I always have this error:

Last 15 lines from /home/mint/.cache/Homebrew/Logs/thors-serializer/02.make:
                       ^~~
Serialize.tpp:231:39: error: template argument 1 is invalid
 struct ConvertPointer<std::unique_ptr<T>>
                                       ^
Serialize.tpp:231:40: error: expected unqualified-id before '>' token
 struct ConvertPointer<std::unique_ptr<T>>
                                        ^~
/tmp/thors-serializer-20190313-23707-r92s0c/build/tools/Makefile:645: recipe for target 'coverage/Serialize.o' failed
make[3]: *** [coverage/Serialize.o] Error 1
/tmp/thors-serializer-20190313-23707-r92s0c/build/tools/Makefile:375: recipe for target 'unit_test' failed
make[2]: *** [unit_test] Error 2
/tmp/thors-serializer-20190313-23707-r92s0c/build/tools/Project.Makefile:47: recipe for target 'Serialize.dir' failed
make[1]: *** [Serialize.dir] Error 2
/tmp/thors-serializer-20190313-23707-r92s0c/build/tools/Project.Makefile:47: recipe for target 'src.dir' failed
make: *** [src.dir] Error 2

I tried running the install with gcc-6 which uses c++14 automatically but still get the error. I also did a bunch of stuff: updated homebew downloaded gcc and g++ 6 and making sure the used version was 6.1 and higher I don't know what I should do

Thank you

Loki-Astari commented 5 years ago

I just update the homebrew package. When it is accepted it should build correctly. You can check the pull request here to see if it has been accepted

Loki-Astari commented 5 years ago

New version was accepted by brew. This was the fix:

isasmarthalo commented 5 years ago

Thank you :)