EvolBioInf / mattools

utilities for phylip distance matrices
Other
2 stars 1 forks source link

experimental/array' file not found #1

Closed vatanparast closed 4 years ago

vatanparast commented 4 years ago

Hi, while trying to compile on macOS, I encounter this error. Any idea of the cause?

Thanks

mattools git:(master) ✗ make Making all in src g++ -std=gnu++14 -DPACKAGE_NAME=\"mattools\" -DPACKAGE_TARNAME=\"mattools\" -DPACKAGE_VERSION=\"1\" -DPACKAGE_STRING=\"mattools\ 1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mattools\" -DVERSION=\"1\" -DHAVE_CXX14=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERR_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MEMMOVE=1 -DHAVE_SQRT=1 -I. -Wall -Wextra -std=c++14 -ggdb -g -O2 -MT mat-matrix.o -MD -MP -MF .deps/mat-matrix.Tpo -c -o mat-matrix.o test -f 'matrix.cxx' || echo './'matrix.cxx mv -f .deps/mat-matrix.Tpo .deps/mat-matrix.Po g++ -std=gnu++14 -DPACKAGE_NAME=\"mattools\" -DPACKAGE_TARNAME=\"mattools\" -DPACKAGE_VERSION=\"1\" -DPACKAGE_STRING=\"mattools\ 1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mattools\" -DVERSION=\"1\" -DHAVE_CXX14=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERR_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MEMMOVE=1 -DHAVE_SQRT=1 -I. -Wall -Wextra -std=c++14 -ggdb -g -O2 -MT mat-compare.o -MD -MP -MF .deps/mat-compare.Tpo -c -o mat-compare.o test -f 'compare.cxx' || echo './'compare.cxx compare.cxx:20:10: fatal error: 'experimental/array' file not found

include <experimental/array>

^~~~~~~~ 1 error generated. make[1]: [mat-compare.o] Error 1 make: [all-recursive] Error 1

kloetzl commented 4 years ago

Apparently I am using a header which is not available on macOS. I will fix that tomorrow. Just to be sure, could you tell me which version of macOS you are using?

Thanks for reporting Fabian

vatanparast commented 4 years ago

Thanks for a quick feedback. I am using High Sierra 10.13.6.

I should mention that the first error on make was:

matrix.cxx:25:10: fatal error: 'boost/spirit/home/x3.hpp' file not found

include <boost/spirit/home/x3.hpp

After a bit search I noticed that I need boost, so installed boost via Homebrew, then I got the above error.

Thanks, Mohammad

kloetzl commented 4 years ago

Oh, yes. I should add boost to the requirements in the Readme. When I have time I should remove it as a dependency.

kloetzl commented 4 years ago

It took a bit of fighting with macOS but the latest code in the repo should now compile properly. Thanks again for reporting.

vatanparast commented 4 years ago

It worked. Thanks!