finalhe
finalhe copied to clipboard
sha256.h error on MacOS M1
When I try to compile from source I get this error message:
/Users/alexander/Downloads/finalhe-1.93/src/package.cc:23:10: fatal error: 'sha256.h' file not found
The full output:
[ 2%] Automatic MOC for target FinalHE
[ 2%] Built target FinalHE_autogen
[ 5%] Generating zh_TW.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/zh_TW.qm'...
Generated 32 translation(s) (32 finished and 0 unfinished)
[ 8%] Generating cs_CZ.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/cs_CZ.qm'...
Generated 24 translation(s) (24 finished and 0 unfinished)
Ignored 8 untranslated source text(s)
[ 11%] Generating de_DE.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/de_DE.qm'...
Generated 32 translation(s) (32 finished and 0 unfinished)
[ 14%] Generating es_ES.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/es_ES.qm'...
Generated 32 translation(s) (24 finished and 8 unfinished)
[ 17%] Generating fr_FR.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/fr_FR.qm'...
Generated 30 translation(s) (30 finished and 0 unfinished)
Ignored 2 untranslated source text(s)
[ 20%] Generating it_IT.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/it_IT.qm'...
Generated 24 translation(s) (24 finished and 0 unfinished)
Ignored 8 untranslated source text(s)
[ 22%] Generating ja_JP.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/ja_JP.qm'...
Generated 32 translation(s) (32 finished and 0 unfinished)
[ 25%] Generating pt_BR.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/pt_BR.qm'...
Generated 31 translation(s) (31 finished and 0 unfinished)
Ignored 1 untranslated source text(s)
[ 28%] Generating qrc_finalhe.cpp
[ 31%] Generating ru_RU.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/ru_RU.qm'...
Generated 32 translation(s) (32 finished and 0 unfinished)
[ 34%] Generating tr_TR.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/tr_TR.qm'...
Generated 25 translation(s) (25 finished and 0 unfinished)
Ignored 7 untranslated source text(s)
[ 37%] Generating ui_finalhe.h
[ 40%] Generating zh_CN.qm
Updating '/Users/alexander/Downloads/finalhe-1.93/zh_CN.qm'...
Generated 32 translation(s) (32 finished and 0 unfinished)
[ 42%] Building CXX object CMakeFiles/FinalHE.dir/FinalHE_autogen/mocs_compilation.o
[ 45%] Building CXX object CMakeFiles/FinalHE.dir/main.o
[ 48%] Building CXX object CMakeFiles/FinalHE.dir/downloader.o
[ 51%] Building CXX object CMakeFiles/FinalHE.dir/finalhe.o
/Users/alexander/Downloads/finalhe-1.93/src/finalhe.cc:54:17: warning: 'operator=' is deprecated: Use QDir::setPath() instead [-Wdeprecated-declarations]
baseDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:109:5: note: 'operator=' has been explicitly marked deprecated here
QT_DEPRECATED_X("Use QDir::setPath() instead")
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
/Users/alexander/Downloads/finalhe-1.93/src/finalhe.cc:64:9: warning: 'operator=' is deprecated: Use QDir::setPath() instead [-Wdeprecated-declarations]
dir = qApp->applicationDirPath();
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:109:5: note: 'operator=' has been explicitly marked deprecated here
QT_DEPRECATED_X("Use QDir::setPath() instead")
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
2 warnings generated.
[ 54%] Building CXX object CMakeFiles/FinalHE.dir/package.o
/Users/alexander/Downloads/finalhe-1.93/src/package.cc:23:10: fatal error: 'sha256.h' file not found
#include <sha256.h>
^~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/FinalHE.dir/package.o] Error 1
make[1]: *** [CMakeFiles/FinalHE.dir/all] Error 2
make: *** [all] Error 2
Same issue with Ubuntu
same issue on ubuntu. i think its using an older c++ compiler